Skip to content

Instantly share code, notes, and snippets.

@puffybsd
Created December 30, 2018 19:29
Show Gist options
  • Save puffybsd/ce671a9c496a8acad48236a5efecbd27 to your computer and use it in GitHub Desktop.
Save puffybsd/ce671a9c496a8acad48236a5efecbd27 to your computer and use it in GitHub Desktop.
Hack to update a kubernetes secret so that kubectl doesn't complain about missing apiVersion and kind
cat <(printf 'apiVersion: v1\nkind: Secret\n') \
<(kubectl create secret generic apikey --from-literal=TOKEN=mys3cr3t -o yaml --dry-run) \
| kubectl apply -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment