add unit test and address comments

This commit is contained in:
Jingfang Liu
2018-06-11 14:52:31 -07:00
parent 37720765fc
commit 934e37d781
7 changed files with 72 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
namePrefix: com1-
namePrefix: p1-
configMapGenerator:
- name: com1
behavior: create

View File

@@ -1,6 +1,6 @@
namePrefix: com2-
namePrefix: p2-
configMapGenerator:
- name: com2
behavior: create
literals:
- from=base
- from=base

View File

@@ -12,5 +12,5 @@ diff -u -N /tmp/noop/v1_ConfigMap_com1.yaml /tmp/transformed/v1_ConfigMap_com1.y
annotations: {}
creationTimestamp: null
labels: {}
- name: com1-com1-8mk424df76
+ name: com1-com1-687g9gmkdf
- name: p1-com1-cmdb776d5b
+ name: p1-com1-dhbbm922gd

View File

@@ -8,7 +8,7 @@ metadata:
annotations: {}
creationTimestamp: null
labels: {}
name: com1-com1-687g9gmkdf
name: p1-com1-dhbbm922gd
---
apiVersion: v1
data:
@@ -18,4 +18,4 @@ metadata:
annotations: {}
creationTimestamp: null
labels: {}
name: com2-com2-bcd85m642t
name: p2-com2-c4b8md75k9