I was passed the following, which does a dry run of the creation of a kubernetes secret from an appsettings.json
file, which is then piped to a kubernetes apply
. I think that the -f
will take the filename of the --dry-run
created secret and use that when applying the secret, but I'm wondering if the trailing -
has any significance or if it's just a typo?
kubectl create secret generic test --from-file=appsettings.json --dry-run -oyaml | kubectl apply -f -