Skip to content

Commit

Permalink
Adding a label to identify CRDs registered by KubePlus (#1204)
Browse files Browse the repository at this point in the history
Fixes: #1203
  • Loading branch information
devdattakulkarni authored Jan 7, 2024
1 parent 9d57a3f commit bb7f155
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/kubeconfiggenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,10 @@ def registercrd():
crd = {}
crd['apiVersion'] = "apiextensions.k8s.io/v1"
crd['kind'] = "CustomResourceDefinition"
crd['metadata'] = {'name':plural + "." + group}
registered_by = {}
registered_by['registered-by'] = "kubeplus"
crd['metadata'] = {'name':plural + "." + group,
'labels': registered_by }
crd['spec'] = {"group":group, "names":{"kind": kind, "listKind": kind + "List","plural":plural,"singular":kind.lower()}, "scope": "Namespaced", "versions": [{"name": "v1alpha1", "schema": attr_types, "served": True, "storage": True}]}

#"status": {
Expand Down

0 comments on commit bb7f155

Please sign in to comment.