Skip to content

Commit

Permalink
add label to designate config policy as template
Browse files Browse the repository at this point in the history
Signed-off-by: Will Kutler <wkutler@redhat.com>
  • Loading branch information
willkutler committed Feb 8, 2023
1 parent 3f97c64 commit 6473e0c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deploy/crds/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions deploy/crds/kustomize/template-label.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"op":"add",
"path":"/metadata/labels",
"value": {"policy.open-cluster-management.io/policy-type": "template"}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6473e0c

Please sign in to comment.