Skip to content
Permalink
Browse files
fix: warning message misspeling fix
Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed May 19, 2022
1 parent 219dc3f commit 15c2dbba532df8ce3afa0e02ed1a40d8dfa4d612
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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))
}
}

0 comments on commit 15c2dbb

Please sign in to comment.