Skip to content

Commit 2f28a75

Browse files
authored
optimize --dry-run flag
Add client value for --dry-run flag Signed-off-by: George <[email protected]>
1 parent 1a76376 commit 2f28a75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/kubernetes/create-certs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ mkdir -p $DIR ${DIR}/daemon ${DIR}/client
3737
cp -f rootCA.pem client/ca.pem
3838
rm -f rootCA.pem rootCA-key.pem
3939

40-
kubectl create secret generic ${PRODUCT}-daemon-certs --dry-run -o yaml --from-file=./daemon >${PRODUCT}-daemon-certs.yaml
41-
kubectl create secret generic ${PRODUCT}-client-certs --dry-run -o yaml --from-file=./client >${PRODUCT}-client-certs.yaml
40+
kubectl create secret generic ${PRODUCT}-daemon-certs --dry-run=client -o yaml --from-file=./daemon >${PRODUCT}-daemon-certs.yaml
41+
kubectl create secret generic ${PRODUCT}-client-certs --dry-run=client -o yaml --from-file=./client >${PRODUCT}-client-certs.yaml
4242
)

0 commit comments

Comments
 (0)