From f7087bc345818c023680e75555363c84682b3018 Mon Sep 17 00:00:00 2001 From: Fabrizio Sestito Date: Wed, 11 Sep 2024 15:05:51 +0200 Subject: [PATCH] chore: update policy groups CRDs (#528) Signed-off-by: Fabrizio Sestito --- charts/kubewarden-crds/templates/NOTES.txt | 7 ++-- .../templates/admissionpolicygroups.yaml | 33 +++++++++---------- .../clusteradmissionpolicygroups.yaml | 33 +++++++++---------- 3 files changed, 35 insertions(+), 38 deletions(-) diff --git a/charts/kubewarden-crds/templates/NOTES.txt b/charts/kubewarden-crds/templates/NOTES.txt index c4ef0d4e..77f527c5 100644 --- a/charts/kubewarden-crds/templates/NOTES.txt +++ b/charts/kubewarden-crds/templates/NOTES.txt @@ -1,5 +1,8 @@ -Kubewarden CRDs now available: `clusteradmissionpolicies.policies.kubewarden.io`, -`admissionpolicies.policies.kubewarden.io`, `policyservers.policies.kubewarden.io`. +Kubewarden CRDs now available: `clusteradmissionpolicies.policies.kubewarden.io`, +`admissionpolicies.policies.kubewarden.io`, +`clusteradmissionpolicygroups.policies.kubewarden.io`, +`admissionpolicygroups.policies.kubewarden.io`, +`policyservers.policies.kubewarden.io`. {{ if .Values.installPolicyReportCRDs }} Policy report CRDs now available: `policyreports.wgpolicyk8s.io`, `clusterpolicyreports.wgpolicyk8s.io`. diff --git a/charts/kubewarden-crds/templates/admissionpolicygroups.yaml b/charts/kubewarden-crds/templates/admissionpolicygroups.yaml index 2e10e756..5d750309 100644 --- a/charts/kubewarden-crds/templates/admissionpolicygroups.yaml +++ b/charts/kubewarden-crds/templates/admissionpolicygroups.yaml @@ -256,11 +256,7 @@ spec: type: object x-kubernetes-map-type: atomic policies: - description: |- - Policies is a list of policies that are part of the group that will - be available to be called in the evaluation expression field. - Each policy in the group should be a Kubewarden policy. - items: + additionalProperties: properties: contextAwareResources: description: |- @@ -283,7 +279,14 @@ spec: - kind type: object type: array - name: + module: + description: |- + Module is the location of the WASM module to be loaded. Can be a + local file (file://), a remote file served by an HTTP server + (http://, https://), or an artifact served by an OCI-compatible + registry (registry://). + If prefix is missing, it will default to registry:// and use that + internally. type: string settings: description: |- @@ -293,20 +296,14 @@ spec: nullable: true type: object x-kubernetes-preserve-unknown-fields: true - url: - description: |- - Module is the location of the WASM module to be loaded. Can be a - local file (file://), a remote file served by an HTTP server - (http://, https://), or an artifact served by an OCI-compatible - registry (registry://). - If prefix is missing, it will default to registry:// and use that - internally. - type: string required: - - name - - url + - module type: object - type: array + description: |- + Policies is a list of policies that are part of the group that will + be available to be called in the evaluation expression field. + Each policy in the group should be a Kubewarden policy. + type: object policyServer: default: default description: PolicyServer identifies an existing PolicyServer resource. diff --git a/charts/kubewarden-crds/templates/clusteradmissionpolicygroups.yaml b/charts/kubewarden-crds/templates/clusteradmissionpolicygroups.yaml index f5b09779..08b1264b 100644 --- a/charts/kubewarden-crds/templates/clusteradmissionpolicygroups.yaml +++ b/charts/kubewarden-crds/templates/clusteradmissionpolicygroups.yaml @@ -348,11 +348,7 @@ spec: type: object x-kubernetes-map-type: atomic policies: - description: |- - Policies is a list of policies that are part of the group that will - be available to be called in the evaluation expression field. - Each policy in the group should be a Kubewarden policy. - items: + additionalProperties: properties: contextAwareResources: description: |- @@ -375,7 +371,14 @@ spec: - kind type: object type: array - name: + module: + description: |- + Module is the location of the WASM module to be loaded. Can be a + local file (file://), a remote file served by an HTTP server + (http://, https://), or an artifact served by an OCI-compatible + registry (registry://). + If prefix is missing, it will default to registry:// and use that + internally. type: string settings: description: |- @@ -385,20 +388,14 @@ spec: nullable: true type: object x-kubernetes-preserve-unknown-fields: true - url: - description: |- - Module is the location of the WASM module to be loaded. Can be a - local file (file://), a remote file served by an HTTP server - (http://, https://), or an artifact served by an OCI-compatible - registry (registry://). - If prefix is missing, it will default to registry:// and use that - internally. - type: string required: - - name - - url + - module type: object - type: array + description: |- + Policies is a list of policies that are part of the group that will + be available to be called in the evaluation expression field. + Each policy in the group should be a Kubewarden policy. + type: object policyServer: default: default description: PolicyServer identifies an existing PolicyServer resource.