{"record":{"id":"0da5477113ee83f1","repo":"kubernetes/kops","slug":"unknown-asset-format-q","errorCode":null,"errorMessage":"unknown asset format: %q","messagePattern":"unknown asset format: %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/assetstore.go","lineNumber":229,"sourceCode":"\tif i == -1 {\n\t\ti = strings.Index(id, \"@gs://\")\n\t}\n\tif i == -1 {\n\t\ti = strings.Index(id, \"@s3://\")\n\t}\n\tif i == -1 {\n\t\ti = strings.Index(id, \"@azureblob://\")\n\t}\n\tif i != -1 {\n\t\turls := strings.Split(id[i+1:], \",\")\n\t\thash, err := hashing.FromString(id[:i])\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn a.addURLs(ctx, urls, hash)\n\t}\n\t// TODO: local files!\n\treturn fmt.Errorf(\"unknown asset format: %q\", id)\n}\n\nfunc (a *AssetStore) addURLs(ctx context.Context, urls []string, hash *hashing.Hash) error {\n\tif len(urls) == 0 {\n\t\treturn fmt.Errorf(\"no urls were specified\")\n\t}\n\n\tvar err error\n\tif hash == nil {\n\t\tfor _, url := range urls {\n\t\t\thash, err = hashFromHTTPHeader(url)\n\t\t\tif err != nil {\n\t\t\t\tklog.Warningf(\"unable to get hash from %q: %v\", url, err)\n\t\t\t\tcontinue\n\t\t\t} else {\n\t\t\t\tbreak\n\t\t\t}\n\t\t}","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/assetstore.go#L211-L247","documentation":"AssetStore.Add only recognizes ids of the form <hash>@<scheme>://... where scheme is file, gs, s3 or azureblob; the id matched none of the recognized '@scheme://' markers and local-file support is not implemented, so the format is unknown.","triggerScenarios":"Thrown at upup/pkg/fi/assetstore.go:229 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Format the asset id as '<hash>@<url>' using a supported scheme (s3://, gs://, azureblob://, file://)","For local files, embed the asset in the kops binary or use a URL-based source"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}