diff --git a/api/v1alpha1/humioaction_types.go b/api/v1alpha1/humioaction_types.go index 059ae010..40f61dd9 100644 --- a/api/v1alpha1/humioaction_types.go +++ b/api/v1alpha1/humioaction_types.go @@ -40,6 +40,7 @@ type HumioActionWebhookProperties struct { Headers map[string]string `json:"headers,omitempty"` // SecretHeaders specifies what HTTP headers to use and where to fetch the values from. // If both Headers and SecretHeaders are specified, they will be merged together. + //+kubebuilder:default={} SecretHeaders []HeadersSource `json:"secretHeaders,omitempty"` Method string `json:"method,omitempty"` // Url specifies what URL to use @@ -64,10 +65,12 @@ type HeadersSource struct { // HumioActionEmailProperties defines the desired state of HumioActionEmailProperties type HumioActionEmailProperties struct { - BodyTemplate string `json:"bodyTemplate,omitempty"` - SubjectTemplate string `json:"subjectTemplate,omitempty"` - Recipients []string `json:"recipients,omitempty"` - UseProxy bool `json:"useProxy,omitempty"` + BodyTemplate string `json:"bodyTemplate,omitempty"` + SubjectTemplate string `json:"subjectTemplate,omitempty"` + //+kubebuilder:validation:MinItems=1 + //+required + Recipients []string `json:"recipients,omitempty"` + UseProxy bool `json:"useProxy,omitempty"` } // HumioActionRepositoryProperties defines the desired state of HumioActionRepositoryProperties @@ -123,10 +126,12 @@ type HumioActionSlackPostMessageProperties struct { ApiToken string `json:"apiToken,omitempty"` // ApiTokenSource specifies where to fetch the API key from. // If both ApiToken and ApiTokenSource are specified, ApiToken will be used. - ApiTokenSource VarSource `json:"apiTokenSource,omitempty"` - Channels []string `json:"channels,omitempty"` - Fields map[string]string `json:"fields,omitempty"` - UseProxy bool `json:"useProxy,omitempty"` + ApiTokenSource VarSource `json:"apiTokenSource,omitempty"` + Channels []string `json:"channels,omitempty"` + //+kubebuilder:default={} + Fields map[string]string `json:"fields,omitempty"` + //+kubebuilder:default=false + UseProxy bool `json:"useProxy,omitempty"` } // HumioActionVictorOpsProperties defines the desired state of HumioActionVictorOpsProperties diff --git a/api/v1alpha1/humioaggregatealert_types.go b/api/v1alpha1/humioaggregatealert_types.go index 72e2a4f2..64b11c88 100644 --- a/api/v1alpha1/humioaggregatealert_types.go +++ b/api/v1alpha1/humioaggregatealert_types.go @@ -64,6 +64,7 @@ type HumioAggregateAlertSpec struct { // Aggregate Alert trigger mode TriggerMode string `json:"triggerMode,omitempty"` // Enabled will set the AggregateAlert to enabled when set to true + //+kubebuilder:default=false Enabled bool `json:"enabled,omitempty"` // Actions is the list of Humio Actions by name that will be triggered by this Aggregate alert Actions []string `json:"actions"` diff --git a/api/v1alpha1/humiocluster_types.go b/api/v1alpha1/humiocluster_types.go index 8d1a0ece..fd6c525a 100644 --- a/api/v1alpha1/humiocluster_types.go +++ b/api/v1alpha1/humiocluster_types.go @@ -62,6 +62,7 @@ type HumioClusterSpec struct { // DigestPartitionsCount is the desired number of digest partitions DigestPartitionsCount int `json:"digestPartitionsCount,omitempty"` // License is the kubernetes secret reference which contains the Humio license + //+required License HumioClusterLicenseSpec `json:"license,omitempty"` // IdpCertificateSecretName is the name of the secret that contains the IDP Certificate when using SAML authentication IdpCertificateSecretName string `json:"idpCertificateSecretName,omitempty"` @@ -125,6 +126,7 @@ type HumioNodeSpec struct { // DisableInitContainer is used to disable the init container completely which collects the availability zone from the Kubernetes worker node. // This is not recommended, unless you are using auto rebalancing partitions and are running in a single availability zone. + //+kubebuilder:default=false DisableInitContainer bool `json:"disableInitContainer,omitempty"` // EnvironmentVariablesSource is the reference to an external source of environment variables that will be merged with environmentVariables @@ -253,6 +255,7 @@ type HumioNodeSpec struct { UpdateStrategy *HumioUpdateStrategy `json:"updateStrategy,omitempty"` // PriorityClassName is the name of the priority class that will be used by the Humio pods + //+kubebuilder:default="" PriorityClassName string `json:"priorityClassName,omitempty"` // HumioNodePoolFeatures defines the features that are allowed by the node pool @@ -295,7 +298,7 @@ type HumioUpdateStrategy struct { // MaxUnavailable is the maximum number of pods that can be unavailable during a rolling update. // This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%". - // By default, the max unavailable pods is 1. + //+kubebuilder:default=1 MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"` } @@ -323,6 +326,7 @@ type HumioESHostnameSource struct { type HumioClusterIngressSpec struct { // Enabled enables the logic for the Humio operator to create ingress-related objects. Requires one of the following // to be set: spec.hostname, spec.hostnameSource, spec.esHostname or spec.esHostnameSource + //+kubebuilder:default=false Enabled bool `json:"enabled,omitempty"` // Controller is used to specify the controller used for ingress in the Kubernetes cluster. For now, only nginx is supported. Controller string `json:"controller,omitempty"` diff --git a/api/v1alpha1/humiofilteralert_types.go b/api/v1alpha1/humiofilteralert_types.go index 35057ad5..a4129b2d 100644 --- a/api/v1alpha1/humiofilteralert_types.go +++ b/api/v1alpha1/humiofilteralert_types.go @@ -62,6 +62,7 @@ type HumioFilterAlertSpec struct { //+required ThrottleField *string `json:"throttleField,omitempty"` // Enabled will set the FilterAlert to enabled when set to true + //+kubebuilder:default=false Enabled bool `json:"enabled,omitempty"` // Actions is the list of Humio Actions by name that will be triggered by this filter alert Actions []string `json:"actions"` diff --git a/api/v1alpha1/humioscheduledsearch_types.go b/api/v1alpha1/humioscheduledsearch_types.go index 89a9eb8b..9e53964f 100644 --- a/api/v1alpha1/humioscheduledsearch_types.go +++ b/api/v1alpha1/humioscheduledsearch_types.go @@ -64,6 +64,7 @@ type HumioScheduledSearchSpec struct { // BackfillLimit is the user-defined limit, which caps the number of missed searches to backfill, e.g. in the event of a shutdown. BackfillLimit int `json:"backfillLimit"` // Enabled will set the ScheduledSearch to enabled when set to true + //+kubebuilder:default=false Enabled bool `json:"enabled,omitempty"` // Actions is the list of Humio Actions by name that will be triggered by this scheduled search Actions []string `json:"actions"` diff --git a/charts/humio-operator/crds/core.humio.com_humioactions.yaml b/charts/humio-operator/crds/core.humio.com_humioactions.yaml index b0717e50..6c70ce6b 100644 --- a/charts/humio-operator/crds/core.humio.com_humioactions.yaml +++ b/charts/humio-operator/crds/core.humio.com_humioactions.yaml @@ -54,6 +54,7 @@ spec: recipients: items: type: string + minItems: 1 type: array subjectTemplate: type: string @@ -241,8 +242,10 @@ spec: fields: additionalProperties: type: string + default: {} type: object useProxy: + default: false type: boolean type: object slackProperties: @@ -356,6 +359,7 @@ spec: method: type: string secretHeaders: + default: [] description: |- SecretHeaders specifies what HTTP headers to use and where to fetch the values from. If both Headers and SecretHeaders are specified, they will be merged together. diff --git a/charts/humio-operator/crds/core.humio.com_humioaggregatealerts.yaml b/charts/humio-operator/crds/core.humio.com_humioaggregatealerts.yaml index c0e7882f..01fe31d5 100644 --- a/charts/humio-operator/crds/core.humio.com_humioaggregatealerts.yaml +++ b/charts/humio-operator/crds/core.humio.com_humioaggregatealerts.yaml @@ -56,6 +56,7 @@ spec: description: Description is the description of the Aggregate alert type: string enabled: + default: false description: Enabled will set the AggregateAlert to enabled when set to true type: boolean diff --git a/charts/humio-operator/crds/core.humio.com_humioclusters.yaml b/charts/humio-operator/crds/core.humio.com_humioclusters.yaml index 036d2432..0afd5859 100644 --- a/charts/humio-operator/crds/core.humio.com_humioclusters.yaml +++ b/charts/humio-operator/crds/core.humio.com_humioclusters.yaml @@ -3576,6 +3576,7 @@ spec: partitions type: integer disableInitContainer: + default: false description: |- DisableInitContainer is used to disable the init container completely which collects the availability zone from the Kubernetes worker node. This is not recommended, unless you are using auto rebalancing partitions and are running in a single availability zone. @@ -5664,6 +5665,7 @@ spec: supported. type: string enabled: + default: false description: |- Enabled enables the logic for the Humio operator to create ingress-related objects. Requires one of the following to be set: spec.hostname, spec.hostnameSource, spec.esHostname or spec.esHostnameSource @@ -9178,6 +9180,7 @@ spec: type: object type: object disableInitContainer: + default: false description: |- DisableInitContainer is used to disable the init container completely which collects the availability zone from the Kubernetes worker node. This is not recommended, unless you are using auto rebalancing partitions and are running in a single availability zone. @@ -11424,6 +11427,7 @@ spec: type: object type: object priorityClassName: + default: "" description: PriorityClassName is the name of the priority class that will be used by the Humio pods type: string @@ -13095,10 +13099,10 @@ spec: anyOf: - type: integer - type: string + default: 1 description: |- MaxUnavailable is the maximum number of pods that can be unavailable during a rolling update. This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%". - By default, the max unavailable pods is 1. x-kubernetes-int-or-string: true minReadySeconds: description: MinReadySeconds is the minimum time in @@ -13336,6 +13340,7 @@ spec: type: object type: object priorityClassName: + default: "" description: PriorityClassName is the name of the priority class that will be used by the Humio pods type: string @@ -15016,10 +15021,10 @@ spec: anyOf: - type: integer - type: string + default: 1 description: |- MaxUnavailable is the maximum number of pods that can be unavailable during a rolling update. This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%". - By default, the max unavailable pods is 1. x-kubernetes-int-or-string: true minReadySeconds: description: MinReadySeconds is the minimum time in seconds that diff --git a/charts/humio-operator/crds/core.humio.com_humiofilteralerts.yaml b/charts/humio-operator/crds/core.humio.com_humiofilteralerts.yaml index 36ee4e87..0861f758 100644 --- a/charts/humio-operator/crds/core.humio.com_humiofilteralerts.yaml +++ b/charts/humio-operator/crds/core.humio.com_humiofilteralerts.yaml @@ -55,6 +55,7 @@ spec: description: Description is the description of the filter alert type: string enabled: + default: false description: Enabled will set the FilterAlert to enabled when set to true type: boolean diff --git a/charts/humio-operator/crds/core.humio.com_humioscheduledsearches.yaml b/charts/humio-operator/crds/core.humio.com_humioscheduledsearches.yaml index 06158f72..02148442 100644 --- a/charts/humio-operator/crds/core.humio.com_humioscheduledsearches.yaml +++ b/charts/humio-operator/crds/core.humio.com_humioscheduledsearches.yaml @@ -60,6 +60,7 @@ spec: description: Description is the description of the scheduled search type: string enabled: + default: false description: Enabled will set the ScheduledSearch to enabled when set to true type: boolean diff --git a/config/crd/bases/core.humio.com_humioactions.yaml b/config/crd/bases/core.humio.com_humioactions.yaml index b0717e50..6c70ce6b 100644 --- a/config/crd/bases/core.humio.com_humioactions.yaml +++ b/config/crd/bases/core.humio.com_humioactions.yaml @@ -54,6 +54,7 @@ spec: recipients: items: type: string + minItems: 1 type: array subjectTemplate: type: string @@ -241,8 +242,10 @@ spec: fields: additionalProperties: type: string + default: {} type: object useProxy: + default: false type: boolean type: object slackProperties: @@ -356,6 +359,7 @@ spec: method: type: string secretHeaders: + default: [] description: |- SecretHeaders specifies what HTTP headers to use and where to fetch the values from. If both Headers and SecretHeaders are specified, they will be merged together. diff --git a/config/crd/bases/core.humio.com_humioaggregatealerts.yaml b/config/crd/bases/core.humio.com_humioaggregatealerts.yaml index c0e7882f..01fe31d5 100644 --- a/config/crd/bases/core.humio.com_humioaggregatealerts.yaml +++ b/config/crd/bases/core.humio.com_humioaggregatealerts.yaml @@ -56,6 +56,7 @@ spec: description: Description is the description of the Aggregate alert type: string enabled: + default: false description: Enabled will set the AggregateAlert to enabled when set to true type: boolean diff --git a/config/crd/bases/core.humio.com_humioclusters.yaml b/config/crd/bases/core.humio.com_humioclusters.yaml index 036d2432..0afd5859 100644 --- a/config/crd/bases/core.humio.com_humioclusters.yaml +++ b/config/crd/bases/core.humio.com_humioclusters.yaml @@ -3576,6 +3576,7 @@ spec: partitions type: integer disableInitContainer: + default: false description: |- DisableInitContainer is used to disable the init container completely which collects the availability zone from the Kubernetes worker node. This is not recommended, unless you are using auto rebalancing partitions and are running in a single availability zone. @@ -5664,6 +5665,7 @@ spec: supported. type: string enabled: + default: false description: |- Enabled enables the logic for the Humio operator to create ingress-related objects. Requires one of the following to be set: spec.hostname, spec.hostnameSource, spec.esHostname or spec.esHostnameSource @@ -9178,6 +9180,7 @@ spec: type: object type: object disableInitContainer: + default: false description: |- DisableInitContainer is used to disable the init container completely which collects the availability zone from the Kubernetes worker node. This is not recommended, unless you are using auto rebalancing partitions and are running in a single availability zone. @@ -11424,6 +11427,7 @@ spec: type: object type: object priorityClassName: + default: "" description: PriorityClassName is the name of the priority class that will be used by the Humio pods type: string @@ -13095,10 +13099,10 @@ spec: anyOf: - type: integer - type: string + default: 1 description: |- MaxUnavailable is the maximum number of pods that can be unavailable during a rolling update. This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%". - By default, the max unavailable pods is 1. x-kubernetes-int-or-string: true minReadySeconds: description: MinReadySeconds is the minimum time in @@ -13336,6 +13340,7 @@ spec: type: object type: object priorityClassName: + default: "" description: PriorityClassName is the name of the priority class that will be used by the Humio pods type: string @@ -15016,10 +15021,10 @@ spec: anyOf: - type: integer - type: string + default: 1 description: |- MaxUnavailable is the maximum number of pods that can be unavailable during a rolling update. This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%". - By default, the max unavailable pods is 1. x-kubernetes-int-or-string: true minReadySeconds: description: MinReadySeconds is the minimum time in seconds that diff --git a/config/crd/bases/core.humio.com_humiofilteralerts.yaml b/config/crd/bases/core.humio.com_humiofilteralerts.yaml index 36ee4e87..0861f758 100644 --- a/config/crd/bases/core.humio.com_humiofilteralerts.yaml +++ b/config/crd/bases/core.humio.com_humiofilteralerts.yaml @@ -55,6 +55,7 @@ spec: description: Description is the description of the filter alert type: string enabled: + default: false description: Enabled will set the FilterAlert to enabled when set to true type: boolean diff --git a/config/crd/bases/core.humio.com_humioscheduledsearches.yaml b/config/crd/bases/core.humio.com_humioscheduledsearches.yaml index 06158f72..02148442 100644 --- a/config/crd/bases/core.humio.com_humioscheduledsearches.yaml +++ b/config/crd/bases/core.humio.com_humioscheduledsearches.yaml @@ -60,6 +60,7 @@ spec: description: Description is the description of the scheduled search type: string enabled: + default: false description: Enabled will set the ScheduledSearch to enabled when set to true type: boolean diff --git a/docs/api.md b/docs/api.md index e352d695..59295d03 100644 --- a/docs/api.md +++ b/docs/api.md @@ -637,6 +637,8 @@ If both ApiToken and ApiTokenSource are specified, ApiToken will be used.
map[string]string
+
+ Default: map[]
false @@ -644,6 +646,8 @@ If both ApiToken and ApiTokenSource are specified, ApiToken will be used.
boolean
+
+ Default: false
false @@ -1014,6 +1018,8 @@ If both Headers and SecretHeaders are specified, they will be merged together. SecretHeaders specifies what HTTP headers to use and where to fetch the values from. If both Headers and SecretHeaders are specified, they will be merged together.
+
+ Default: []
false @@ -1354,6 +1360,8 @@ HumioAggregateAlertSpec defines the desired state of HumioAggregateAlert boolean Enabled will set the AggregateAlert to enabled when set to true
+
+ Default: false
false @@ -4056,6 +4064,8 @@ Otherwise, use the built in default startup probe configuration.
DisableInitContainer is used to disable the init container completely which collects the availability zone from the Kubernetes worker node. This is not recommended, unless you are using auto rebalancing partitions and are running in a single availability zone.
+
+ Default: false
false @@ -4328,6 +4338,8 @@ Deprecated: LogScale 1.70.0 deprecated this option, and was later removed in Log string PriorityClassName is the name of the priority class that will be used by the Humio pods
+
+ Default:
false @@ -15841,6 +15853,8 @@ Ingress is used to set up ingress-related objects in order to reach Humio extern Enabled enables the logic for the Humio operator to create ingress-related objects. Requires one of the following to be set: spec.hostname, spec.hostnameSource, spec.esHostname or spec.esHostnameSource
+
+ Default: false
false @@ -16094,6 +16108,8 @@ Otherwise, use the built in default startup probe configuration.
DisableInitContainer is used to disable the init container completely which collects the availability zone from the Kubernetes worker node. This is not recommended, unless you are using auto rebalancing partitions and are running in a single availability zone.
+
+ Default: false
false @@ -16286,6 +16302,8 @@ Deprecated: LogScale 1.70.0 deprecated this option, and was later removed in Log string PriorityClassName is the name of the priority class that will be used by the Humio pods
+
+ Default:
false @@ -30912,8 +30930,9 @@ Zone awareness is enabled by default.
int or string MaxUnavailable is the maximum number of pods that can be unavailable during a rolling update. -This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%". -By default, the max unavailable pods is 1.
+This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%".
+
+ Default: 1
false @@ -34557,8 +34576,9 @@ Zone awareness is enabled by default.
int or string MaxUnavailable is the maximum number of pods that can be unavailable during a rolling update. -This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%". -By default, the max unavailable pods is 1.
+This can be configured to an absolute number or a percentage, e.g. "maxUnavailable: 5" or "maxUnavailable: 25%".
+
+ Default: 1
false @@ -35067,6 +35087,8 @@ HumioFilterAlertSpec defines the desired state of HumioFilterAlert boolean Enabled will set the FilterAlert to enabled when set to true
+
+ Default: false
false @@ -35798,6 +35820,8 @@ HumioScheduledSearchSpec defines the desired state of HumioScheduledSearch boolean Enabled will set the ScheduledSearch to enabled when set to true
+
+ Default: false
false