{"record":{"id":"866e15a8af07fe31","repo":"GoogleContainerTools/skaffold","slug":"rendering-manifests-w-866e15","errorCode":null,"errorMessage":"rendering manifests: %w","messagePattern":"rendering manifests: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/skaffold/app/cmd/run.go","lineNumber":61,"sourceCode":"\nfunc doRun(ctx context.Context, out io.Writer) error {\n\treturn withRunner(ctx, out, func(r runner.Runner, configs []util.VersionedConfig) error {\n\t\tbRes, err := r.Build(ctx, out, targetArtifacts(opts, configs))\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to build: %w\", err)\n\t\t}\n\n\t\tif !opts.SkipTests {\n\t\t\terr = r.Test(ctx, out, bRes)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"failed to test: %w\", err)\n\t\t\t}\n\t\t}\n\n\t\t// Render\n\t\tmanifestList, err := r.Render(ctx, out, bRes, false)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"rendering manifests: %w\", err)\n\t\t}\n\t\tif opts.RenderOnly {\n\t\t\treturn manifest.Write(manifestList.String(), opts.RenderOutput, out)\n\t\t}\n\n\t\terr = r.DeployAndLog(ctx, out, bRes, manifestList)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to deploy: %w\", err)\n\t\t}\n\n\t\ttips.PrintForRun(out, opts)\n\n\t\treturn nil\n\t})\n}\n","sourceCodeStart":43,"sourceCodeEnd":77,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/cmd/skaffold/app/cmd/run.go#L43-L77","documentation":"This error wraps any failure that occurs while Skaffold is rendering Kubernetes manifests during `skaffold run`. The renderer (helm, kustomize, kpt, or raw) transforms the manifests defined in skaffold.yaml into deployable resources, and any error in that pipeline is surfaced here with the underlying cause preserved via %w.","triggerScenarios":"Running `skaffold run` (or `skaffold render`) where r.Render() fails: e.g. a helm chart cannot be templated, kustomize build fails, an image reference in the manifest cannot be replaced, or a referenced manifest file does not exist.","commonSituations":"Helm values.yaml references a missing file; kustomization.yaml has a bad resource path; manifest references an image not built in the build results; YAML template syntax errors in helm templates.","solutions":["Read the wrapped cause after 'rendering manifests:' in the error output to identify the failing renderer/manifest","Run `skaffold render` standalone to reproduce the render failure without building/deploying","Fix the manifest source: correct file paths in skaffold.yaml render config, helm values, or kustomization resources","If the error mentions a missing image, ensure the artifact is defined and built before render"],"exampleFix":"// before (skaffold.yaml)\nmanifests:\n  rawYaml:\n    - manifests/*.yaml\n// after (correct glob/path; file exists)\nmanifests:\n  rawYaml:\n    - k8s/deployment.yaml\n    - k8s/service.yaml","handlingStrategy":"validation","validationCode":"skaffold render --output /dev/null || echo 'render pipeline broken - fix manifests before run'","typeGuard":null,"tryCatchPattern":"if err := skaffold.Run(ctx, out); err != nil {\n\tif strings.Contains(err.Error(), \"rendering manifests:\") {\n\t\tlog.Fatalf(\"manifest rendering failed: %v\", err) // inspect wrapped cause\n\t}\n\treturn err\n}","preventionTips":["Run `skaffold render` in CI before deploys to catch manifest issues early","Keep all manifest paths in skaffold.yaml relative and versioned in git","Lint helm templates (helm lint) and kustomize (kustomize build) independently","Ensure every referenced image matches a defined build artifact"],"tags":["skaffold","manifests","rendering","kubernetes"],"backgroundTag":"manifest-render-failed","analyzedSha":"a1189de023efc32d4b8e11f395acc678aa555011","analyzedAt":"2026-09-05T12:09:27.064Z","contentChangedAt":"2026-09-05T12:09:27.064Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}