diff --git a/apis/v1alpha1/adminnetworkpolicy_types.go b/apis/v1alpha1/adminnetworkpolicy_types.go index 0f4fceb7..23b7cde1 100644 --- a/apis/v1alpha1/adminnetworkpolicy_types.go +++ b/apis/v1alpha1/adminnetworkpolicy_types.go @@ -210,6 +210,7 @@ type AdminNetworkPolicyEgressRule struct { // Support: Core // // +enum +// +kubebuilder:validation:Enum={"Allow", "Deny", "Pass"} type AdminNetworkPolicyRuleAction string const ( diff --git a/apis/v1alpha1/baselineadminnetworkpolicy_types.go b/apis/v1alpha1/baselineadminnetworkpolicy_types.go index f23b78ed..6bf2a3e2 100644 --- a/apis/v1alpha1/baselineadminnetworkpolicy_types.go +++ b/apis/v1alpha1/baselineadminnetworkpolicy_types.go @@ -188,6 +188,7 @@ type BaselineAdminNetworkPolicyEgressRule struct { // Support: Core // // +enum +// +kubebuilder:validation:Enum={"Allow", "Deny"} type BaselineAdminNetworkPolicyRuleAction string const ( diff --git a/config/crd/experimental/policy.networking.k8s.io_adminnetworkpolicies.yaml b/config/crd/experimental/policy.networking.k8s.io_adminnetworkpolicies.yaml index 4b5e3b00..8fdff086 100644 --- a/config/crd/experimental/policy.networking.k8s.io_adminnetworkpolicies.yaml +++ b/config/crd/experimental/policy.networking.k8s.io_adminnetworkpolicies.yaml @@ -83,6 +83,10 @@ spec: Support: Core + enum: + - Allow + - Deny + - Pass type: string name: description: |- @@ -501,6 +505,10 @@ spec: Support: Core + enum: + - Allow + - Deny + - Pass type: string from: description: |- diff --git a/config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml b/config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml index fb62d0bf..5f174194 100644 --- a/config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml +++ b/config/crd/experimental/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml @@ -77,6 +77,9 @@ spec: Support: Core + enum: + - Allow + - Deny type: string name: description: |- @@ -489,6 +492,9 @@ spec: Support: Core + enum: + - Allow + - Deny type: string from: description: |- diff --git a/config/crd/standard/policy.networking.k8s.io_adminnetworkpolicies.yaml b/config/crd/standard/policy.networking.k8s.io_adminnetworkpolicies.yaml index f42c10b5..e2518737 100644 --- a/config/crd/standard/policy.networking.k8s.io_adminnetworkpolicies.yaml +++ b/config/crd/standard/policy.networking.k8s.io_adminnetworkpolicies.yaml @@ -83,6 +83,10 @@ spec: Support: Core + enum: + - Allow + - Deny + - Pass type: string name: description: |- @@ -401,6 +405,10 @@ spec: Support: Core + enum: + - Allow + - Deny + - Pass type: string from: description: |- diff --git a/config/crd/standard/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml b/config/crd/standard/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml index 623eb6fa..abaa4bda 100644 --- a/config/crd/standard/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml +++ b/config/crd/standard/policy.networking.k8s.io_baselineadminnetworkpolicies.yaml @@ -77,6 +77,9 @@ spec: Support: Core + enum: + - Allow + - Deny type: string name: description: |- @@ -389,6 +392,9 @@ spec: Support: Core + enum: + - Allow + - Deny type: string from: description: |-