Skip to content

Commit c3eddbf

Browse files
authored
Merge pull request moby#3514 from jinrenjie/master
examples: optimize --dry-run flag
2 parents 1a76376 + 2f28a75 commit c3eddbf

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)