Skip to content

Commit

Permalink
Add configmaps test for json string
Browse files Browse the repository at this point in the history
  • Loading branch information
yujunz committed Mar 3, 2019
1 parent 16d1b20 commit 45ba785
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/target/configmaps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ configMapGenerator:
files:
- passphrase=phrase.dat
- forces.txt
- name: json
literals:
- 'v2=[{"path": "var/druid/segment-cache"}]'
secretGenerator:
- name: bob
literals:
Expand Down Expand Up @@ -87,6 +90,13 @@ metadata:
name: blah-bob-k772g5db55
---
apiVersion: v1
data:
v2: '[{"path": "var/druid/segment-cache"}]'
kind: ConfigMap
metadata:
name: blah-json-tkh79m5tbc
---
apiVersion: v1
data:
MOUNTAIN: ZXZlcmVzdA==
OCEAN: cGFjaWZpYw==
Expand Down

0 comments on commit 45ba785

Please sign in to comment.