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 label to the CRD registered by KubePlus #1203

Closed
devdattakulkarni opened this issue Jan 6, 2024 · 0 comments
Closed

Add label to the CRD registered by KubePlus #1203

devdattakulkarni opened this issue Jan 6, 2024 · 0 comments

Comments

@devdattakulkarni
Copy link
Contributor

As part of registering the CRD defined in ResourceComposition, we should add a unique label to the CRD (say, registered-by:kubeplus). This will enable using the label selectors to query the CRDs registered by KubePlus easily using kubectl.

Example:
kubectl label crd atomicgggs.platformapi.kubeplus registered-by=kubeplus --kubeconfig=kubeplus-saas-provider.json

kubectl get crds -l registered-by=kubeplus --kubeconfig=kubeplus-saas-provider.json

NAME CREATED AT atomicgggs.platformapi.kubeplus 2024-01-05T11:55:46Z

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

No branches or pull requests

1 participant