Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a label to the pubkey configmap. #322

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Add a label to the pubkey configmap. #322

merged 1 commit into from
Feb 1, 2024

Conversation

ensonic
Copy link
Contributor

@ensonic ensonic commented Feb 1, 2024

This will let us efficiently filter, e.g. when backing them up. Adjust the backup script to filter by label.

Existing registrytion can be backfilled by e.g.:

function kc {
  kubectl --context="${KUBE_CONTEXT}" -n app-token-vendor "$@"
}

for cm in $(kc get cm -o name | egrep "^configmap/robot-"); do
 kc label "$cm" --overwrite app.kubernetes.io/managed-by=token-vendor
done

See also: #320

This will let us efficiently filter, e.g. when backing them up.
Adjust the backup script to filter by label.

Existing registrytion can be backfilled by e.g.:
```bash
function kc {
  kubectl --context="${KUBE_CONTEXT}" -n app-token-vendor "$@"
}

for cm in $(kc get cm -o name | egrep "^configmap/robot-"); do
 kc label "$cm" --overwrite app.kubernetes.io/managed-by=token-vendor
done
```
@ensonic ensonic requested review from drigz and csieber February 1, 2024 11:57
@ensonic ensonic merged commit 368c18e into main Feb 1, 2024
6 checks passed
@ensonic ensonic deleted the ensonic/tokenvendor branch February 1, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants