diff --git a/config/crd/bases/intent.security.nimbus.com_securityintents.yaml b/config/crd/bases/intent.security.nimbus.com_securityintents.yaml index a40e688d..3cde3bdd 100644 --- a/config/crd/bases/intent.security.nimbus.com_securityintents.yaml +++ b/config/crd/bases/intent.security.nimbus.com_securityintents.yaml @@ -201,7 +201,6 @@ spec: type: string required: - action - - description - resource - type type: object diff --git a/pkg/api/v1/securityintent_types.go b/pkg/api/v1/securityintent_types.go index cbd58274..b0bc9f73 100644 --- a/pkg/api/v1/securityintent_types.go +++ b/pkg/api/v1/securityintent_types.go @@ -20,10 +20,10 @@ type SecurityIntentSpec struct { // Intent defines the security policy details type Intent struct { - Description string `json:"description"` // Define the description - Action string `json:"action"` // Define the action of the policy - Type string `json:"type"` // Defines the type of the policy - Resource []Resource `json:"resource"` // Define the resources to which the security policy applies + Description string `json:"description,omitempty"` // Define the description + Action string `json:"action"` // Define the action of the policy + Type string `json:"type"` // Defines the type of the policy + Resource []Resource `json:"resource"` // Define the resources to which the security policy applies } // Resource defines the resources that the security policy applies to