File tree Expand file tree Collapse file tree 4 files changed +4
-26
lines changed
pkg/plugins/common/kustomize/v2-alpha/scaffolds/internal/templates/config
testdata/project-v3-with-kustomize-v2/config Expand file tree Collapse file tree 4 files changed +4
-26
lines changed Original file line number Diff line number Diff line change @@ -44,20 +44,12 @@ func (f *KustomizeConfig) SetTemplateDefaults() error {
44
44
}
45
45
46
46
//nolint:lll
47
- const kustomizeConfigTemplate = `# This configuration is for teaching kustomize how to update name ref and var substitution
47
+ const kustomizeConfigTemplate = `# This configuration is for teaching kustomize how to update name ref substitution
48
48
nameReference:
49
49
- kind: Issuer
50
50
group: cert-manager.io
51
51
fieldSpecs:
52
52
- kind: Certificate
53
53
group: cert-manager.io
54
54
path: spec/issuerRef/name
55
-
56
- varReference:
57
- - kind: Certificate
58
- group: cert-manager.io
59
- path: spec/commonName
60
- - kind: Certificate
61
- group: cert-manager.io
62
- path: spec/dnsNames
63
55
`
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func (f *KustomizeConfig) SetTemplateDefaults() error {
44
44
}
45
45
46
46
//nolint:lll
47
- const kustomizeConfigWebhookTemplate = `# the following config is for teaching kustomize where to look at when substituting vars .
47
+ const kustomizeConfigWebhookTemplate = `# the following config is for teaching kustomize where to look at when substituting nameReference .
48
48
# It requires kustomize v2.1.0 or newer to work properly.
49
49
nameReference:
50
50
- kind: Service
@@ -66,7 +66,4 @@ namespace:
66
66
group: admissionregistration.k8s.io
67
67
path: webhooks/clientConfig/service/namespace
68
68
create: true
69
-
70
- varReference:
71
- - path: metadata/annotations
72
69
`
Original file line number Diff line number Diff line change 1
- # This configuration is for teaching kustomize how to update name ref and var substitution
1
+ # This configuration is for teaching kustomize how to update name ref substitution
2
2
nameReference :
3
3
- kind : Issuer
4
4
group : cert-manager.io
5
5
fieldSpecs :
6
6
- kind : Certificate
7
7
group : cert-manager.io
8
8
path : spec/issuerRef/name
9
-
10
- varReference :
11
- - kind : Certificate
12
- group : cert-manager.io
13
- path : spec/commonName
14
- - kind : Certificate
15
- group : cert-manager.io
16
- path : spec/dnsNames
Original file line number Diff line number Diff line change 1
- # the following config is for teaching kustomize where to look at when substituting vars .
1
+ # the following config is for teaching kustomize where to look at when substituting nameReference .
2
2
# It requires kustomize v2.1.0 or newer to work properly.
3
3
nameReference :
4
4
- kind : Service
@@ -20,6 +20,3 @@ namespace:
20
20
group : admissionregistration.k8s.io
21
21
path : webhooks/clientConfig/service/namespace
22
22
create : true
23
-
24
- varReference :
25
- - path : metadata/annotations
You can’t perform that action at this time.
0 commit comments