diff --git a/pkg/action/sequencing.go b/pkg/action/sequencing.go index 72851a90a..605f2844c 100644 --- a/pkg/action/sequencing.go +++ b/pkg/action/sequencing.go @@ -201,6 +201,7 @@ func (s *sequencedDeployment) applyBatch(ctx context.Context, batch sequence.Bat // resources before they are applied to Kubernetes. This prevents K8s API // validation errors for annotation keys that are not valid K8s label keys. func stripSequencingAnnotations(resources kube.ResourceList) error { + sequencingKeys := releaseutil.HelmInternalSequencingAnnotations() return resources.Visit(func(info *resource.Info, err error) error { if err != nil { return err @@ -214,7 +215,7 @@ func stripSequencingAnnotations(resources kube.ResourceList) error { return nil } changed := false - for _, key := range releaseutil.HelmInternalSequencingAnnotations() { + for _, key := range sequencingKeys { if _, exists := annotations[key]; exists { delete(annotations, key) changed = true diff --git a/pkg/cmd/dag.go b/pkg/cmd/dag.go index 45cff74b2..597d409ed 100644 --- a/pkg/cmd/dag.go +++ b/pkg/cmd/dag.go @@ -194,8 +194,7 @@ func printSequencingDAG(chrt *chart.Chart, manifest string, out io.Writer) error printChild := func(name string) { if slices.Contains(level.Unresolved, name) { - fmt.Fprintf(out, "%s (subchart %q not found in chart dependencies)\n", indent, name) - return + fmt.Fprintf(out, "%s (subchart %q metadata unavailable; sequenced structurally from manifests)\n", indent, name) } if child := levelByPath[level.Path+"/charts/"+name]; child != nil { printLevel(child)