{"record":{"id":"e67b6373ea3b162a","repo":"GoogleContainerTools/skaffold","slug":"rendering-manifests-w-e67b63","errorCode":null,"errorMessage":"rendering manifests: %w","messagePattern":"rendering manifests: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/skaffold/app/cmd/deploy.go","lineNumber":58,"sourceCode":"\t\tWithHouseKeepingMessages().\n\t\tNoArgs(doDeploy)\n}\n\nfunc doDeploy(ctx context.Context, out io.Writer) error {\n\treturn withRunner(ctx, out, func(r runner.Runner, configs []util.VersionedConfig) error {\n\t\tvar artifacts []*latest.Artifact\n\t\tfor _, cfg := range configs {\n\t\t\tartifacts = append(artifacts, cfg.(*latest.SkaffoldConfig).Build.Artifacts...)\n\t\t}\n\t\tbuildArtifacts, err := getBuildArtifactsAndSetTags(artifacts, r.ApplyDefaultRepo)\n\t\tif err != nil {\n\t\t\ttips.PrintUseRunVsDeploy(out)\n\t\t\treturn err\n\t\t}\n\t\t// Render\n\t\tmanifests, errR := r.Render(ctx, out, buildArtifacts, false)\n\t\tif errR != nil {\n\t\t\treturn fmt.Errorf(\"rendering manifests: %w\", errR)\n\t\t}\n\t\treturn r.DeployAndLog(ctx, out, buildArtifacts, manifests)\n\t})\n}\n","sourceCodeStart":40,"sourceCodeEnd":63,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/cmd/skaffold/app/cmd/deploy.go#L40-L63","documentation":"Wraps a failure from Runner.Render during `skaffold deploy`. Deploy builds the artifacts, renders the manifests, then deploys; when rendering fails the deploy aborts before touching the cluster. The wrapped errR contains the renderer's own message (kustomize, helm, or kpt failure).","triggerScenarios":"`skaffold deploy` (or run/dev reaching deploy) invokes r.Render after a successful build and the renderer returns an error — broken kustomize overlay, helm chart error, kpt failure, or unresolvable remote bases.","commonSituations":"Deleted or renamed kustomize bases/patches; helm chart values invalid; network failure fetching remote manifests; kustomize/kubectl version mismatch with the manifests.","solutions":["Read the wrapped renderer error and fix the offending manifest/chart/overlay","Run `skaffold render` alone to reproduce and debug rendering in isolation","Pin or update kustomize/kubectl versions (skaffold uses its own kustomize; check `skaffold version` compatibility)","Verify remote bases and helm repos are reachable"],"exampleFix":"// before: skaffold.yaml points at a removed overlay\n// skaffold.yaml: kustomize: { paths: [\"overlays/staging\"] }  # gone\n// after: restore or correct the path\n kustomize:\n   paths: [\"overlays/dev\"]","handlingStrategy":"validation","validationCode":"# catch render issues before deploy\nskaffold render --output /tmp/rendered.yaml || echo \"fix manifests first\"\nkustomize build overlays/dev >/dev/null && echo \"kustomize OK\"","typeGuard":null,"tryCatchPattern":"if err := deploy(); err != nil {\n    if strings.Contains(err.Error(), \"rendering manifests:\") {\n        // drop to `skaffold render` for the detailed renderer error\n    }\n}","preventionTips":["Lint kustomize overlays and helm charts in CI before deploys","Pin kustomize/kubectl versions compatible with your skaffold release","Verify remote bases/helm repos are reachable from your environment"],"tags":["skaffold","render","kustomize"],"backgroundTag":"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"}