From 167fb5753c7a935909e200b1f6bae29078ed2098 Mon Sep 17 00:00:00 2001 From: Will Kutler Date: Tue, 7 Feb 2023 10:57:17 -0500 Subject: [PATCH] add label to designate config policy as template Signed-off-by: Will Kutler --- deploy/crds/kustomize/kustomization.yaml | 6 ++++++ deploy/crds/kustomize/template-label.json | 7 +++++++ ...y.open-cluster-management.io_configurationpolicies.yaml | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 deploy/crds/kustomize/template-label.json 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