Vars should expand in ingress/spec/tls/secretName

https://github.com/kubernetes-sigs/kustomize/issues/799
This commit is contained in:
Alastair Firth
2019-04-16 23:06:06 +02:00
committed by afirth
parent 50c076eb3f
commit 5be42092af
2 changed files with 5 additions and 0 deletions

View File

@@ -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
`)
}

View File

@@ -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