mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Vars should expand in ingress/spec/tls/secretName
https://github.com/kubernetes-sigs/kustomize/issues/799
This commit is contained in:
@@ -635,6 +635,7 @@ spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- $(DEPLOYMENT_NAME).example.com
|
||||
secretName: $(DEPLOYMENT_NAME).example.com-tls
|
||||
`)
|
||||
th.writeF("/app/base/service.yaml", `
|
||||
apiVersion: v1
|
||||
@@ -713,6 +714,7 @@ spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- kustomized-nginx.example.com
|
||||
secretName: kustomized-nginx.example.com-tls
|
||||
`)
|
||||
}
|
||||
|
||||
|
||||
@@ -96,6 +96,9 @@ varReference:
|
||||
|
||||
- path: spec/tls/hosts
|
||||
kind: Ingress
|
||||
|
||||
- path: spec/tls/secretName
|
||||
kind: Ingress
|
||||
|
||||
- path: spec/template/spec/containers/args
|
||||
kind: Job
|
||||
|
||||
Reference in New Issue
Block a user