Skip to content

Commit a133935

Browse files
authored
Merge pull request #340 from vijtrip2/init-existing-tags
initialize existing tags inside rm.EnsureTags
2 parents fd09781 + 0f4aef8 commit a133935

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/pkg/resource/manager.go.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ func (rm *resourceManager) EnsureTags(
294294
} else {
295295
existingTags = r.ko.Spec.{{ $tagField.Path }}
296296
}
297+
{{ else -}}
298+
existingTags = r.ko.Spec.{{ $tagField.Path }}
297299
{{ end -}}
298300
resourceTags := ToACKTags(existingTags)
299301
tags := acktags.Merge(resourceTags, defaultTags)

0 commit comments

Comments
 (0)