Run namehash transformer before resolving names for refvars

This commit is contained in:
Maximilian Gaß
2018-07-02 15:49:21 +02:00
parent 2377902a0b
commit 9674fd12b2
5 changed files with 40 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ spec:
command:
- echo
- "$(CDB_STATEFULSET_NAME)"
- "$(TEST_CONFIG_MAP)"
env:
- name: CDB_PUBLIC_SVC
value: "$(CDB_PUBLIC_SVC)"

View File

@@ -2,6 +2,11 @@ namePrefix: base-
resources:
- cockroachdb-statefulset-secure.yaml
- cronjob.yaml
configMapGenerator:
- name: test-config-map
literals:
- foo=bar
- baz=qux
vars:
- name: CDB_PUBLIC_SVC
objref:
@@ -25,3 +30,10 @@ vars:
fieldref:
fieldpath: metadata.name
- name: TEST_CONFIG_MAP
objref:
kind: ConfigMap
name: test-config-map
apiVersion: v1
fieldref:
fieldpath: metadata.name