diff --git a/deploy/crds/kustomize/kustomization.yaml b/deploy/crds/kustomize/kustomization.yaml index e7b590bb..e4e64764 100644 --- a/deploy/crds/kustomize/kustomization.yaml +++ b/deploy/crds/kustomize/kustomization.yaml @@ -9,3 +9,9 @@ patches: version: v1 kind: CustomResourceDefinition name: configurationpolicies.policy.open-cluster-management.io +- path: template-label.json + target: + group: apiextensions.k8s.io + version: v1 + kind: CustomResourceDefinition + name: configurationpolicies.policy.open-cluster-management.io diff --git a/deploy/crds/kustomize/template-label.json b/deploy/crds/kustomize/template-label.json new file mode 100644 index 00000000..7d9cc120 --- /dev/null +++ b/deploy/crds/kustomize/template-label.json @@ -0,0 +1,7 @@ +[ + { + "op":"add", + "path":"/metadata/labels", + "value": {"policy.open-cluster-management.io/policy-type": "template"} + } +] diff --git a/deploy/crds/policy.open-cluster-management.io_configurationpolicies.yaml b/deploy/crds/policy.open-cluster-management.io_configurationpolicies.yaml index 3fe794b7..5512abf2 100644 --- a/deploy/crds/policy.open-cluster-management.io_configurationpolicies.yaml +++ b/deploy/crds/policy.open-cluster-management.io_configurationpolicies.yaml @@ -6,6 +6,8 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.1 creationTimestamp: null + labels: + policy.open-cluster-management.io/policy-type: template name: configurationpolicies.policy.open-cluster-management.io spec: group: policy.open-cluster-management.io