review: change annotation name to postrenderer.helm.sh/postrender-filename

Signed-off-by: Carlos Lima <carlos@cpan.org>
pull/13154/head
Carlos Lima 3 months ago
parent a1416cf225
commit c01e76b5c3

@ -96,7 +96,7 @@ type Configuration struct {
const ( const (
// filenameAnnotation is the annotation key used to store the original filename // filenameAnnotation is the annotation key used to store the original filename
// information in manifest annotations for post-rendering reconstruction. // information in manifest annotations for post-rendering reconstruction.
filenameAnnotation = "helm-postrender-filename" filenameAnnotation = "postrenderer.helm.sh/postrender-filename"
) )
// annotateAndMerge combines multiple YAML files into a single stream of documents, // annotateAndMerge combines multiple YAML files into a single stream of documents,

@ -419,7 +419,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm name: test-cm
annotations: annotations:
helm-postrender-filename: 'templates/configmap.yaml' postrenderer.helm.sh/postrender-filename: 'templates/configmap.yaml'
data: data:
key: value key: value
`, `,
@ -445,7 +445,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm name: test-cm
annotations: annotations:
helm-postrender-filename: 'templates/configmap.yaml' postrenderer.helm.sh/postrender-filename: 'templates/configmap.yaml'
data: data:
key: value key: value
--- ---
@ -454,7 +454,7 @@ kind: Secret
metadata: metadata:
name: test-secret name: test-secret
annotations: annotations:
helm-postrender-filename: 'templates/secret.yaml' postrenderer.helm.sh/postrender-filename: 'templates/secret.yaml'
data: data:
password: dGVzdA== password: dGVzdA==
`, `,
@ -481,7 +481,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm1 name: test-cm1
annotations: annotations:
helm-postrender-filename: 'templates/multi.yaml' postrenderer.helm.sh/postrender-filename: 'templates/multi.yaml'
data: data:
key: value1 key: value1
--- ---
@ -490,7 +490,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm2 name: test-cm2
annotations: annotations:
helm-postrender-filename: 'templates/multi.yaml' postrenderer.helm.sh/postrender-filename: 'templates/multi.yaml'
data: data:
key: value2 key: value2
`, `,
@ -514,7 +514,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm1 name: test-cm1
annotations: annotations:
helm-postrender-filename: 'templates/cm.yaml' postrenderer.helm.sh/postrender-filename: 'templates/cm.yaml'
`, `,
}, },
{ {
@ -564,7 +564,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm name: test-cm
annotations: annotations:
helm-postrender-filename: templates/configmap.yaml postrenderer.helm.sh/postrender-filename: templates/configmap.yaml
data: data:
key: value`, key: value`,
expectedFiles: map[string]string{ expectedFiles: map[string]string{
@ -584,7 +584,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm name: test-cm
annotations: annotations:
helm-postrender-filename: templates/configmap.yaml postrenderer.helm.sh/postrender-filename: templates/configmap.yaml
data: data:
key: value key: value
--- ---
@ -593,7 +593,7 @@ kind: Secret
metadata: metadata:
name: test-secret name: test-secret
annotations: annotations:
helm-postrender-filename: templates/secret.yaml postrenderer.helm.sh/postrender-filename: templates/secret.yaml
data: data:
password: dGVzdA==`, password: dGVzdA==`,
expectedFiles: map[string]string{ expectedFiles: map[string]string{
@ -620,7 +620,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm1 name: test-cm1
annotations: annotations:
helm-postrender-filename: templates/multi.yaml postrenderer.helm.sh/postrender-filename: templates/multi.yaml
data: data:
key: value1 key: value1
--- ---
@ -629,7 +629,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm2 name: test-cm2
annotations: annotations:
helm-postrender-filename: templates/multi.yaml postrenderer.helm.sh/postrender-filename: templates/multi.yaml
data: data:
key: value2`, key: value2`,
expectedFiles: map[string]string{ expectedFiles: map[string]string{
@ -656,7 +656,7 @@ kind: ConfigMap
metadata: metadata:
name: test-cm name: test-cm
annotations: annotations:
helm-postrender-filename: templates/configmap.yaml postrenderer.helm.sh/postrender-filename: templates/configmap.yaml
other-annotation: should-remain other-annotation: should-remain
data: data:
key: value`, key: value`,

Loading…
Cancel
Save