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

metadata: add support for storing and filtering labels for imported kubeconfigs #27

Merged
merged 2 commits into from
Nov 25, 2023

Conversation

embik
Copy link
Owner

@embik embik commented Nov 25, 2023

Fixes #6.
Towards #9.

This PR adds a metadata.json in ~/.config/kbs which stores kubeconfig metadata. At the moment, it only stores key value pairs, which are stylised as "labels" to match Kubernetes lingo.

These key value pairs can be set in kbs import via the --labels / -l flag. kbs ls supports --selector / -l to filter based on labels.

Signed-off-by: Marvin Beckers <mail@embik.me>
Signed-off-by: Marvin Beckers <mail@embik.me>
@embik embik merged commit be4101a into main Nov 25, 2023
1 check passed
@embik embik deleted the metadata-support branch November 25, 2023 09:16
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.

import: allow to set labels on kubeconfig while importing
1 participant