Skip to content

Commit

Permalink
fix: warning message misspeling fix
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed May 19, 2022
1 parent 219dc3f commit 15c2dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/deploy/helm/extra_annotations_and_labels_post_renderer.go
Expand Up @@ -294,15 +294,15 @@ func (pr *ExtraAnnotationsAndLabelsPostRenderer) Run(renderedManifests *bytes.Bu
pr.globalWarnings.GlobalWarningLn(context.Background(), fmt.Sprintf("werf annotations won't be applied to *List resource Kinds, including %s. We advise to replace *List resources with multiple separate resources of the same Kind", obj.GetKind()))
} else if len(extraAnnotations) > 0 {
if err := appendExtraData(metadataNode, "annotations", extraAnnotations); err != nil {
pr.globalWarnings.GlobalWarningLn(context.Background(), fmt.Sprintf("werf annotations won't be applied to the %s/%s: an error have occured during annotations injection: %s\n", strings.ToLower(obj.GetKind()), obj.GetName(), err))
pr.globalWarnings.GlobalWarningLn(context.Background(), fmt.Sprintf("werf annotations won't be applied to the %s/%s: an error have occurred during annotations injection: %s\n", strings.ToLower(obj.GetKind()), obj.GetName(), err))
}
}

if obj.IsList() && len(extraLabels) > 0 {
pr.globalWarnings.GlobalWarningLn(context.Background(), fmt.Sprintf("werf labels won't be applied to *List resource Kinds, including %s. We advise to replace *List resources with multiple separate resources of the same Kind", obj.GetKind()))
} else if len(extraLabels) > 0 {
if err := appendExtraData(metadataNode, "labels", extraLabels); err != nil {
pr.globalWarnings.GlobalWarningLn(context.Background(), fmt.Sprintf("werf labels won't be applied to the %s/%s: an error have occured during labels injection: %s\n", strings.ToLower(obj.GetKind()), obj.GetName(), err))
pr.globalWarnings.GlobalWarningLn(context.Background(), fmt.Sprintf("werf labels won't be applied to the %s/%s: an error have occurred during labels injection: %s\n", strings.ToLower(obj.GetKind()), obj.GetName(), err))
}
}

Expand Down

0 comments on commit 15c2dbb

Please sign in to comment.