diff --git a/api/v1alpha1/operatorconfig_types.go b/api/v1alpha1/operatorconfig_types.go index 46d57916..27559299 100644 --- a/api/v1alpha1/operatorconfig_types.go +++ b/api/v1alpha1/operatorconfig_types.go @@ -23,9 +23,13 @@ import ( // OperatorConfigSpec defines the desired state of OperatorConfig type OperatorConfigSpec struct { // Operator's log level + //+kubebuilder:validation:Optional + //+kubebuilder:validation:Minimum=0 + //+kubebuilder:validation:Maximum=2 LogLevel int `json:"logLevel,omitempty"` // Allow overwrite of hardcoded defaults for any driver managed by this operator + //+kubebuilder:validation:Optional DriverSpecDefaults *DriverSpec `json:"driverSpecDefaults,omitempty"` } diff --git a/config/crd/bases/csi.ceph.io_operatorconfigs.yaml b/config/crd/bases/csi.ceph.io_operatorconfigs.yaml index 9d480911..99dc81f5 100644 --- a/config/crd/bases/csi.ceph.io_operatorconfigs.yaml +++ b/config/crd/bases/csi.ceph.io_operatorconfigs.yaml @@ -6912,6 +6912,8 @@ spec: type: object logLevel: description: Operator's log level + maximum: 2 + minimum: 0 type: integer type: object status: