Skip to content

Commit 1380157

Browse files
yxd-ymarttor
authored andcommitted
Add line break before annotation.
1 parent 50793e7 commit 1380157

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/processor/deployment/deployment.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
metadata:
3838
labels:
3939
{{ .PodLabels }}
40-
{{ .PodAnnotations }}
40+
{{- .PodAnnotations }}
4141
spec:
4242
{{ .Spec }}`)
4343

@@ -102,6 +102,8 @@ func (d deployment) Process(appMeta helmify.AppMetadata, obj *unstructured.Unstr
102102
if err != nil {
103103
return true, nil, err
104104
}
105+
106+
podAnnotations = "\n" + podAnnotations
105107
}
106108

107109
nameCamel := strcase.ToLowerCamel(name)

0 commit comments

Comments
 (0)