I hereby claim:
- I am arwilczek90 on github.
- I am mobiusnone (https://keybase.io/mobiusnone) on keybase.
- I have a public key ASCD-fTdBLAA-A1AANCsWQB5a03c7Wgs6l3visADUOkbSQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env zsh | |
printf "Getting used secrets...\n" | |
# Get envFrom secrets | |
envSecrets=$(kubectl get pods -o jsonpath='{.items[*].spec.containers[*].envFrom[*].secretRef.name}' | xargs -n1) | |
# Get valueFrom secrets | |
envSecrets2=$(kubectl get pods -o jsonpath='{.items[*].spec.containers[*].env[*].valueFrom.secretKeyRef.name}' | xargs -n1) | |
# Get secrets mounted as volumes | |
volumeSecrets=$(kubectl get pods -o jsonpath='{.items[*].spec.volumes[*].secret.secretName}' | xargs -n1) | |
# Get imagePullSecrets | |
pullSecrets=$(kubectl get pods -o jsonpath='{.items[*].spec.imagePullSecrets[*].name}' | xargs -n1) |
packages: | |
- zsh | |
users: | |
- name: awilczek | |
ssh-import-id: gh:arwilczek90 | |
shell: /bin/zsh | |