mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +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:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- $(DEPLOYMENT_NAME).example.com
|
- $(DEPLOYMENT_NAME).example.com
|
||||||
|
secretName: $(DEPLOYMENT_NAME).example.com-tls
|
||||||
`)
|
`)
|
||||||
th.writeF("/app/base/service.yaml", `
|
th.writeF("/app/base/service.yaml", `
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -713,6 +714,7 @@ spec:
|
|||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- kustomized-nginx.example.com
|
- kustomized-nginx.example.com
|
||||||
|
secretName: kustomized-nginx.example.com-tls
|
||||||
`)
|
`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,9 @@ varReference:
|
|||||||
- path: spec/tls/hosts
|
- path: spec/tls/hosts
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
|
||||||
|
- path: spec/tls/secretName
|
||||||
|
kind: Ingress
|
||||||
|
|
||||||
- path: spec/template/spec/containers/args
|
- path: spec/template/spec/containers/args
|
||||||
kind: Job
|
kind: Job
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user