Documentation
¶
Overview ¶
+kubebuilder:validation:Optional +groupName=config.openshift.io Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type AdditionalAlertmanagerConfig
- func (in *AdditionalAlertmanagerConfig) DeepCopy() *AdditionalAlertmanagerConfig
- func (in *AdditionalAlertmanagerConfig) DeepCopyInto(out *AdditionalAlertmanagerConfig)
- func (in AdditionalAlertmanagerConfig) OpenAPIModelName() string
- func (AdditionalAlertmanagerConfig) SwaggerDoc() map[string]string
- type AlertManagerDeployMode
- type AlertmanagerConfig
- type AlertmanagerCustomConfig
- type AlertmanagerScheme
- type Audit
- type AuditProfile
- type AuthorizationConfig
- type AuthorizationType
- type BasicAuth
- type BodySizeEnforcement
- type BodySizeEnforcementCustomConfig
- func (in *BodySizeEnforcementCustomConfig) DeepCopy() *BodySizeEnforcementCustomConfig
- func (in *BodySizeEnforcementCustomConfig) DeepCopyInto(out *BodySizeEnforcementCustomConfig)
- func (in BodySizeEnforcementCustomConfig) OpenAPIModelName() string
- func (BodySizeEnforcementCustomConfig) SwaggerDoc() map[string]string
- type BodySizeEnforcementMode
- type CertificateConfigdeprecated
- type CertificateVerificationType
- type ClusterMonitoring
- type ClusterMonitoringList
- func (in *ClusterMonitoringList) DeepCopy() *ClusterMonitoringList
- func (in *ClusterMonitoringList) DeepCopyInto(out *ClusterMonitoringList)
- func (in *ClusterMonitoringList) DeepCopyObject() runtime.Object
- func (in ClusterMonitoringList) OpenAPIModelName() string
- func (ClusterMonitoringList) SwaggerDoc() map[string]string
- type ClusterMonitoringSpec
- type ClusterMonitoringStatus
- type CollectionProfile
- type ContainerResource
- type ControllerManager
- type ControllerManagerList
- func (in *ControllerManagerList) DeepCopy() *ControllerManagerList
- func (in *ControllerManagerList) DeepCopyInto(out *ControllerManagerList)
- func (in *ControllerManagerList) DeepCopyObject() runtime.Object
- func (in ControllerManagerList) OpenAPIModelName() string
- func (ControllerManagerList) SwaggerDoc() map[string]string
- type ControllerManagerSpec
- type CrossOriginRequestPolicy
- type CustomPKIPolicydeprecated
- type DataPolicy
- type DefaultCertificateConfigdeprecated
- type DisabledGatherer
- type DropEqualActionConfig
- type ECDSACurvedeprecated
- type ECDSAKeyConfigdeprecated
- type ExemplarsMode
- type GatherConfig
- type HashModActionConfig
- type InsightsDataGather
- func (in *InsightsDataGather) DeepCopy() *InsightsDataGather
- func (in *InsightsDataGather) DeepCopyInto(out *InsightsDataGather)
- func (in *InsightsDataGather) DeepCopyObject() runtime.Object
- func (in InsightsDataGather) OpenAPIModelName() string
- func (InsightsDataGather) SwaggerDoc() map[string]string
- type InsightsDataGatherList
- func (in *InsightsDataGatherList) DeepCopy() *InsightsDataGatherList
- func (in *InsightsDataGatherList) DeepCopyInto(out *InsightsDataGatherList)
- func (in *InsightsDataGatherList) DeepCopyObject() runtime.Object
- func (in InsightsDataGatherList) OpenAPIModelName() string
- func (InsightsDataGatherList) SwaggerDoc() map[string]string
- type InsightsDataGatherSpec
- type InsightsDataGatherStatus
- type KeepEqualActionConfig
- type KeyAlgorithmdeprecated
- type KeyConfigdeprecated
- type KubeStateMetricsConfig
- type KubeStateMetricsLabelName
- type KubeStateMetricsResourceLabels
- func (in *KubeStateMetricsResourceLabels) DeepCopy() *KubeStateMetricsResourceLabels
- func (in *KubeStateMetricsResourceLabels) DeepCopyInto(out *KubeStateMetricsResourceLabels)
- func (in KubeStateMetricsResourceLabels) OpenAPIModelName() string
- func (KubeStateMetricsResourceLabels) SwaggerDoc() map[string]string
- type KubeStateMetricsResourceName
- type Label
- type LabelMapActionConfig
- type LogLevel
- type LowercaseActionConfig
- type MetadataConfig
- type MetadataConfigCustom
- type MetadataConfigSendPolicy
- type MetricsServerConfig
- type MonitoringPluginConfig
- type NodeExporterCollectorBuddyInfoConfig
- func (in *NodeExporterCollectorBuddyInfoConfig) DeepCopy() *NodeExporterCollectorBuddyInfoConfig
- func (in *NodeExporterCollectorBuddyInfoConfig) DeepCopyInto(out *NodeExporterCollectorBuddyInfoConfig)
- func (in NodeExporterCollectorBuddyInfoConfig) OpenAPIModelName() string
- func (NodeExporterCollectorBuddyInfoConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorCollectionPolicy
- type NodeExporterCollectorConfig
- type NodeExporterCollectorCpufreqConfig
- func (in *NodeExporterCollectorCpufreqConfig) DeepCopy() *NodeExporterCollectorCpufreqConfig
- func (in *NodeExporterCollectorCpufreqConfig) DeepCopyInto(out *NodeExporterCollectorCpufreqConfig)
- func (in NodeExporterCollectorCpufreqConfig) OpenAPIModelName() string
- func (NodeExporterCollectorCpufreqConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorDeviceMapperMultipathConfig
- func (in *NodeExporterCollectorDeviceMapperMultipathConfig) DeepCopy() *NodeExporterCollectorDeviceMapperMultipathConfig
- func (in *NodeExporterCollectorDeviceMapperMultipathConfig) DeepCopyInto(out *NodeExporterCollectorDeviceMapperMultipathConfig)
- func (in NodeExporterCollectorDeviceMapperMultipathConfig) OpenAPIModelName() string
- func (NodeExporterCollectorDeviceMapperMultipathConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorEthtoolConfig
- func (in *NodeExporterCollectorEthtoolConfig) DeepCopy() *NodeExporterCollectorEthtoolConfig
- func (in *NodeExporterCollectorEthtoolConfig) DeepCopyInto(out *NodeExporterCollectorEthtoolConfig)
- func (in NodeExporterCollectorEthtoolConfig) OpenAPIModelName() string
- func (NodeExporterCollectorEthtoolConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorInterruptsCollectConfig
- func (in *NodeExporterCollectorInterruptsCollectConfig) DeepCopy() *NodeExporterCollectorInterruptsCollectConfig
- func (in *NodeExporterCollectorInterruptsCollectConfig) DeepCopyInto(out *NodeExporterCollectorInterruptsCollectConfig)
- func (in NodeExporterCollectorInterruptsCollectConfig) OpenAPIModelName() string
- func (NodeExporterCollectorInterruptsCollectConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorInterruptsConfig
- func (in *NodeExporterCollectorInterruptsConfig) DeepCopy() *NodeExporterCollectorInterruptsConfig
- func (in *NodeExporterCollectorInterruptsConfig) DeepCopyInto(out *NodeExporterCollectorInterruptsConfig)
- func (in NodeExporterCollectorInterruptsConfig) OpenAPIModelName() string
- func (NodeExporterCollectorInterruptsConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorKSMDConfig
- func (in *NodeExporterCollectorKSMDConfig) DeepCopy() *NodeExporterCollectorKSMDConfig
- func (in *NodeExporterCollectorKSMDConfig) DeepCopyInto(out *NodeExporterCollectorKSMDConfig)
- func (in NodeExporterCollectorKSMDConfig) OpenAPIModelName() string
- func (NodeExporterCollectorKSMDConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorMountStatsConfig
- func (in *NodeExporterCollectorMountStatsConfig) DeepCopy() *NodeExporterCollectorMountStatsConfig
- func (in *NodeExporterCollectorMountStatsConfig) DeepCopyInto(out *NodeExporterCollectorMountStatsConfig)
- func (in NodeExporterCollectorMountStatsConfig) OpenAPIModelName() string
- func (NodeExporterCollectorMountStatsConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorNVMExpressSubsystemConfig
- func (in *NodeExporterCollectorNVMExpressSubsystemConfig) DeepCopy() *NodeExporterCollectorNVMExpressSubsystemConfig
- func (in *NodeExporterCollectorNVMExpressSubsystemConfig) DeepCopyInto(out *NodeExporterCollectorNVMExpressSubsystemConfig)
- func (in NodeExporterCollectorNVMExpressSubsystemConfig) OpenAPIModelName() string
- func (NodeExporterCollectorNVMExpressSubsystemConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorNetClassCollectConfig
- func (in *NodeExporterCollectorNetClassCollectConfig) DeepCopy() *NodeExporterCollectorNetClassCollectConfig
- func (in *NodeExporterCollectorNetClassCollectConfig) DeepCopyInto(out *NodeExporterCollectorNetClassCollectConfig)
- func (in NodeExporterCollectorNetClassCollectConfig) OpenAPIModelName() string
- func (NodeExporterCollectorNetClassCollectConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorNetClassConfig
- func (in *NodeExporterCollectorNetClassConfig) DeepCopy() *NodeExporterCollectorNetClassConfig
- func (in *NodeExporterCollectorNetClassConfig) DeepCopyInto(out *NodeExporterCollectorNetClassConfig)
- func (in NodeExporterCollectorNetClassConfig) OpenAPIModelName() string
- func (NodeExporterCollectorNetClassConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorNetDevConfig
- func (in *NodeExporterCollectorNetDevConfig) DeepCopy() *NodeExporterCollectorNetDevConfig
- func (in *NodeExporterCollectorNetDevConfig) DeepCopyInto(out *NodeExporterCollectorNetDevConfig)
- func (in NodeExporterCollectorNetDevConfig) OpenAPIModelName() string
- func (NodeExporterCollectorNetDevConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorProcessesConfig
- func (in *NodeExporterCollectorProcessesConfig) DeepCopy() *NodeExporterCollectorProcessesConfig
- func (in *NodeExporterCollectorProcessesConfig) DeepCopyInto(out *NodeExporterCollectorProcessesConfig)
- func (in NodeExporterCollectorProcessesConfig) OpenAPIModelName() string
- func (NodeExporterCollectorProcessesConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorSoftirqsConfig
- func (in *NodeExporterCollectorSoftirqsConfig) DeepCopy() *NodeExporterCollectorSoftirqsConfig
- func (in *NodeExporterCollectorSoftirqsConfig) DeepCopyInto(out *NodeExporterCollectorSoftirqsConfig)
- func (in NodeExporterCollectorSoftirqsConfig) OpenAPIModelName() string
- func (NodeExporterCollectorSoftirqsConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorSystemdCollectConfig
- func (in *NodeExporterCollectorSystemdCollectConfig) DeepCopy() *NodeExporterCollectorSystemdCollectConfig
- func (in *NodeExporterCollectorSystemdCollectConfig) DeepCopyInto(out *NodeExporterCollectorSystemdCollectConfig)
- func (in NodeExporterCollectorSystemdCollectConfig) OpenAPIModelName() string
- func (NodeExporterCollectorSystemdCollectConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorSystemdConfig
- func (in *NodeExporterCollectorSystemdConfig) DeepCopy() *NodeExporterCollectorSystemdConfig
- func (in *NodeExporterCollectorSystemdConfig) DeepCopyInto(out *NodeExporterCollectorSystemdConfig)
- func (in NodeExporterCollectorSystemdConfig) OpenAPIModelName() string
- func (NodeExporterCollectorSystemdConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorTcpStatConfig
- func (in *NodeExporterCollectorTcpStatConfig) DeepCopy() *NodeExporterCollectorTcpStatConfig
- func (in *NodeExporterCollectorTcpStatConfig) DeepCopyInto(out *NodeExporterCollectorTcpStatConfig)
- func (in NodeExporterCollectorTcpStatConfig) OpenAPIModelName() string
- func (NodeExporterCollectorTcpStatConfig) SwaggerDoc() map[string]string
- type NodeExporterCollectorZoneinfoConfig
- func (in *NodeExporterCollectorZoneinfoConfig) DeepCopy() *NodeExporterCollectorZoneinfoConfig
- func (in *NodeExporterCollectorZoneinfoConfig) DeepCopyInto(out *NodeExporterCollectorZoneinfoConfig)
- func (in NodeExporterCollectorZoneinfoConfig) OpenAPIModelName() string
- func (NodeExporterCollectorZoneinfoConfig) SwaggerDoc() map[string]string
- type NodeExporterConfig
- type NodeExporterIgnoredNetworkDevice
- type NodeExporterInterruptsIncludePattern
- type NodeExporterNetclassStatsGatherer
- type NodeExporterSystemdUnit
- type OAuth2
- type OAuth2EndpointParam
- type OpenShiftStateMetricsConfig
- type PKI
- type PKICertificateConfig
- type PKICertificateManagementdeprecated
- type PKICertificateManagementModedeprecated
- type PKICertificatePolicy
- type PKIDefaultCertificateConfig
- type PKIECDSACurve
- type PKIECDSAKeyConfig
- type PKIKeyAlgorithm
- type PKIKeyConfig
- type PKIKeyPolicy
- type PKIList
- type PKINamedCertificateConfig
- type PKINamedKeyConfig
- type PKIProfiledeprecated
- type PKIRSAKeyConfig
- type PKISpec
- type PersistentVolumeClaimReference
- func (in *PersistentVolumeClaimReference) DeepCopy() *PersistentVolumeClaimReference
- func (in *PersistentVolumeClaimReference) DeepCopyInto(out *PersistentVolumeClaimReference)
- func (in PersistentVolumeClaimReference) OpenAPIModelName() string
- func (PersistentVolumeClaimReference) SwaggerDoc() map[string]string
- type PersistentVolumeConfig
- type PrometheusConfig
- type PrometheusOperatorAdmissionWebhookConfig
- func (in *PrometheusOperatorAdmissionWebhookConfig) DeepCopy() *PrometheusOperatorAdmissionWebhookConfig
- func (in *PrometheusOperatorAdmissionWebhookConfig) DeepCopyInto(out *PrometheusOperatorAdmissionWebhookConfig)
- func (in PrometheusOperatorAdmissionWebhookConfig) OpenAPIModelName() string
- func (PrometheusOperatorAdmissionWebhookConfig) SwaggerDoc() map[string]string
- type PrometheusOperatorConfig
- type PrometheusRemoteWriteHeader
- type QueueConfig
- type RSAKeyConfigdeprecated
- type RateLimitedAction
- type RelabelAction
- type RelabelActionConfig
- type RelabelConfig
- type RemoteWriteAuthorization
- type RemoteWriteAuthorizationType
- type RemoteWriteMessageVersion
- type RemoteWriteSpec
- type ReplaceActionConfig
- type RequestLoggingPolicy
- type Retention
- type SecretKeySelector
- type SecretName
- type Sigv4
- type Storage
- type StorageType
- type TLSConfig
- type TelemeterClientConfig
- type ThanosQuerierConfig
- type ThanosQuerierRequestLoggingConfig
- func (in *ThanosQuerierRequestLoggingConfig) DeepCopy() *ThanosQuerierRequestLoggingConfig
- func (in *ThanosQuerierRequestLoggingConfig) DeepCopyInto(out *ThanosQuerierRequestLoggingConfig)
- func (in ThanosQuerierRequestLoggingConfig) OpenAPIModelName() string
- func (ThanosQuerierRequestLoggingConfig) SwaggerDoc() map[string]string
- type UppercaseActionConfig
- type UserAlertmanagerConfigSelection
- type UserDefinedMode
- type UserDefinedMonitoring
- type VerbosityLevel
- type VolumeForceDetachPolicy
Constants ¶
const ECDSACurveP256 = PKIECDSACurveP256
ECDSACurveP256 specifies the NIST P-256 curve (also known as secp256r1), providing 128-bit security.
Deprecated: use PKIECDSACurveP256 instead.
const ECDSACurveP384 = PKIECDSACurveP384
ECDSACurveP384 specifies the NIST P-384 curve (also known as secp384r1), providing 192-bit security.
Deprecated: use PKIECDSACurveP384 instead.
const ECDSACurveP521 = PKIECDSACurveP521
ECDSACurveP521 specifies the NIST P-521 curve (also known as secp521r1), providing 256-bit security.
Deprecated: use PKIECDSACurveP521 instead.
const KeyAlgorithmECDSA = PKIKeyAlgorithmECDSA
KeyAlgorithmECDSA specifies the ECDSA (Elliptic Curve Digital Signature Algorithm) for key generation.
Deprecated: use PKIKeyAlgorithmECDSA instead.
const KeyAlgorithmRSA = PKIKeyAlgorithmRSA
KeyAlgorithmRSA specifies the RSA (Rivest-Shamir-Adleman) algorithm for key generation.
Deprecated: use PKIKeyAlgorithmRSA instead.
Variables ¶
var ( GroupName = "config.openshift.io" GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"} // Install is a function which adds this version to a scheme Install = schemeBuilder.AddToScheme // SchemeGroupVersion generated code relies on this name // Deprecated SchemeGroupVersion = GroupVersion // AddToScheme exists solely to keep the old generators creating valid code // DEPRECATED AddToScheme = schemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource generated code relies on this being here, but it logically belongs to the group DEPRECATED
Types ¶
type AdditionalAlertmanagerConfig ¶
type AdditionalAlertmanagerConfig struct {
// name is a unique identifier for this Alertmanager configuration entry.
// The name must be a valid DNS subdomain (RFC 1123): lowercase alphanumeric characters,
// hyphens, or periods, and must start and end with an alphanumeric character.
// Minimum length is 1 character (empty string is invalid).
// Maximum length is 253 characters.
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character."
// +required
Name string `json:"name,omitempty"`
// authorization configures the authentication method for Alertmanager connections.
// Supports bearer token authentication. When omitted, no authentication is used.
// +optional
Authorization AuthorizationConfig `json:"authorization,omitempty,omitzero"`
// pathPrefix defines an optional URL path prefix to prepend to the Alertmanager API endpoints.
// For example, if your Alertmanager is behind a reverse proxy at "/alertmanager/",
// set this to "/alertmanager" so requests go to "/alertmanager/api/v1/alerts" instead of "/api/v1/alerts".
// This is commonly needed when Alertmanager is deployed behind ingress controllers or load balancers.
// When no prefix is needed, omit this field; do not set it to "/" as that would produce paths with double slashes (e.g. "//api/v1/alerts").
// Must start with "/", must not end with "/", and must not be exactly "/".
// Must not contain query strings ("?") or fragments ("#").
// +kubebuilder:validation:MaxLength=255
// +kubebuilder:validation:MinLength=2
// +kubebuilder:validation:XValidation:rule="self.startsWith('/')",message="pathPrefix must start with '/'"
// +kubebuilder:validation:XValidation:rule="!self.endsWith('/')",message="pathPrefix must not end with '/'"
// +kubebuilder:validation:XValidation:rule="self != '/'",message="pathPrefix must not be '/' (would produce double slashes in request path); omit for no prefix"
// +kubebuilder:validation:XValidation:rule="!self.contains('?') && !self.contains('#')",message="pathPrefix must not contain '?' or '#'"
// +optional
PathPrefix string `json:"pathPrefix,omitempty"`
// scheme defines the URL scheme to use when communicating with Alertmanager
// instances.
// Possible values are `HTTP` or `HTTPS`.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default value is `HTTP`.
// +optional
Scheme AlertmanagerScheme `json:"scheme,omitempty"`
// staticConfigs is a list of statically configured Alertmanager endpoints.
// Each entry must be a valid hostname, IPv4 address, or IPv6 address (in brackets),
// optionally followed by a colon and a port number (1-65535).
// When the port is omitted, Prometheus uses the default port for the configured scheme
// (80 for HTTP, 443 for HTTPS).
// Examples: "alertmanager.example.com", "alertmanager.example.com:9093", "192.168.1.100:9093", "[::1]:9093"
// At least one endpoint must be specified (minimum 1, maximum 10 endpoints).
// Each entry must be unique and non-empty (empty string is invalid).
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:items:MinLength=1
// +kubebuilder:validation:items:MaxLength=255
// +kubebuilder:validation:items:XValidation:rule="isURL('http://' + self) && size(url('http://' + self).getHostname()) > 0 && (size(url('http://' + self).getPort()) == 0 || (int(url('http://' + self).getPort()) >= 1 && int(url('http://' + self).getPort()) <= 65535))",message="must be a valid host or host:port where host is a DNS name, IPv4, or IPv6 address (in brackets), and port (if specified) is 1-65535"
// +listType=set
// +required
StaticConfigs []string `json:"staticConfigs,omitempty"`
// timeoutMilliseconds defines the timeout in milliseconds for requests to Alertmanager.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// Currently the default is 10000 milliseconds (10 seconds).
// Minimum value is 100 milliseconds.
// Maximum value is 600000 milliseconds (10 minutes).
// +kubebuilder:validation:Minimum=100
// +kubebuilder:validation:Maximum=600000
// +optional
TimeoutMilliseconds int32 `json:"timeoutMilliseconds,omitempty"`
// tlsConfig defines the TLS settings to use for Alertmanager connections.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
TLSConfig TLSConfig `json:"tlsConfig,omitempty,omitzero"`
}
AdditionalAlertmanagerConfig represents configuration for additional Alertmanager instances. The `AdditionalAlertmanagerConfig` resource defines settings for how a component communicates with additional Alertmanager instances.
func (*AdditionalAlertmanagerConfig) DeepCopy ¶
func (in *AdditionalAlertmanagerConfig) DeepCopy() *AdditionalAlertmanagerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdditionalAlertmanagerConfig.
func (*AdditionalAlertmanagerConfig) DeepCopyInto ¶
func (in *AdditionalAlertmanagerConfig) DeepCopyInto(out *AdditionalAlertmanagerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (AdditionalAlertmanagerConfig) OpenAPIModelName ¶
func (in AdditionalAlertmanagerConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (AdditionalAlertmanagerConfig) SwaggerDoc ¶
func (AdditionalAlertmanagerConfig) SwaggerDoc() map[string]string
type AlertManagerDeployMode ¶
type AlertManagerDeployMode string
AlertManagerDeployMode defines the deployment state of the platform Alertmanager instance.
Possible values: - "Disabled": The Alertmanager instance will not be deployed. - "DefaultConfig": The Alertmanager instance will be deployed with default settings. - "CustomConfig": The Alertmanager instance will be deployed with custom configuration. +kubebuilder:validation:Enum=Disabled;DefaultConfig;CustomConfig
const ( // AlertManagerModeDisabled means the Alertmanager instance will not be deployed. AlertManagerDeployModeDisabled AlertManagerDeployMode = "Disabled" // AlertManagerModeDefaultConfig means the Alertmanager instance will be deployed with default settings. AlertManagerDeployModeDefaultConfig AlertManagerDeployMode = "DefaultConfig" // AlertManagerModeCustomConfig means the Alertmanager instance will be deployed with custom configuration. AlertManagerDeployModeCustomConfig AlertManagerDeployMode = "CustomConfig" )
type AlertmanagerConfig ¶
type AlertmanagerConfig struct {
// deploymentMode determines whether the default Alertmanager instance should be deployed
// as part of the monitoring stack.
// Allowed values are Disabled, DefaultConfig, and CustomConfig.
// When set to Disabled, the Alertmanager instance will not be deployed.
// When set to DefaultConfig, the platform will deploy Alertmanager with default settings.
// When set to CustomConfig, the Alertmanager will be deployed with custom configuration.
//
// +unionDiscriminator
// +required
DeploymentMode AlertManagerDeployMode `json:"deploymentMode,omitempty"`
// customConfig must be set when deploymentMode is CustomConfig, and must be unset otherwise.
// When set to CustomConfig, the Alertmanager will be deployed with custom configuration.
// +optional
CustomConfig AlertmanagerCustomConfig `json:"customConfig,omitempty,omitzero"`
}
alertmanagerConfig provides configuration options for the default Alertmanager instance that runs in the `openshift-monitoring` namespace. Use this configuration to control whether the default Alertmanager is deployed, how it logs, and how its pods are scheduled. +kubebuilder:validation:XValidation:rule="self.deploymentMode == 'CustomConfig' ? has(self.customConfig) : !has(self.customConfig)",message="customConfig is required when deploymentMode is CustomConfig, and forbidden otherwise"
func (*AlertmanagerConfig) DeepCopy ¶
func (in *AlertmanagerConfig) DeepCopy() *AlertmanagerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerConfig.
func (*AlertmanagerConfig) DeepCopyInto ¶
func (in *AlertmanagerConfig) DeepCopyInto(out *AlertmanagerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (AlertmanagerConfig) OpenAPIModelName ¶
func (in AlertmanagerConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (AlertmanagerConfig) SwaggerDoc ¶
func (AlertmanagerConfig) SwaggerDoc() map[string]string
type AlertmanagerCustomConfig ¶
type AlertmanagerCustomConfig struct {
// userAlertmanagerConfigSelection is an optional field that controls whether user-defined
// namespaces can be selected for AlertmanagerConfig lookups on the platform Alertmanager
// instance in the `openshift-monitoring` namespace.
// Valid values are Selectable and None.
// When set to Selectable, the platform Alertmanager discovers AlertmanagerConfig resources
// in user-defined namespaces. This is equivalent to `enableUserAlertmanagerConfig: true` in
// the cluster-monitoring-config ConfigMap.
// When set to None, user-defined namespaces are not selected for AlertmanagerConfig lookups
// on the platform Alertmanager. This is equivalent to `enableUserAlertmanagerConfig: false`
// in the cluster-monitoring-config ConfigMap.
// This setting only applies when the user-workload monitoring Alertmanager is not enabled.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default value is `None`.
// +optional
// +kubebuilder:validation:Enum=Selectable;None
UserAlertmanagerConfigSelection UserAlertmanagerConfigSelection `json:"userAlertmanagerConfigSelection,omitempty"`
// logLevel defines the verbosity of logs emitted by Alertmanager.
// This field allows users to control the amount and severity of logs generated, which can be useful
// for debugging issues or reducing noise in production environments.
// Allowed values are Error, Warn, Info, and Debug.
// When set to Error, only errors will be logged.
// When set to Warn, both warnings and errors will be logged.
// When set to Info, general information, warnings, and errors will all be logged.
// When set to Debug, detailed debugging information will be logged.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
// The current default value is `Info`.
// +optional
LogLevel LogLevel `json:"logLevel,omitempty"`
// nodeSelector defines the nodes on which the Pods are scheduled
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// resources defines the compute resource requests and limits for the Alertmanager container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 4m
// limit: null
// - name: memory
// request: 40Mi
// limit: null
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// secrets defines a list of secrets that need to be mounted into the Alertmanager.
// The secrets must reside within the same namespace as the Alertmanager object.
// They will be added as volumes named secret-<secret-name> and mounted at
// /etc/alertmanager/secrets/<secret-name> within the 'alertmanager' container of
// the Alertmanager Pods.
//
// These secrets can be used to authenticate Alertmanager with endpoint receivers.
// For example, you can use secrets to:
// - Provide certificates for TLS authentication with receivers that require private CA certificates
// - Store credentials for Basic HTTP authentication with receivers that require password-based auth
// - Store any other authentication credentials needed by your alert receivers
//
// This field is optional.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// Entries in this list must be unique.
// +optional
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=set
Secrets []SecretName `json:"secrets,omitempty"`
// tolerations defines tolerations for the pods.
// tolerations is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// Defaults are empty/unset.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=atomic
// +optional
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// topologySpreadConstraints defines rules for how Alertmanager Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Default is empty list.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
// volumeClaimTemplate defines persistent storage for Alertmanager. Use this setting to
// configure the persistent volume claim, including storage class and volume size.
// If omitted, the Pod uses ephemeral storage and alert data will not persist
// across restarts.
// +optional
VolumeClaimTemplate *v1.PersistentVolumeClaim `json:"volumeClaimTemplate,omitempty,omitzero"`
}
AlertmanagerCustomConfig represents the configuration for a custom Alertmanager deployment. alertmanagerCustomConfig provides configuration options for the default Alertmanager instance that runs in the `openshift-monitoring` namespace. Use this configuration to control whether user-defined namespaces are selected for AlertmanagerConfig lookups, how it logs, and how its pods are scheduled. +kubebuilder:validation:MinProperties=1
func (*AlertmanagerCustomConfig) DeepCopy ¶
func (in *AlertmanagerCustomConfig) DeepCopy() *AlertmanagerCustomConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertmanagerCustomConfig.
func (*AlertmanagerCustomConfig) DeepCopyInto ¶
func (in *AlertmanagerCustomConfig) DeepCopyInto(out *AlertmanagerCustomConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (AlertmanagerCustomConfig) OpenAPIModelName ¶
func (in AlertmanagerCustomConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (AlertmanagerCustomConfig) SwaggerDoc ¶
func (AlertmanagerCustomConfig) SwaggerDoc() map[string]string
type AlertmanagerScheme ¶
type AlertmanagerScheme string
AlertmanagerScheme defines the URL scheme to use when communicating with Alertmanager instances. +kubebuilder:validation:Enum=HTTP;HTTPS
const ( AlertmanagerSchemeHTTP AlertmanagerScheme = "HTTP" AlertmanagerSchemeHTTPS AlertmanagerScheme = "HTTPS" )
type Audit ¶
type Audit struct {
// profile is a required field for configuring the audit log level of the Kubernetes Metrics Server.
// Allowed values are None, Metadata, Request, or RequestResponse.
// When set to None, audit logging is disabled and no audit events are recorded.
// When set to Metadata, only request metadata (such as requesting user, timestamp, resource, verb, etc.) is logged, but not the request or response body.
// When set to Request, event metadata and the request body are logged, but not the response body.
// When set to RequestResponse, event metadata, request body, and response body are all logged, providing the most detailed audit information.
//
// See: https://kubernetes.io/docs/tasks/debug-application-cluster/audit/#audit-policy
// for more information about auditing and log levels.
// +required
Profile AuditProfile `json:"profile,omitempty"`
}
Audit profile configurations
func (*Audit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Audit.
func (*Audit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Audit) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (Audit) SwaggerDoc ¶
type AuditProfile ¶
type AuditProfile string
AuditProfile defines the audit log level for the Metrics Server. +kubebuilder:validation:Enum=None;Metadata;Request;RequestResponse
const ( // AuditProfileNone disables audit logging AuditProfileNone AuditProfile = "None" // AuditProfileMetadata logs request metadata (requesting user, timestamp, resource, verb, etc.) but not request or response body AuditProfileMetadata AuditProfile = "Metadata" // AuditProfileRequest logs event metadata and request body but not response body AuditProfileRequest AuditProfile = "Request" // AuditProfileRequestResponse logs event metadata, request and response bodies AuditProfileRequestResponse AuditProfile = "RequestResponse" )
type AuthorizationConfig ¶
type AuthorizationConfig struct {
// type specifies the authentication type to use.
// Valid value is "BearerToken" (bearer token authentication).
// When set to BearerToken, the bearerToken field must be specified.
// +unionDiscriminator
// +required
Type AuthorizationType `json:"type,omitempty"`
// bearerToken defines the secret reference containing the bearer token.
// Required when type is "BearerToken", and forbidden otherwise.
// The secret must exist in the openshift-monitoring namespace.
// +optional
BearerToken SecretKeySelector `json:"bearerToken,omitempty,omitzero"`
}
AuthorizationConfig defines the authentication method for Alertmanager connections. +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'BearerToken' ? has(self.bearerToken) : !has(self.bearerToken)",message="bearerToken is required when type is BearerToken" +union
func (*AuthorizationConfig) DeepCopy ¶
func (in *AuthorizationConfig) DeepCopy() *AuthorizationConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthorizationConfig.
func (*AuthorizationConfig) DeepCopyInto ¶
func (in *AuthorizationConfig) DeepCopyInto(out *AuthorizationConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (AuthorizationConfig) OpenAPIModelName ¶
func (in AuthorizationConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (AuthorizationConfig) SwaggerDoc ¶
func (AuthorizationConfig) SwaggerDoc() map[string]string
type AuthorizationType ¶
type AuthorizationType string
AuthorizationType defines the type of authentication to use. +kubebuilder:validation:Enum=BearerToken
const ( // AuthorizationTypeBearerToken indicates bearer token authentication. AuthorizationTypeBearerToken AuthorizationType = "BearerToken" )
type BasicAuth ¶
type BasicAuth struct {
// username defines the secret reference containing the username for basic authentication.
// The secret must exist in the openshift-monitoring namespace.
// +required
Username SecretKeySelector `json:"username,omitzero,omitempty"`
// password defines the secret reference containing the password for basic authentication.
// The secret must exist in the openshift-monitoring namespace.
// +required
Password SecretKeySelector `json:"password,omitzero,omitempty"`
}
BasicAuth defines basic authentication settings for the remote write endpoint URL.
func (*BasicAuth) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicAuth.
func (*BasicAuth) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (BasicAuth) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (BasicAuth) SwaggerDoc ¶
type BodySizeEnforcement ¶
type BodySizeEnforcement struct {
// mode selects how the scrape response size limit is determined.
// This field is required.
// Valid values are Automatic, Custom and None.
// When set to Automatic, the Cluster Monitoring Operator calculates an appropriate limit based on cluster pod capacity.
// When set to Custom, the limit is taken from the custom field.
// When set to None, no limit is configured.
// +unionDiscriminator
// +required
Mode BodySizeEnforcementMode `json:"mode,omitempty"`
// custom defines a fixed scrape response size limit.
// Required when mode is Custom, and forbidden otherwise.
// +unionMember
// +optional
Custom BodySizeEnforcementCustomConfig `json:"custom,omitzero,omitempty"`
}
BodySizeEnforcement configures the maximum size of the response body accepted from a scraped target. When mode is Custom, the custom field must be set, and it is forbidden otherwise. +kubebuilder:validation:XValidation:rule="self.mode == 'Custom' ? has(self.custom) : !has(self.custom)",message="custom is required when mode is Custom, and forbidden otherwise" +union
func (*BodySizeEnforcement) DeepCopy ¶
func (in *BodySizeEnforcement) DeepCopy() *BodySizeEnforcement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BodySizeEnforcement.
func (*BodySizeEnforcement) DeepCopyInto ¶
func (in *BodySizeEnforcement) DeepCopyInto(out *BodySizeEnforcement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (BodySizeEnforcement) OpenAPIModelName ¶
func (in BodySizeEnforcement) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (BodySizeEnforcement) SwaggerDoc ¶
func (BodySizeEnforcement) SwaggerDoc() map[string]string
type BodySizeEnforcementCustomConfig ¶
type BodySizeEnforcementCustomConfig struct {
// maxSizeBytes defines the maximum size in bytes of the response body accepted from a scraped target.
// If a scraped target's body response is larger than the limit, the scrape will fail.
// This helps protect Prometheus from targets that return excessively large responses.
// The value is specified in bytes (e.g., 4194304 for 4MB, 1073741824 for 1GB).
// Minimum value is 1048576 (1MiB).
// Maximum value is 1073741824 (1GB).
// This field is required.
// +kubebuilder:validation:Minimum=1048576
// +kubebuilder:validation:Maximum=1073741824
// +required
MaxSizeBytes int64 `json:"maxSizeBytes,omitempty"`
}
BodySizeEnforcementCustomConfig defines a fixed scrape response size limit.
func (*BodySizeEnforcementCustomConfig) DeepCopy ¶
func (in *BodySizeEnforcementCustomConfig) DeepCopy() *BodySizeEnforcementCustomConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BodySizeEnforcementCustomConfig.
func (*BodySizeEnforcementCustomConfig) DeepCopyInto ¶
func (in *BodySizeEnforcementCustomConfig) DeepCopyInto(out *BodySizeEnforcementCustomConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (BodySizeEnforcementCustomConfig) OpenAPIModelName ¶
func (in BodySizeEnforcementCustomConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (BodySizeEnforcementCustomConfig) SwaggerDoc ¶
func (BodySizeEnforcementCustomConfig) SwaggerDoc() map[string]string
type BodySizeEnforcementMode ¶
type BodySizeEnforcementMode string
BodySizeEnforcementMode selects how the scrape response size limit is determined. +kubebuilder:validation:Enum=Automatic;Custom;None
const ( // BodySizeEnforcementModeAutomatic calculates the limit from cluster pod capacity. BodySizeEnforcementModeAutomatic BodySizeEnforcementMode = "Automatic" // BodySizeEnforcementModeCustom uses the limit configured in the custom field. BodySizeEnforcementModeCustom BodySizeEnforcementMode = "Custom" // BodySizeEnforcementModeNone configures no limit. BodySizeEnforcementModeNone BodySizeEnforcementMode = "None" )
type CertificateConfig
deprecated
type CertificateConfig = PKICertificateConfig
CertificateConfig specifies configuration parameters for certificates. Its key field is now marked required (previously enforced via minProperties: 1).
Deprecated: use PKICertificateConfig instead.
type CertificateVerificationType ¶
type CertificateVerificationType string
CertificateVerificationType defines the TLS certificate verification policy. +kubebuilder:validation:Enum=Verify;SkipVerify
const ( // CertificateVerificationVerify performs certificate verification (secure, recommended). CertificateVerificationVerify CertificateVerificationType = "Verify" // CertificateVerificationSkipVerify skips certificate verification (insecure, use with caution). CertificateVerificationSkipVerify CertificateVerificationType = "SkipVerify" )
type ClusterMonitoring ¶
type ClusterMonitoring struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object metadata.
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
// spec holds user configuration for the Cluster Monitoring Operator
// +required
Spec ClusterMonitoringSpec `json:"spec"`
// status holds observed values from the cluster. They may not be overridden.
// +optional
Status ClusterMonitoringStatus `json:"status,omitempty"`
}
ClusterMonitoring is the Custom Resource object which holds the current status of Cluster Monitoring Operator. CMO is a central component of the monitoring stack.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:internal +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/1929 +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=config-operator,operatorOrdering=01 +kubebuilder:object:root=true +kubebuilder:resource:path=clustermonitorings,scope=Cluster +kubebuilder:subresource:status +kubebuilder:metadata:annotations="description=Cluster Monitoring Operators configuration API" +openshift:enable:FeatureGate=ClusterMonitoringConfig ClusterMonitoring is the Schema for the Cluster Monitoring Operators API
func (*ClusterMonitoring) DeepCopy ¶
func (in *ClusterMonitoring) DeepCopy() *ClusterMonitoring
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoring.
func (*ClusterMonitoring) DeepCopyInto ¶
func (in *ClusterMonitoring) DeepCopyInto(out *ClusterMonitoring)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterMonitoring) DeepCopyObject ¶
func (in *ClusterMonitoring) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterMonitoring) OpenAPIModelName ¶
func (in ClusterMonitoring) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterMonitoring) SwaggerDoc ¶
func (ClusterMonitoring) SwaggerDoc() map[string]string
type ClusterMonitoringList ¶
type ClusterMonitoringList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list metadata.
// +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// items is a list of ClusterMonitoring
// +optional
Items []ClusterMonitoring `json:"items"`
}
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:internal
func (*ClusterMonitoringList) DeepCopy ¶
func (in *ClusterMonitoringList) DeepCopy() *ClusterMonitoringList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringList.
func (*ClusterMonitoringList) DeepCopyInto ¶
func (in *ClusterMonitoringList) DeepCopyInto(out *ClusterMonitoringList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterMonitoringList) DeepCopyObject ¶
func (in *ClusterMonitoringList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterMonitoringList) OpenAPIModelName ¶
func (in ClusterMonitoringList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterMonitoringList) SwaggerDoc ¶
func (ClusterMonitoringList) SwaggerDoc() map[string]string
type ClusterMonitoringSpec ¶
type ClusterMonitoringSpec struct {
// userDefined set the deployment mode for user-defined monitoring in addition to the default platform monitoring.
// userDefined is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default value is `Disabled`.
// +optional
UserDefined UserDefinedMonitoring `json:"userDefined,omitempty,omitzero"`
// alertmanagerConfig allows users to configure how the default Alertmanager instance
// should be deployed in the `openshift-monitoring` namespace.
// alertmanagerConfig is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
// The current default value is `DefaultConfig`.
// +optional
AlertmanagerConfig AlertmanagerConfig `json:"alertmanagerConfig,omitempty,omitzero"`
// prometheusConfig provides configuration options for the default platform Prometheus instance
// that runs in the `openshift-monitoring` namespace. This configuration applies only to the
// platform Prometheus instance; user-workload Prometheus instances are configured separately.
//
// This field allows you to customize how the platform Prometheus is deployed and operated, including:
// - Pod scheduling (node selectors, tolerations, topology spread constraints)
// - Resource allocation (CPU, memory requests/limits)
// - Retention policies (how long metrics are stored)
// - External integrations (remote write, additional alertmanagers)
//
// This field is optional. When omitted, the platform chooses reasonable defaults, which may change over time.
// +optional
PrometheusConfig PrometheusConfig `json:"prometheusConfig,omitempty,omitzero"`
// metricsServerConfig is an optional field that can be used to configure the Kubernetes Metrics Server that runs in the openshift-monitoring namespace.
// Specifically, it can configure how the Metrics Server instance is deployed, pod scheduling, its audit policy and log verbosity.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
MetricsServerConfig MetricsServerConfig `json:"metricsServerConfig,omitempty,omitzero"`
// prometheusOperatorConfig is an optional field that can be used to configure the Prometheus Operator component.
// Specifically, it can configure how the Prometheus Operator instance is deployed, pod scheduling, and resource allocation.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
PrometheusOperatorConfig PrometheusOperatorConfig `json:"prometheusOperatorConfig,omitempty,omitzero"`
// prometheusOperatorAdmissionWebhookConfig is an optional field that can be used to configure the
// admission webhook component of Prometheus Operator that runs in the openshift-monitoring namespace.
// The admission webhook validates PrometheusRule and AlertmanagerConfig objects to ensure they are
// semantically valid, mutates PrometheusRule annotations, and converts AlertmanagerConfig objects
// between API versions.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
PrometheusOperatorAdmissionWebhookConfig PrometheusOperatorAdmissionWebhookConfig `json:"prometheusOperatorAdmissionWebhookConfig,omitempty,omitzero"`
// openShiftStateMetricsConfig is an optional field that can be used to configure the openshift-state-metrics
// agent that runs in the openshift-monitoring namespace. The openshift-state-metrics agent generates metrics
// about the state of OpenShift-specific Kubernetes objects, such as routes, builds, and deployments.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
OpenShiftStateMetricsConfig OpenShiftStateMetricsConfig `json:"openShiftStateMetricsConfig,omitempty,omitzero"`
// telemeterClientConfig is an optional field that can be used to configure the Telemeter Client
// component that runs in the openshift-monitoring namespace. The Telemeter Client collects
// selected monitoring metrics and forwards them to Red Hat for telemetry purposes.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// When set, at least one field must be specified within telemeterClientConfig.
// +optional
TelemeterClientConfig TelemeterClientConfig `json:"telemeterClientConfig,omitempty,omitzero"`
// thanosQuerierConfig is an optional field that can be used to configure the Thanos Querier
// component that runs in the openshift-monitoring namespace. The Thanos Querier provides
// a global query view by aggregating and deduplicating metrics from multiple Prometheus instances.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default deploys the Thanos Querier on linux nodes with 5m CPU and 12Mi memory
// requests, and no custom tolerations or topology spread constraints.
// When set, at least one field must be specified within thanosQuerierConfig.
// +optional
ThanosQuerierConfig ThanosQuerierConfig `json:"thanosQuerierConfig,omitempty,omitzero"`
// nodeExporterConfig is an optional field that can be used to configure the node-exporter agent
// that runs as a DaemonSet in the openshift-monitoring namespace. The node-exporter agent collects
// hardware and OS-level metrics from every node in the cluster.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
NodeExporterConfig NodeExporterConfig `json:"nodeExporterConfig,omitempty,omitzero"`
// monitoringPluginConfig is an optional field that can be used to configure the monitoring plugin
// that runs as a dynamic plugin of the OpenShift web console. The monitoring plugin provides
// the monitoring UI in the OpenShift web console for visualizing metrics, alerts, and dashboards.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default deploys the monitoring-plugin as a single-replica Deployment
// on linux nodes with 10m CPU and 50Mi memory requests, and no custom tolerations
// or topology spread constraints.
// When set, at least one field must be specified within monitoringPluginConfig.
// +optional
MonitoringPluginConfig MonitoringPluginConfig `json:"monitoringPluginConfig,omitempty,omitzero"`
// kubeStateMetricsConfig is an optional field that can be used to configure the kube-state-metrics
// agent that runs in the openshift-monitoring namespace. kube-state-metrics generates metrics about
// the state of Kubernetes objects such as Deployments, Nodes, and Pods.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
KubeStateMetricsConfig KubeStateMetricsConfig `json:"kubeStateMetricsConfig,omitempty,omitzero"`
}
ClusterMonitoringSpec defines the desired state of Cluster Monitoring Operator +kubebuilder:validation:MinProperties=1
func (*ClusterMonitoringSpec) DeepCopy ¶
func (in *ClusterMonitoringSpec) DeepCopy() *ClusterMonitoringSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringSpec.
func (*ClusterMonitoringSpec) DeepCopyInto ¶
func (in *ClusterMonitoringSpec) DeepCopyInto(out *ClusterMonitoringSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterMonitoringSpec) OpenAPIModelName ¶
func (in ClusterMonitoringSpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterMonitoringSpec) SwaggerDoc ¶
func (ClusterMonitoringSpec) SwaggerDoc() map[string]string
type ClusterMonitoringStatus ¶
type ClusterMonitoringStatus struct {
}
ClusterMonitoringStatus defines the observed state of ClusterMonitoring
func (*ClusterMonitoringStatus) DeepCopy ¶
func (in *ClusterMonitoringStatus) DeepCopy() *ClusterMonitoringStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMonitoringStatus.
func (*ClusterMonitoringStatus) DeepCopyInto ¶
func (in *ClusterMonitoringStatus) DeepCopyInto(out *ClusterMonitoringStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterMonitoringStatus) OpenAPIModelName ¶
func (in ClusterMonitoringStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ClusterMonitoringStatus) SwaggerDoc ¶
func (ClusterMonitoringStatus) SwaggerDoc() map[string]string
type CollectionProfile ¶
type CollectionProfile string
CollectionProfile defines the metrics collection profile for Prometheus. +kubebuilder:validation:Enum=Full;Minimal
const ( // CollectionProfileFull means Prometheus collects all metrics that are exposed by the platform components. CollectionProfileFull CollectionProfile = "Full" // CollectionProfileMinimal means Prometheus only collects metrics necessary for the default // platform alerts, recording rules, telemetry and console dashboards. CollectionProfileMinimal CollectionProfile = "Minimal" )
type ContainerResource ¶
type ContainerResource struct {
// name of the resource (e.g. "cpu", "memory", "hugepages-2Mi").
// This field is required.
// name must consist only of alphanumeric characters, `-`, `_` and `.` and must start and end with an alphanumeric character.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:XValidation:rule="!format.qualifiedName().validate(self).hasValue()",message="name must consist only of alphanumeric characters, `-`, `_` and `.` and must start and end with an alphanumeric character"
Name string `json:"name,omitempty"`
// request is the minimum amount of the resource required (e.g. "2Mi", "1Gi").
// This field is optional.
// When limit is specified, request cannot be greater than limit.
// The value must be greater than 0 when specified.
// +optional
// +kubebuilder:validation:XIntOrString
// +kubebuilder:validation:MaxLength=20
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:XValidation:rule="quantity(self).isGreaterThan(quantity('0'))",message="request must be a positive, non-zero quantity"
Request resource.Quantity `json:"request,omitempty"`
// limit is the maximum amount of the resource allowed (e.g. "2Mi", "1Gi").
// This field is optional.
// When request is specified, limit cannot be less than request.
// The value must be greater than 0 when specified.
// +optional
// +kubebuilder:validation:XIntOrString
// +kubebuilder:validation:MaxLength=20
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:XValidation:rule="quantity(self).isGreaterThan(quantity('0'))",message="limit must be a positive, non-zero quantity"
Limit resource.Quantity `json:"limit,omitempty"`
}
ContainerResource defines a single resource requirement for a container. +kubebuilder:validation:XValidation:rule="has(self.request) || has(self.limit)",message="at least one of request or limit must be set" +kubebuilder:validation:XValidation:rule="!(has(self.request) && has(self.limit)) || quantity(self.limit).compareTo(quantity(self.request)) >= 0",message="limit must be greater than or equal to request"
func (*ContainerResource) DeepCopy ¶
func (in *ContainerResource) DeepCopy() *ContainerResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResource.
func (*ContainerResource) DeepCopyInto ¶
func (in *ContainerResource) DeepCopyInto(out *ContainerResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ContainerResource) OpenAPIModelName ¶
func (in ContainerResource) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ContainerResource) SwaggerDoc ¶
func (ContainerResource) SwaggerDoc() map[string]string
type ControllerManager ¶
type ControllerManager struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitzero"`
// spec holds user settable values for configuration.
// This field is required but the spec may be empty to express no opinion.
// +required
Spec *ControllerManagerSpec `json:"spec,omitempty,omitzero"`
}
ControllerManager holds cluster-wide configuration shared by the controller managers in the system, among them especially kube-controller-manager. The resource is a singleton named "cluster".
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4 +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/2668 +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=config-operator,operatorOrdering=01 +kubebuilder:object:root=true +kubebuilder:resource:path=controllermanagers,scope=Cluster +openshift:enable:FeatureGate=ControllerManagerConfig +kubebuilder:validation:XValidation:rule="self.metadata.name == 'cluster'",message="controllermanager is a singleton, .metadata.name must be 'cluster'"
func (*ControllerManager) DeepCopy ¶
func (in *ControllerManager) DeepCopy() *ControllerManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerManager.
func (*ControllerManager) DeepCopyInto ¶
func (in *ControllerManager) DeepCopyInto(out *ControllerManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControllerManager) DeepCopyObject ¶
func (in *ControllerManager) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ControllerManager) OpenAPIModelName ¶
func (in ControllerManager) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ControllerManager) SwaggerDoc ¶
func (ControllerManager) SwaggerDoc() map[string]string
type ControllerManagerList ¶
type ControllerManagerList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ListMeta `json:"metadata"`
// items is a list of ControllerManager resources
Items []ControllerManager `json:"items"`
}
ControllerManagerList is a collection of ControllerManager resources.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*ControllerManagerList) DeepCopy ¶
func (in *ControllerManagerList) DeepCopy() *ControllerManagerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerManagerList.
func (*ControllerManagerList) DeepCopyInto ¶
func (in *ControllerManagerList) DeepCopyInto(out *ControllerManagerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ControllerManagerList) DeepCopyObject ¶
func (in *ControllerManagerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ControllerManagerList) OpenAPIModelName ¶
func (in ControllerManagerList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ControllerManagerList) SwaggerDoc ¶
func (ControllerManagerList) SwaggerDoc() map[string]string
type ControllerManagerSpec ¶
type ControllerManagerSpec struct {
// volumeForceDetach controls the conditions under which kube-controller-manager
// force detaches volumes from a node that is not healthy.
// Volumes are always force detached when a node is marked out-of-service via the
// "node.kubernetes.io/out-of-service" taint, as part of the non-graceful node
// shutdown procedure. This field controls whether force detach is also triggered
// when the maximum unmount time is exceeded (6 minutes).
// Valid values are "OnUnmountTimeout" and "OnOutOfServiceTaintOnly".
// When set to "OnUnmountTimeout", volumes are force detached from unhealthy nodes
// once the maximum unmount time is exceeded, so that workloads using them can start
// on other nodes. Force detaching a volume that is still in use by the node can
// corrupt its data.
// When set to "OnOutOfServiceTaintOnly", volumes are force detached only via the
// out-of-service taint, and remain attached to an unhealthy node until it recovers
// or the "node.kubernetes.io/out-of-service" taint is applied as part of the
// non-graceful node shutdown procedure.
// When omitted, this means the user has no opinion and the platform is left
// to choose a reasonable default, which is subject to change over time.
// The current default is "OnUnmountTimeout".
// Changing this field causes kube-controller-manager to be redeployed with the new setting.
// Rollout progress is reported by the kube-controller-manager cluster operator.
// +optional
VolumeForceDetach VolumeForceDetachPolicy `json:"volumeForceDetach,omitempty"`
}
ControllerManagerSpec defines the desired state of the controller managers +kubebuilder:validation:MinProperties=0
func (*ControllerManagerSpec) DeepCopy ¶
func (in *ControllerManagerSpec) DeepCopy() *ControllerManagerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerManagerSpec.
func (*ControllerManagerSpec) DeepCopyInto ¶
func (in *ControllerManagerSpec) DeepCopyInto(out *ControllerManagerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ControllerManagerSpec) OpenAPIModelName ¶
func (in ControllerManagerSpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ControllerManagerSpec) SwaggerDoc ¶
func (ControllerManagerSpec) SwaggerDoc() map[string]string
type CrossOriginRequestPolicy ¶
type CrossOriginRequestPolicy string
CrossOriginRequestPolicy controls the CORS (Cross-Origin Resource Sharing) policy for Thanos Querier's HTTP endpoints. Valid values are "AllowAll" and "DenyAll". +kubebuilder:validation:Enum=AllowAll;DenyAll
const ( // CrossOriginRequestPolicyAllowAll sets CORS headers allowing requests from any origin. CrossOriginRequestPolicyAllowAll CrossOriginRequestPolicy = "AllowAll" // CrossOriginRequestPolicyDenyAll does not set CORS headers, rejecting cross-origin requests. CrossOriginRequestPolicyDenyAll CrossOriginRequestPolicy = "DenyAll" )
type CustomPKIPolicy
deprecated
type CustomPKIPolicy struct {
// PKIProfile holds the administrator-specified certificate generation parameters.
//
// Deprecated: use PKICertificatePolicy instead.
PKIProfile `json:",inline"`
}
CustomPKIPolicy contains administrator-specified cryptographic configuration, wrapping a PKIProfile. When set, at least one property must be specified.
Deprecated: the wrapped fields were flattened into PKICertificatePolicy.
+kubebuilder:validation:MinProperties=1
func (*CustomPKIPolicy) DeepCopy ¶
func (in *CustomPKIPolicy) DeepCopy() *CustomPKIPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomPKIPolicy.
func (*CustomPKIPolicy) DeepCopyInto ¶
func (in *CustomPKIPolicy) DeepCopyInto(out *CustomPKIPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (CustomPKIPolicy) OpenAPIModelName ¶
func (in CustomPKIPolicy) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (CustomPKIPolicy) SwaggerDoc ¶
func (CustomPKIPolicy) SwaggerDoc() map[string]string
type DataPolicy ¶
type DataPolicy string
dataPolicy declares valid data policy types +kubebuilder:validation:Enum="";None;ObfuscateNetworking
const ( // No data obfuscation NoPolicy DataPolicy = "None" // IP addresses and cluster domain name are obfuscated ObfuscateNetworking DataPolicy = "ObfuscateNetworking" )
type DefaultCertificateConfig
deprecated
type DefaultCertificateConfig = PKIDefaultCertificateConfig
DefaultCertificateConfig specifies the default certificate configuration parameters.
Deprecated: use PKIDefaultCertificateConfig instead.
type DisabledGatherer ¶
type DisabledGatherer string
disabledGatherer is a string that represents a gatherer that should be disabled +kubebuilder:validation:MaxLength=256 +kubebuilder:validation:XValidation:rule=`self.matches("^[a-z]+[_a-z]*[a-z]([/a-z][_a-z]*)?[a-z]$")`,message=`disabledGatherer must be in the format of {gatherer}/{function} where the gatherer and function are lowercase letters only that may include underscores (_) and are separated by a forward slash (/) if the function is provided`
type DropEqualActionConfig ¶
type DropEqualActionConfig struct {
// targetLabel is the label name whose value is compared to the concatenated source_labels; targets that match are dropped.
// Must be between 1 and 128 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
TargetLabel string `json:"targetLabel,omitempty"`
}
DropEqualActionConfig configures the DropEqual action. Drops targets for which the concatenated source_labels do match the value of target_label. Requires Prometheus >= v2.41.0.
func (*DropEqualActionConfig) DeepCopy ¶
func (in *DropEqualActionConfig) DeepCopy() *DropEqualActionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DropEqualActionConfig.
func (*DropEqualActionConfig) DeepCopyInto ¶
func (in *DropEqualActionConfig) DeepCopyInto(out *DropEqualActionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DropEqualActionConfig) OpenAPIModelName ¶
func (in DropEqualActionConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (DropEqualActionConfig) SwaggerDoc ¶
func (DropEqualActionConfig) SwaggerDoc() map[string]string
type ECDSACurve
deprecated
type ECDSACurve = PKIECDSACurve
ECDSACurve specifies the elliptic curve used for ECDSA key generation.
Deprecated: use PKIECDSACurve instead.
type ECDSAKeyConfig
deprecated
type ECDSAKeyConfig = PKIECDSAKeyConfig
ECDSAKeyConfig specifies parameters for ECDSA key generation.
Deprecated: use PKIECDSAKeyConfig instead.
type ExemplarsMode ¶
type ExemplarsMode string
ExemplarsMode defines whether exemplars are sent via remote write. +kubebuilder:validation:Enum=Send;DoNotSend
const ( // ExemplarsModeSend means exemplars are sent via remote write. ExemplarsModeSend ExemplarsMode = "Send" // ExemplarsModeDoNotSend means exemplars are not sent via remote write. ExemplarsModeDoNotSend ExemplarsMode = "DoNotSend" )
type GatherConfig ¶
type GatherConfig struct {
// dataPolicy allows user to enable additional global obfuscation of the IP addresses and base domain in the Insights archive data.
// Valid values are "None" and "ObfuscateNetworking".
// When set to None the data is not obfuscated.
// When set to ObfuscateNetworking the IP addresses and the cluster domain name are obfuscated.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
DataPolicy DataPolicy `json:"dataPolicy,omitempty"`
// disabledGatherers is a list of gatherers to be excluded from the gathering. All the gatherers can be disabled by providing "all" value.
// If all the gatherers are disabled, the Insights operator does not gather any data.
// The format for the disabledGatherer should be: {gatherer}/{function} where the function is optional.
// Gatherer consists of a lowercase letters only that may include underscores (_).
// Function consists of a lowercase letters only that may include underscores (_) and is separated from the gatherer by a forward slash (/).
// The particular gatherers IDs can be found at https://github.com/openshift/insights-operator/blob/master/docs/gathered-data.md.
// Run the following command to get the names of last active gatherers:
// "oc get insightsoperators.operator.openshift.io cluster -o json | jq '.status.gatherStatus.gatherers[].name'"
// An example of disabling gatherers looks like this: `disabledGatherers: ["clusterconfig/machine_configs", "workloads/workload_info"]`
// +kubebuilder:validation:MaxItems=100
// +listType=atomic
// +optional
DisabledGatherers []DisabledGatherer `json:"disabledGatherers"`
// storage is an optional field that allows user to define persistent storage for gathering jobs to store the Insights data archive.
// If omitted, the gathering job will use ephemeral storage.
// +optional
StorageSpec *Storage `json:"storage,omitempty"`
}
gatherConfig provides data gathering configuration options.
func (*GatherConfig) DeepCopy ¶
func (in *GatherConfig) DeepCopy() *GatherConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatherConfig.
func (*GatherConfig) DeepCopyInto ¶
func (in *GatherConfig) DeepCopyInto(out *GatherConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (GatherConfig) OpenAPIModelName ¶
func (in GatherConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (GatherConfig) SwaggerDoc ¶
func (GatherConfig) SwaggerDoc() map[string]string
type HashModActionConfig ¶
type HashModActionConfig struct {
// targetLabel is the label name where the hash modulus result is written.
// Must be between 1 and 128 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
TargetLabel string `json:"targetLabel,omitempty"`
// modulus is the divisor applied to the hash of the concatenated source label values (target = hash % modulus).
// Required when using the HashMod action so the intended behavior is explicit.
// Must be between 1 and 1000000.
// +required
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=1000000
Modulus int64 `json:"modulus,omitempty"`
}
HashModActionConfig configures the HashMod action. target_label is set to the modulus of a hash of the concatenated source_labels (target = hash % modulus).
func (*HashModActionConfig) DeepCopy ¶
func (in *HashModActionConfig) DeepCopy() *HashModActionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HashModActionConfig.
func (*HashModActionConfig) DeepCopyInto ¶
func (in *HashModActionConfig) DeepCopyInto(out *HashModActionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HashModActionConfig) OpenAPIModelName ¶
func (in HashModActionConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (HashModActionConfig) SwaggerDoc ¶
func (HashModActionConfig) SwaggerDoc() map[string]string
type InsightsDataGather ¶
type InsightsDataGather struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ObjectMeta `json:"metadata,omitempty"`
// spec holds user settable values for configuration
// +required
Spec InsightsDataGatherSpec `json:"spec"`
// status holds observed values from the cluster. They may not be overridden.
// +optional
Status InsightsDataGatherStatus `json:"status"`
}
+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
InsightsDataGather provides data gather configuration options for the the Insights Operator.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +kubebuilder:object:root=true +kubebuilder:resource:path=insightsdatagathers,scope=Cluster +kubebuilder:subresource:status +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/1245 +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=config-operator,operatorOrdering=01 +openshift:enable:FeatureGate=InsightsConfig +openshift:compatibility-gen:level=4 +openshift:capability=Insights
func (*InsightsDataGather) DeepCopy ¶
func (in *InsightsDataGather) DeepCopy() *InsightsDataGather
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InsightsDataGather.
func (*InsightsDataGather) DeepCopyInto ¶
func (in *InsightsDataGather) DeepCopyInto(out *InsightsDataGather)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InsightsDataGather) DeepCopyObject ¶
func (in *InsightsDataGather) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (InsightsDataGather) OpenAPIModelName ¶
func (in InsightsDataGather) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (InsightsDataGather) SwaggerDoc ¶
func (InsightsDataGather) SwaggerDoc() map[string]string
type InsightsDataGatherList ¶
type InsightsDataGatherList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ListMeta `json:"metadata"`
Items []InsightsDataGather `json:"items"`
}
InsightsDataGatherList is a collection of items
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4
func (*InsightsDataGatherList) DeepCopy ¶
func (in *InsightsDataGatherList) DeepCopy() *InsightsDataGatherList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InsightsDataGatherList.
func (*InsightsDataGatherList) DeepCopyInto ¶
func (in *InsightsDataGatherList) DeepCopyInto(out *InsightsDataGatherList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InsightsDataGatherList) DeepCopyObject ¶
func (in *InsightsDataGatherList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (InsightsDataGatherList) OpenAPIModelName ¶
func (in InsightsDataGatherList) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (InsightsDataGatherList) SwaggerDoc ¶
func (InsightsDataGatherList) SwaggerDoc() map[string]string
type InsightsDataGatherSpec ¶
type InsightsDataGatherSpec struct {
// gatherConfig spec attribute includes all the configuration options related to gathering of the Insights data and its uploading to the ingress.
// +optional
GatherConfig GatherConfig `json:"gatherConfig,omitempty"`
}
func (*InsightsDataGatherSpec) DeepCopy ¶
func (in *InsightsDataGatherSpec) DeepCopy() *InsightsDataGatherSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InsightsDataGatherSpec.
func (*InsightsDataGatherSpec) DeepCopyInto ¶
func (in *InsightsDataGatherSpec) DeepCopyInto(out *InsightsDataGatherSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (InsightsDataGatherSpec) OpenAPIModelName ¶
func (in InsightsDataGatherSpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (InsightsDataGatherSpec) SwaggerDoc ¶
func (InsightsDataGatherSpec) SwaggerDoc() map[string]string
type InsightsDataGatherStatus ¶
type InsightsDataGatherStatus struct{}
func (*InsightsDataGatherStatus) DeepCopy ¶
func (in *InsightsDataGatherStatus) DeepCopy() *InsightsDataGatherStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InsightsDataGatherStatus.
func (*InsightsDataGatherStatus) DeepCopyInto ¶
func (in *InsightsDataGatherStatus) DeepCopyInto(out *InsightsDataGatherStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (InsightsDataGatherStatus) OpenAPIModelName ¶
func (in InsightsDataGatherStatus) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
type KeepEqualActionConfig ¶
type KeepEqualActionConfig struct {
// targetLabel is the label name whose value is compared to the concatenated source_labels; targets that do not match are dropped.
// Must be between 1 and 128 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
TargetLabel string `json:"targetLabel,omitempty"`
}
KeepEqualActionConfig configures the KeepEqual action. Drops targets for which the concatenated source_labels do not match the value of target_label. Requires Prometheus >= v2.41.0.
func (*KeepEqualActionConfig) DeepCopy ¶
func (in *KeepEqualActionConfig) DeepCopy() *KeepEqualActionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeepEqualActionConfig.
func (*KeepEqualActionConfig) DeepCopyInto ¶
func (in *KeepEqualActionConfig) DeepCopyInto(out *KeepEqualActionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (KeepEqualActionConfig) OpenAPIModelName ¶
func (in KeepEqualActionConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (KeepEqualActionConfig) SwaggerDoc ¶
func (KeepEqualActionConfig) SwaggerDoc() map[string]string
type KeyAlgorithm
deprecated
type KeyAlgorithm = PKIKeyAlgorithm
KeyAlgorithm specifies the cryptographic algorithm used for key generation.
Deprecated: use PKIKeyAlgorithm instead.
type KeyConfig
deprecated
type KeyConfig = PKIKeyConfig
KeyConfig specifies cryptographic parameters for key generation.
Deprecated: use PKIKeyConfig instead.
type KubeStateMetricsConfig ¶
type KubeStateMetricsConfig struct {
// nodeSelector defines the nodes on which the Pods are scheduled.
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// When specified, nodeSelector must contain at least 1 entry and must not contain more than 10 entries.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// resources defines the compute resource requests and limits for the kube-state-metrics container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 4m
// limit: null
// - name: memory
// request: 40Mi
// limit: null
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// tolerations defines tolerations for the pods.
// tolerations is optional.
//
// When omitted, no tolerations are applied. This default is subject to change over time.
// When specified, tolerations must contain at least 1 entry and must not contain more than 10 entries.
// Each toleration's operator, when specified, must be either "Exists" or "Equal".
// Each toleration's effect, when specified, must be one of "NoSchedule", "PreferNoSchedule", or "NoExecute".
// An empty or unset effect means match all effects.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=atomic
// +kubebuilder:validation:XValidation:rule="self.all(t, !has(t.operator) || t.operator == 'Exists' || t.operator == 'Equal')",message="operator must be either Exists or Equal"
// +kubebuilder:validation:XValidation:rule="self.all(t, !has(t.effect) || t.effect == 'NoSchedule' || t.effect == 'PreferNoSchedule' || t.effect == 'NoExecute' || t.effect == ”)",message="effect must be NoSchedule, PreferNoSchedule, NoExecute, or empty"
// +optional
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// topologySpreadConstraints defines rules for how kube-state-metrics Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// When omitted, no topology spread constraints are applied. This default is subject to change over time.
// When specified, topologySpreadConstraints must contain at least 1 entry and must not contain more than 10 entries.
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// Each entry's whenUnsatisfiable must be either "DoNotSchedule" or "ScheduleAnyway".
// Each entry's maxSkew must be at least 1.
// When minDomains is specified, it must be at least 1 and whenUnsatisfiable must be "DoNotSchedule".
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +kubebuilder:validation:XValidation:rule="self.all(c, c.whenUnsatisfiable == 'DoNotSchedule' || c.whenUnsatisfiable == 'ScheduleAnyway')",message="whenUnsatisfiable must be either DoNotSchedule or ScheduleAnyway"
// +kubebuilder:validation:XValidation:rule="self.all(c, c.maxSkew >= 1)",message="maxSkew must be at least 1"
// +kubebuilder:validation:XValidation:rule="self.all(c, !has(c.minDomains) || c.minDomains >= 1)",message="minDomains must be at least 1"
// +kubebuilder:validation:XValidation:rule="self.all(c, !has(c.minDomains) || c.whenUnsatisfiable == 'DoNotSchedule')",message="minDomains can only be used when whenUnsatisfiable is DoNotSchedule"
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
// additionalResourceLabels defines additional Kubernetes resource labels to expose as metrics
// in kube-state-metrics.
// Currently, only "Job" and "CronJob" resources are supported due to cardinality concerns.
// Each entry specifies a resource name and a list of Kubernetes label names to expose.
// Use "*" in the labels list to expose all labels for a given resource.
// additionalResourceLabels is optional.
// When omitted, no additional Kubernetes object labels are exposed as metrics
// by kube-state-metrics beyond its built-in metric labels (e.g. namespace, job_name).
// Use this field to opt in to exposing specific Kubernetes labels as metric labels
// for the supported resource types.
// Minimum length for this list is 1.
// Maximum length for this list is 2.
// Each resource name must be unique within this list.
// +optional
// +kubebuilder:validation:MaxItems=2
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=resource
AdditionalResourceLabels []KubeStateMetricsResourceLabels `json:"additionalResourceLabels,omitempty"`
}
KubeStateMetricsConfig provides configuration options for the kube-state-metrics agent that runs in the `openshift-monitoring` namespace. kube-state-metrics generates metrics about the state of Kubernetes objects such as Deployments, Nodes, and Pods. +kubebuilder:validation:MinProperties=1
func (*KubeStateMetricsConfig) DeepCopy ¶
func (in *KubeStateMetricsConfig) DeepCopy() *KubeStateMetricsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeStateMetricsConfig.
func (*KubeStateMetricsConfig) DeepCopyInto ¶
func (in *KubeStateMetricsConfig) DeepCopyInto(out *KubeStateMetricsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (KubeStateMetricsConfig) OpenAPIModelName ¶
func (in KubeStateMetricsConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (KubeStateMetricsConfig) SwaggerDoc ¶
func (KubeStateMetricsConfig) SwaggerDoc() map[string]string
type KubeStateMetricsLabelName ¶
type KubeStateMetricsLabelName string
KubeStateMetricsLabelName is the name of a Kubernetes label to expose as a metric via kube-state-metrics. Use "*" to expose all labels for a resource. Must be either the wildcard "*" or a valid Kubernetes label key. A valid label key has an optional DNS subdomain prefix followed by a "/" and a name segment, or just a name segment without a prefix. The name segment must be 63 characters or fewer, beginning and ending with an alphanumeric character, with dashes, underscores, dots, and alphanumerics in between. Must be at least 1 character and at most 253 characters in length. +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=253 +kubebuilder:validation:XValidation:rule="self == '*' || !format.qualifiedName().validate(self).hasValue()",message="must be a valid Kubernetes label key or the wildcard '*'"
type KubeStateMetricsResourceLabels ¶
type KubeStateMetricsResourceLabels struct {
// resource is the Kubernetes resource name whose labels should be exposed as metrics.
// Currently, only "Job" and "CronJob" are supported due to cardinality concerns.
// Valid values are "Job" and "CronJob".
// This field is required.
// +required
Resource KubeStateMetricsResourceName `json:"resource,omitempty"`
// labels is the list of Kubernetes label names to expose as metrics for this resource.
// Use "*" to expose all labels for the specified resource.
// When "*" is specified, it must be the only entry in the list; mixing "*" with
// specific label names is not allowed.
// This field is required.
// Each label name must be unique within this list.
// Minimum length for this list is 1.
// Maximum length for this list is 50.
// +required
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=50
// +listType=set
// +kubebuilder:validation:XValidation:rule="!self.exists(l, l == '*') || self.size() == 1",message="when '*' is specified, no other labels may be listed"
Labels []KubeStateMetricsLabelName `json:"labels,omitempty"`
}
KubeStateMetricsResourceLabels defines which Kubernetes labels to expose as metrics for a given resource type in kube-state-metrics.
func (*KubeStateMetricsResourceLabels) DeepCopy ¶
func (in *KubeStateMetricsResourceLabels) DeepCopy() *KubeStateMetricsResourceLabels
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeStateMetricsResourceLabels.
func (*KubeStateMetricsResourceLabels) DeepCopyInto ¶
func (in *KubeStateMetricsResourceLabels) DeepCopyInto(out *KubeStateMetricsResourceLabels)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (KubeStateMetricsResourceLabels) OpenAPIModelName ¶
func (in KubeStateMetricsResourceLabels) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (KubeStateMetricsResourceLabels) SwaggerDoc ¶
func (KubeStateMetricsResourceLabels) SwaggerDoc() map[string]string
type KubeStateMetricsResourceName ¶
type KubeStateMetricsResourceName string
KubeStateMetricsResourceName is the name of a Kubernetes resource whose labels can be exposed as metrics by kube-state-metrics. Currently, only "Job" and "CronJob" are supported due to cardinality concerns. Valid values are "Job" and "CronJob". +kubebuilder:validation:Enum=Job;CronJob
const ( // KubeStateMetricsResourceJob indicates the Kubernetes Job resource. KubeStateMetricsResourceJob KubeStateMetricsResourceName = "Job" // KubeStateMetricsResourceCronJob indicates the Kubernetes CronJob resource. KubeStateMetricsResourceCronJob KubeStateMetricsResourceName = "CronJob" )
type Label ¶
type Label struct {
// key is the name of the label.
// Prometheus supports UTF-8 label names, so any valid UTF-8 string is allowed.
// Must be between 1 and 128 characters in length.
// +required
// +kubebuilder:validation:MaxLength=128
// +kubebuilder:validation:MinLength=1
Key string `json:"key,omitempty"`
// value is the value of the label.
// Must be between 1 and 128 characters in length.
// +required
// +kubebuilder:validation:MaxLength=128
// +kubebuilder:validation:MinLength=1
Value string `json:"value,omitempty"`
}
Label represents a key/value pair for external labels.
func (*Label) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Label.
func (*Label) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Label) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (Label) SwaggerDoc ¶
type LabelMapActionConfig ¶
type LabelMapActionConfig struct {
// replacement is the template for new label names; match group references (${1}, ${2}, ...) are substituted from the matched label name.
// Required when using the LabelMap action so the intended behavior is explicit and the platform does not need to apply defaults.
// Use "$1" for the first capture group, "$2" for the second, etc.
// Must be between 1 and 255 characters in length. Empty string is invalid as it would produce invalid label names.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=255
Replacement string `json:"replacement,omitempty"`
}
LabelMapActionConfig configures the LabelMap action. Regex is matched against all source label names (not just source_labels). Matching label values are copied to new label names given by replacement, with match group references (${1}, ${2}, ...) substituted.
func (*LabelMapActionConfig) DeepCopy ¶
func (in *LabelMapActionConfig) DeepCopy() *LabelMapActionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelMapActionConfig.
func (*LabelMapActionConfig) DeepCopyInto ¶
func (in *LabelMapActionConfig) DeepCopyInto(out *LabelMapActionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (LabelMapActionConfig) OpenAPIModelName ¶
func (in LabelMapActionConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (LabelMapActionConfig) SwaggerDoc ¶
func (LabelMapActionConfig) SwaggerDoc() map[string]string
type LogLevel ¶
type LogLevel string
LogLevel defines the verbosity of logs emitted by Alertmanager. Valid values are Error, Warn, Info and Debug. +kubebuilder:validation:Enum=Error;Warn;Info;Debug
const ( // LogLevelError only errors will be logged. LogLevelError LogLevel = "Error" // LogLevelWarn, both warnings and errors will be logged. LogLevelWarn LogLevel = "Warn" // LogLevelInfo, general information, warnings, and errors will all be logged. LogLevelInfo LogLevel = "Info" // LogLevelDebug, detailed debugging information will be logged. LogLevelDebug LogLevel = "Debug" )
type LowercaseActionConfig ¶
type LowercaseActionConfig struct {
// targetLabel is the label name where the lower-cased value is written.
// Must be between 1 and 128 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
TargetLabel string `json:"targetLabel,omitempty"`
}
LowercaseActionConfig configures the Lowercase action. Maps the concatenated source_labels to their lower case and writes to target_label. Requires Prometheus >= v2.36.0.
func (*LowercaseActionConfig) DeepCopy ¶
func (in *LowercaseActionConfig) DeepCopy() *LowercaseActionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LowercaseActionConfig.
func (*LowercaseActionConfig) DeepCopyInto ¶
func (in *LowercaseActionConfig) DeepCopyInto(out *LowercaseActionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (LowercaseActionConfig) OpenAPIModelName ¶
func (in LowercaseActionConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (LowercaseActionConfig) SwaggerDoc ¶
func (LowercaseActionConfig) SwaggerDoc() map[string]string
type MetadataConfig ¶
type MetadataConfig struct {
// sendPolicy specifies whether to send metadata and how it is configured.
// Default: send metadata using platform-chosen defaults (e.g. send interval 30 seconds).
// Custom: send metadata using the settings in the custom field.
// +required
SendPolicy MetadataConfigSendPolicy `json:"sendPolicy,omitempty"`
// custom defines custom metadata send settings. Required when sendPolicy is Custom (must have at least one property), and forbidden when sendPolicy is Default.
// +optional
Custom MetadataConfigCustom `json:"custom,omitempty,omitzero"`
}
MetadataConfig defines whether and how to send series metadata to remote write storage. +kubebuilder:validation:XValidation:rule="self.sendPolicy == 'Default' ? self.custom.sendIntervalSeconds == 0 : true",message="custom is forbidden when sendPolicy is Default"
func (*MetadataConfig) DeepCopy ¶
func (in *MetadataConfig) DeepCopy() *MetadataConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataConfig.
func (*MetadataConfig) DeepCopyInto ¶
func (in *MetadataConfig) DeepCopyInto(out *MetadataConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MetadataConfig) OpenAPIModelName ¶
func (in MetadataConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (MetadataConfig) SwaggerDoc ¶
func (MetadataConfig) SwaggerDoc() map[string]string
type MetadataConfigCustom ¶
type MetadataConfigCustom struct {
// sendIntervalSeconds is the interval in seconds at which metadata is sent.
// When omitted, the platform chooses a reasonable default (e.g. 30 seconds).
// Minimum value is 1 second. Maximum value is 86400 seconds (24 hours).
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=86400
SendIntervalSeconds int32 `json:"sendIntervalSeconds,omitempty"`
}
MetadataConfigCustom defines custom settings for sending series metadata when sendPolicy is Custom. At least one property must be set when sendPolicy is Custom (e.g. sendIntervalSeconds). +kubebuilder:validation:MinProperties=1
func (*MetadataConfigCustom) DeepCopy ¶
func (in *MetadataConfigCustom) DeepCopy() *MetadataConfigCustom
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetadataConfigCustom.
func (*MetadataConfigCustom) DeepCopyInto ¶
func (in *MetadataConfigCustom) DeepCopyInto(out *MetadataConfigCustom)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MetadataConfigCustom) OpenAPIModelName ¶
func (in MetadataConfigCustom) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (MetadataConfigCustom) SwaggerDoc ¶
func (MetadataConfigCustom) SwaggerDoc() map[string]string
type MetadataConfigSendPolicy ¶
type MetadataConfigSendPolicy string
MetadataConfigSendPolicy defines whether to send metadata with platform defaults or with custom settings. +kubebuilder:validation:Enum=Default;Custom
const ( // MetadataConfigSendPolicyDefault indicates metadata is sent using platform-chosen defaults (e.g. send interval 30 seconds). MetadataConfigSendPolicyDefault MetadataConfigSendPolicy = "Default" // MetadataConfigSendPolicyCustom indicates metadata is sent using the settings in the custom field. MetadataConfigSendPolicyCustom MetadataConfigSendPolicy = "Custom" )
type MetricsServerConfig ¶
type MetricsServerConfig struct {
// audit defines the audit configuration used by the Metrics Server instance.
// audit is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
//The current default sets audit.profile to Metadata
// +optional
Audit Audit `json:"audit,omitempty,omitzero"`
// nodeSelector defines the nodes on which the Pods are scheduled
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// tolerations defines tolerations for the pods.
// tolerations is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// Defaults are empty/unset.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=atomic
// +optional
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// verbosity defines the verbosity of log messages for Metrics Server.
// Valid values are Errors, Info, Trace, TraceAll and omitted.
// When set to Errors, only critical messages and errors are logged.
// When set to Info, only basic information messages are logged.
// When set to Trace, information useful for general debugging is logged.
// When set to TraceAll, detailed information about metric scraping is logged.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
// The current default value is `Errors`
// +optional
Verbosity VerbosityLevel `json:"verbosity,omitempty,omitzero"`
// resources defines the compute resource requests and limits for the Metrics Server container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 4m
// limit: null
// - name: memory
// request: 40Mi
// limit: null
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// topologySpreadConstraints defines rules for how Metrics Server Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Default is empty list.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}
MetricsServerConfig provides configuration options for the Metrics Server instance that runs in the `openshift-monitoring` namespace. Use this configuration to control how the Metrics Server instance is deployed, how it logs, and how its pods are scheduled. +kubebuilder:validation:MinProperties=1
func (*MetricsServerConfig) DeepCopy ¶
func (in *MetricsServerConfig) DeepCopy() *MetricsServerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsServerConfig.
func (*MetricsServerConfig) DeepCopyInto ¶
func (in *MetricsServerConfig) DeepCopyInto(out *MetricsServerConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MetricsServerConfig) OpenAPIModelName ¶
func (in MetricsServerConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (MetricsServerConfig) SwaggerDoc ¶
func (MetricsServerConfig) SwaggerDoc() map[string]string
type MonitoringPluginConfig ¶
type MonitoringPluginConfig struct {
// nodeSelector defines the nodes on which the Pods are scheduled.
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// When specified, nodeSelector must contain at least 1 entry and must not contain more than 10 entries.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// resources defines the compute resource requests and limits for the monitoring-plugin container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 10m
// - name: memory
// request: 50Mi
//
// When specified, resources must contain at least 1 entry and must not exceed 5 entries.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// tolerations defines the tolerations required for the monitoring-plugin Pods.
// This field is optional.
//
// When omitted, the monitoring-plugin Pods will not have any tolerations, which
// means they will only be scheduled on nodes with no taints.
// When specified, tolerations must contain at least 1 entry and must not contain more than 10 entries.
// +optional
// +listType=atomic
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=10
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// topologySpreadConstraints defines rules for how monitoring-plugin Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Default is empty list.
// When specified, this list must contain at least 1 entry and must not exceed 10 entries.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}
MonitoringPluginConfig provides configuration options for the monitoring plugin that runs as a dynamic plugin of the OpenShift web console. The monitoring plugin provides the monitoring UI in the OpenShift web console for visualizing metrics, alerts, and dashboards. At least one field must be specified; an empty monitoringPluginConfig object is not allowed. +kubebuilder:validation:MinProperties=1
func (*MonitoringPluginConfig) DeepCopy ¶
func (in *MonitoringPluginConfig) DeepCopy() *MonitoringPluginConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringPluginConfig.
func (*MonitoringPluginConfig) DeepCopyInto ¶
func (in *MonitoringPluginConfig) DeepCopyInto(out *MonitoringPluginConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MonitoringPluginConfig) OpenAPIModelName ¶
func (in MonitoringPluginConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (MonitoringPluginConfig) SwaggerDoc ¶
func (MonitoringPluginConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorBuddyInfoConfig ¶
type NodeExporterCollectorBuddyInfoConfig struct {
// collectionPolicy declares whether the buddyinfo collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the buddyinfo collector is active and memory fragmentation statistics are collected.
// When set to "DoNotCollect", the buddyinfo collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorBuddyInfoConfig provides configuration for the buddyinfo collector of the node-exporter agent. The buddyinfo collector collects statistics about memory fragmentation from the node_buddyinfo_blocks metric using data from /proc/buddyinfo. It is disabled by default.
func (*NodeExporterCollectorBuddyInfoConfig) DeepCopy ¶
func (in *NodeExporterCollectorBuddyInfoConfig) DeepCopy() *NodeExporterCollectorBuddyInfoConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorBuddyInfoConfig.
func (*NodeExporterCollectorBuddyInfoConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorBuddyInfoConfig) DeepCopyInto(out *NodeExporterCollectorBuddyInfoConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorBuddyInfoConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorBuddyInfoConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorBuddyInfoConfig) SwaggerDoc ¶
func (NodeExporterCollectorBuddyInfoConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorCollectionPolicy ¶
type NodeExporterCollectorCollectionPolicy string
NodeExporterCollectorCollectionPolicy declares whether a node-exporter collector should collect metrics. Valid values are "Collect" and "DoNotCollect". +kubebuilder:validation:Enum=Collect;DoNotCollect +enum
const ( // NodeExporterCollectorCollectionPolicyCollect means the collector is active and will produce metrics. NodeExporterCollectorCollectionPolicyCollect NodeExporterCollectorCollectionPolicy = "Collect" // NodeExporterCollectorCollectionPolicyDoNotCollect means the collector is inactive and will not produce metrics. NodeExporterCollectorCollectionPolicyDoNotCollect NodeExporterCollectorCollectionPolicy = "DoNotCollect" )
type NodeExporterCollectorConfig ¶
type NodeExporterCollectorConfig struct {
// cpuFreq configures the cpufreq collector, which collects CPU frequency statistics.
// cpuFreq is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Consider enabling when you need to observe CPU frequency scaling; expect higher CPU usage on
// many-core nodes when collectionPolicy is Collect.
// +optional
CpuFreq NodeExporterCollectorCpufreqConfig `json:"cpuFreq,omitempty,omitzero"`
// tcpStat configures the tcpstat collector, which collects TCP connection statistics.
// tcpStat is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Enable when debugging TCP connection behavior or capacity at the node level.
// +optional
TcpStat NodeExporterCollectorTcpStatConfig `json:"tcpStat,omitempty,omitzero"`
// ethtool configures the ethtool collector, which collects ethernet device statistics.
// ethtool is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Enable when you need NIC driver-level ethtool metrics beyond generic netdev counters.
// +optional
Ethtool NodeExporterCollectorEthtoolConfig `json:"ethtool,omitempty,omitzero"`
// netDev configures the netdev collector, which collects network device statistics.
// netDev is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is enabled.
// Turn off if you must reduce per-interface metric cardinality on hosts with many virtual interfaces.
// +optional
NetDev NodeExporterCollectorNetDevConfig `json:"netDev,omitempty,omitzero"`
// netClass configures the netclass collector, which collects information about network devices.
// netClass is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is enabled with netlink mode active.
// Use statsGatherer when sysfs vs netlink implementation matters or when matching node_exporter tuning.
// +optional
NetClass NodeExporterCollectorNetClassConfig `json:"netClass,omitempty,omitzero"`
// buddyInfo configures the buddyinfo collector, which collects statistics about memory
// fragmentation from the node_buddyinfo_blocks metric. This metric collects data from /proc/buddyinfo.
// buddyInfo is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Enable when investigating kernel memory fragmentation; typically for advanced troubleshooting only.
// +optional
BuddyInfo NodeExporterCollectorBuddyInfoConfig `json:"buddyInfo,omitempty,omitzero"`
// mountStats configures the mountstats collector, which collects statistics about NFS volume
// I/O activities.
// mountStats is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Enabling this collector may produce metrics with high cardinality. If you enable this
// collector, closely monitor the prometheus-k8s deployment for excessive memory usage.
// Enable when you care about per-mount NFS client statistics.
// +optional
MountStats NodeExporterCollectorMountStatsConfig `json:"mountStats,omitempty,omitzero"`
// ksmd configures the ksmd collector, which collects statistics from the kernel same-page
// merger daemon.
// ksmd is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Enable on nodes where KSM is in use and you want visibility into merging activity.
// +optional
Ksmd NodeExporterCollectorKSMDConfig `json:"ksmd,omitempty,omitzero"`
// processes configures the processes collector, which collects statistics from processes and
// threads running in the system.
// processes is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Enable for process/thread-level insight; can be expensive on busy nodes.
// +optional
Processes NodeExporterCollectorProcessesConfig `json:"processes,omitempty,omitzero"`
// systemd configures the systemd collector, which collects statistics on the systemd daemon
// and its managed services.
// systemd is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Enabling this collector with a long list of selected units may produce metrics with high
// cardinality. If you enable this collector, closely monitor the prometheus-k8s deployment
// for excessive memory usage.
// Enable when you need metrics for specific units; scope units carefully.
// +optional
Systemd NodeExporterCollectorSystemdConfig `json:"systemd,omitempty,omitzero"`
// softirqs configures the softirqs collector, which exposes detailed softirq statistics
// from /proc/softirqs.
// softirqs is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// Enable when you need visibility into kernel softirq processing across CPUs.
// +optional
Softirqs NodeExporterCollectorSoftirqsConfig `json:"softirqs,omitempty,omitzero"`
// deviceMapperMultipath configures the dmmultipath collector, which collects statistics
// about DM-Multipath devices.
// deviceMapperMultipath is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is enabled.
// +optional
DeviceMapperMultipath NodeExporterCollectorDeviceMapperMultipathConfig `json:"deviceMapperMultipath,omitzero"`
// zoneinfo configures the zoneinfo collector, which exposes per-zone memory page counts,
// watermarks, and protection thresholds from /proc/zoneinfo.
// zoneinfo is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is to not collect zoneinfo metrics.
// Enable when you need visibility into kernel memory zone allocation and pressure.
// +optional
Zoneinfo NodeExporterCollectorZoneinfoConfig `json:"zoneinfo,omitzero"`
// nvmExpressSubsystem configures the nvmesubsystem collector, which
// collects statistics about NVM Express (NVMe) subsystem devices.
// nvmExpressSubsystem is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is enabled.
// When enabled, if /sys/class/nvme-subsystem/ is missing or inaccessible, node-exporter
// reports node_scrape_collector_success{collector="nvmesubsystem"} as 0.
// This is intentional and helps detect missing drivers or configuration problems.
// If no nodes in the cluster require NVMe subsystem monitoring, set
// nvmExpressSubsystem.collectionPolicy to DoNotCollect to disable this collector cluster-wide.
// This setting does not support per-node configuration.
// +optional
NVMExpressSubsystem NodeExporterCollectorNVMExpressSubsystemConfig `json:"nvmExpressSubsystem,omitzero"`
// interrupts configures the interrupts collector, which exposes interrupt counts
// from /proc/interrupts.
// interrupts is optional.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is disabled.
// The interrupts collector can produce a large number of metrics depending on the hardware
// and interrupt sources present. When enabled, the collect field with at least one include
// pattern is required to explicitly select which interrupt lines are collected.
// +optional
Interrupts NodeExporterCollectorInterruptsConfig `json:"interrupts,omitempty,omitzero"`
}
NodeExporterCollectorConfig defines settings for individual collectors of the node-exporter agent. Each collector can be individually set to collect or not collect metrics. At least one collector must be specified. +kubebuilder:validation:MinProperties=1
func (*NodeExporterCollectorConfig) DeepCopy ¶
func (in *NodeExporterCollectorConfig) DeepCopy() *NodeExporterCollectorConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorConfig.
func (*NodeExporterCollectorConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorConfig) DeepCopyInto(out *NodeExporterCollectorConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorConfig) SwaggerDoc ¶
func (NodeExporterCollectorConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorCpufreqConfig ¶
type NodeExporterCollectorCpufreqConfig struct {
// collectionPolicy declares whether the cpufreq collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the cpufreq collector is active and CPU frequency statistics are collected.
// When set to "DoNotCollect", the cpufreq collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorCpufreqConfig provides configuration for the cpufreq collector of the node-exporter agent. The cpufreq collector collects CPU frequency statistics. It is disabled by default.
func (*NodeExporterCollectorCpufreqConfig) DeepCopy ¶
func (in *NodeExporterCollectorCpufreqConfig) DeepCopy() *NodeExporterCollectorCpufreqConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorCpufreqConfig.
func (*NodeExporterCollectorCpufreqConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorCpufreqConfig) DeepCopyInto(out *NodeExporterCollectorCpufreqConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorCpufreqConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorCpufreqConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorCpufreqConfig) SwaggerDoc ¶
func (NodeExporterCollectorCpufreqConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorDeviceMapperMultipathConfig ¶
type NodeExporterCollectorDeviceMapperMultipathConfig struct {
// collectionPolicy declares whether the dmmultipath collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the dmmultipath collector is active and DM-Multipath device statistics are collected.
// When set to "DoNotCollect", the dmmultipath collector is inactive and the corresponding metrics become unavailable.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorDeviceMapperMultipathConfig provides configuration for the dmmultipath collector of the node-exporter agent. The dmmultipath collector collects statistics about DM-Multipath devices. It is enabled by default.
func (*NodeExporterCollectorDeviceMapperMultipathConfig) DeepCopy ¶
func (in *NodeExporterCollectorDeviceMapperMultipathConfig) DeepCopy() *NodeExporterCollectorDeviceMapperMultipathConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorDeviceMapperMultipathConfig.
func (*NodeExporterCollectorDeviceMapperMultipathConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorDeviceMapperMultipathConfig) DeepCopyInto(out *NodeExporterCollectorDeviceMapperMultipathConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorDeviceMapperMultipathConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorDeviceMapperMultipathConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorDeviceMapperMultipathConfig) SwaggerDoc ¶
func (NodeExporterCollectorDeviceMapperMultipathConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorEthtoolConfig ¶
type NodeExporterCollectorEthtoolConfig struct {
// collectionPolicy declares whether the ethtool collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the ethtool collector is active and ethernet device statistics are collected.
// When set to "DoNotCollect", the ethtool collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorEthtoolConfig provides configuration for the ethtool collector of the node-exporter agent. The ethtool collector collects ethernet device statistics. It is disabled by default.
func (*NodeExporterCollectorEthtoolConfig) DeepCopy ¶
func (in *NodeExporterCollectorEthtoolConfig) DeepCopy() *NodeExporterCollectorEthtoolConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorEthtoolConfig.
func (*NodeExporterCollectorEthtoolConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorEthtoolConfig) DeepCopyInto(out *NodeExporterCollectorEthtoolConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorEthtoolConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorEthtoolConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorEthtoolConfig) SwaggerDoc ¶
func (NodeExporterCollectorEthtoolConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorInterruptsCollectConfig ¶
type NodeExporterCollectorInterruptsCollectConfig struct {
// include is a list of regular expression patterns that select which interrupt lines to collect.
// This field is required.
// Each line in /proc/interrupts is matched against the same string node-exporter uses:
// the IRQ name, info, and devices fields joined with ";", for example "LOC;77;IO-APIC 2-edge ...".
// Patterns are combined with OR into a single expression anchored on both ends,
// so each pattern must match the entire string (use ".*" where needed).
// Each entry must be at least 1 character, at most 1024 characters, and only contain printable ASCII characters.
// Maximum length for this list is 50.
// Minimum length for this list is 1.
// Entries in this list must be unique.
// +kubebuilder:validation:MaxItems=50
// +kubebuilder:validation:MinItems=1
// +listType=set
// +required
Include []NodeExporterInterruptsIncludePattern `json:"include,omitempty"`
}
NodeExporterCollectorInterruptsCollectConfig holds configuration options for the interrupts collector when it is actively collecting metrics. At least one field must be specified. +kubebuilder:validation:MinProperties=1
func (*NodeExporterCollectorInterruptsCollectConfig) DeepCopy ¶
func (in *NodeExporterCollectorInterruptsCollectConfig) DeepCopy() *NodeExporterCollectorInterruptsCollectConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorInterruptsCollectConfig.
func (*NodeExporterCollectorInterruptsCollectConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorInterruptsCollectConfig) DeepCopyInto(out *NodeExporterCollectorInterruptsCollectConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorInterruptsCollectConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorInterruptsCollectConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorInterruptsCollectConfig) SwaggerDoc ¶
func (NodeExporterCollectorInterruptsCollectConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorInterruptsConfig ¶
type NodeExporterCollectorInterruptsConfig struct {
// collectionPolicy declares whether the interrupts collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the interrupts collector is active and the collect field must be set
// with at least one include pattern to select which interrupt lines are collected.
// When set to "DoNotCollect", the interrupts collector is inactive and the collect field must not be set.
// +unionDiscriminator
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
// collect contains configuration options that apply only when the interrupts collector is actively collecting metrics
// (i.e. when collectionPolicy is Collect).
// collect is required when collectionPolicy is Collect and must contain at least one include pattern
// to explicitly select which interrupt lines are collected.
// collect must not be set when collectionPolicy is DoNotCollect.
// When set, at least one field must be specified within collect.
// +unionMember
// +optional
Collect NodeExporterCollectorInterruptsCollectConfig `json:"collect,omitzero,omitempty"`
}
NodeExporterCollectorInterruptsConfig provides configuration for the interrupts collector of the node-exporter agent. The interrupts collector exposes interrupt counts from /proc/interrupts. It is disabled by default. The interrupts collector can produce a large number of metrics depending on the hardware and interrupt sources present. When enabled, the collect field with at least one include pattern is required to explicitly select which interrupt lines are collected. When collectionPolicy is Collect, the collect field must be set with at least one include pattern. When collectionPolicy is DoNotCollect, the collect field must not be set. +kubebuilder:validation:XValidation:rule="has(self.collectionPolicy) && self.collectionPolicy == 'Collect' ? has(self.collect) : !has(self.collect)",message="collect is required when collectionPolicy is Collect, and forbidden otherwise" +union
func (*NodeExporterCollectorInterruptsConfig) DeepCopy ¶
func (in *NodeExporterCollectorInterruptsConfig) DeepCopy() *NodeExporterCollectorInterruptsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorInterruptsConfig.
func (*NodeExporterCollectorInterruptsConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorInterruptsConfig) DeepCopyInto(out *NodeExporterCollectorInterruptsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorInterruptsConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorInterruptsConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorInterruptsConfig) SwaggerDoc ¶
func (NodeExporterCollectorInterruptsConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorKSMDConfig ¶
type NodeExporterCollectorKSMDConfig struct {
// collectionPolicy declares whether the ksmd collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the ksmd collector is active and kernel same-page merger statistics are collected.
// When set to "DoNotCollect", the ksmd collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorKSMDConfig provides configuration for the ksmd collector of the node-exporter agent. The ksmd collector collects statistics from the kernel same-page merger daemon. It is disabled by default.
func (*NodeExporterCollectorKSMDConfig) DeepCopy ¶
func (in *NodeExporterCollectorKSMDConfig) DeepCopy() *NodeExporterCollectorKSMDConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorKSMDConfig.
func (*NodeExporterCollectorKSMDConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorKSMDConfig) DeepCopyInto(out *NodeExporterCollectorKSMDConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorKSMDConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorKSMDConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorKSMDConfig) SwaggerDoc ¶
func (NodeExporterCollectorKSMDConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorMountStatsConfig ¶
type NodeExporterCollectorMountStatsConfig struct {
// collectionPolicy declares whether the mountstats collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the mountstats collector is active and NFS volume I/O statistics are collected.
// When set to "DoNotCollect", the mountstats collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorMountStatsConfig provides configuration for the mountstats collector of the node-exporter agent. The mountstats collector collects statistics about NFS volume I/O activities. It is disabled by default. Enabling this collector may produce metrics with high cardinality. If you enable this collector, closely monitor the prometheus-k8s deployment for excessive memory usage.
func (*NodeExporterCollectorMountStatsConfig) DeepCopy ¶
func (in *NodeExporterCollectorMountStatsConfig) DeepCopy() *NodeExporterCollectorMountStatsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorMountStatsConfig.
func (*NodeExporterCollectorMountStatsConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorMountStatsConfig) DeepCopyInto(out *NodeExporterCollectorMountStatsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorMountStatsConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorMountStatsConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorMountStatsConfig) SwaggerDoc ¶
func (NodeExporterCollectorMountStatsConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorNVMExpressSubsystemConfig ¶
type NodeExporterCollectorNVMExpressSubsystemConfig struct {
// collectionPolicy declares whether the nvmesubsystem collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the nvmesubsystem collector is active and NVMe subsystem statistics are collected.
// When set to "DoNotCollect", the nvmesubsystem collector is inactive and the corresponding metrics become unavailable.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorNVMExpressSubsystemConfig provides configuration for the nvmesubsystem collector of the node-exporter agent. The nvmesubsystem collector collects statistics about NVM Express (NVMe) subsystem devices. It is enabled by default.
func (*NodeExporterCollectorNVMExpressSubsystemConfig) DeepCopy ¶
func (in *NodeExporterCollectorNVMExpressSubsystemConfig) DeepCopy() *NodeExporterCollectorNVMExpressSubsystemConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorNVMExpressSubsystemConfig.
func (*NodeExporterCollectorNVMExpressSubsystemConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorNVMExpressSubsystemConfig) DeepCopyInto(out *NodeExporterCollectorNVMExpressSubsystemConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorNVMExpressSubsystemConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorNVMExpressSubsystemConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorNVMExpressSubsystemConfig) SwaggerDoc ¶
func (NodeExporterCollectorNVMExpressSubsystemConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorNetClassCollectConfig ¶
type NodeExporterCollectorNetClassCollectConfig struct {
// statsGatherer selects which implementation the netclass collector uses to gather statistics (sysfs or netlink).
// statsGatherer is optional.
// Valid values are "Sysfs" and "Netlink".
// When set to "Netlink", the netlink implementation is used; when set to "Sysfs", the sysfs implementation is used.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is Netlink.
// +optional
StatsGatherer NodeExporterNetclassStatsGatherer `json:"statsGatherer,omitempty"`
}
NodeExporterCollectorNetClassCollectConfig holds configuration options for the netclass collector when it is actively collecting metrics. At least one field must be specified. +kubebuilder:validation:MinProperties=1
func (*NodeExporterCollectorNetClassCollectConfig) DeepCopy ¶
func (in *NodeExporterCollectorNetClassCollectConfig) DeepCopy() *NodeExporterCollectorNetClassCollectConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorNetClassCollectConfig.
func (*NodeExporterCollectorNetClassCollectConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorNetClassCollectConfig) DeepCopyInto(out *NodeExporterCollectorNetClassCollectConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorNetClassCollectConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorNetClassCollectConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorNetClassCollectConfig) SwaggerDoc ¶
func (NodeExporterCollectorNetClassCollectConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorNetClassConfig ¶
type NodeExporterCollectorNetClassConfig struct {
// collectionPolicy declares whether the netclass collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the netclass collector is active and network class information is collected.
// When set to "DoNotCollect", the netclass collector is inactive and the corresponding metrics become unavailable.
// When set to "DoNotCollect", the collect field must not be set.
// +unionDiscriminator
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
// collect contains configuration options that apply only when the netclass collector is actively collecting metrics
// (i.e. when collectionPolicy is Collect).
// collect is optional and may be omitted even when collectionPolicy is Collect.
// collect may only be set when collectionPolicy is Collect.
// When set, at least one field must be specified within collect.
// +unionMember
// +optional
Collect NodeExporterCollectorNetClassCollectConfig `json:"collect,omitzero,omitempty"`
}
NodeExporterCollectorNetClassConfig provides configuration for the netclass collector of the node-exporter agent. The netclass collector collects information about network devices such as network speed, MTU, and carrier status. It is enabled by default. When collectionPolicy is DoNotCollect, the collect field must not be set. +kubebuilder:validation:XValidation:rule="has(self.collectionPolicy) && self.collectionPolicy == 'Collect' ? true : !has(self.collect)",message="collect may be set when collectionPolicy is Collect, and forbidden otherwise" +union
func (*NodeExporterCollectorNetClassConfig) DeepCopy ¶
func (in *NodeExporterCollectorNetClassConfig) DeepCopy() *NodeExporterCollectorNetClassConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorNetClassConfig.
func (*NodeExporterCollectorNetClassConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorNetClassConfig) DeepCopyInto(out *NodeExporterCollectorNetClassConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorNetClassConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorNetClassConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorNetClassConfig) SwaggerDoc ¶
func (NodeExporterCollectorNetClassConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorNetDevConfig ¶
type NodeExporterCollectorNetDevConfig struct {
// collectionPolicy declares whether the netdev collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the netdev collector is active and network device statistics are collected.
// When set to "DoNotCollect", the netdev collector is inactive and the corresponding metrics become unavailable.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorNetDevConfig provides configuration for the netdev collector of the node-exporter agent. The netdev collector collects network device statistics such as bytes, packets, errors, and drops per device. It is enabled by default.
func (*NodeExporterCollectorNetDevConfig) DeepCopy ¶
func (in *NodeExporterCollectorNetDevConfig) DeepCopy() *NodeExporterCollectorNetDevConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorNetDevConfig.
func (*NodeExporterCollectorNetDevConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorNetDevConfig) DeepCopyInto(out *NodeExporterCollectorNetDevConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorNetDevConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorNetDevConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorNetDevConfig) SwaggerDoc ¶
func (NodeExporterCollectorNetDevConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorProcessesConfig ¶
type NodeExporterCollectorProcessesConfig struct {
// collectionPolicy declares whether the processes collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the processes collector is active and process/thread statistics are collected.
// When set to "DoNotCollect", the processes collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorProcessesConfig provides configuration for the processes collector of the node-exporter agent. The processes collector collects statistics from processes and threads running in the system. It is disabled by default.
func (*NodeExporterCollectorProcessesConfig) DeepCopy ¶
func (in *NodeExporterCollectorProcessesConfig) DeepCopy() *NodeExporterCollectorProcessesConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorProcessesConfig.
func (*NodeExporterCollectorProcessesConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorProcessesConfig) DeepCopyInto(out *NodeExporterCollectorProcessesConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorProcessesConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorProcessesConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorProcessesConfig) SwaggerDoc ¶
func (NodeExporterCollectorProcessesConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorSoftirqsConfig ¶
type NodeExporterCollectorSoftirqsConfig struct {
// collectionPolicy declares whether the softirqs collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the softirqs collector is active and softirq statistics are collected.
// When set to "DoNotCollect", the softirqs collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorSoftirqsConfig provides configuration for the softirqs collector of the node-exporter agent. The softirqs collector exposes detailed softirq statistics from /proc/softirqs. It is disabled by default.
func (*NodeExporterCollectorSoftirqsConfig) DeepCopy ¶
func (in *NodeExporterCollectorSoftirqsConfig) DeepCopy() *NodeExporterCollectorSoftirqsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorSoftirqsConfig.
func (*NodeExporterCollectorSoftirqsConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorSoftirqsConfig) DeepCopyInto(out *NodeExporterCollectorSoftirqsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorSoftirqsConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorSoftirqsConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorSoftirqsConfig) SwaggerDoc ¶
func (NodeExporterCollectorSoftirqsConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorSystemdCollectConfig ¶
type NodeExporterCollectorSystemdCollectConfig struct {
// units is a list of regular expression patterns that match systemd units to be included
// by the systemd collector.
// units is optional.
// By default, the list is empty, so the collector exposes no metrics for systemd units.
// Each entry is a regular expression pattern and must be at least 1 character and at most 1024 characters.
// Maximum length for this list is 50.
// Minimum length for this list is 1.
// Entries in this list must be unique.
// +kubebuilder:validation:MaxItems=50
// +kubebuilder:validation:MinItems=1
// +listType=set
// +optional
Units []NodeExporterSystemdUnit `json:"units,omitempty"`
}
NodeExporterCollectorSystemdCollectConfig holds configuration options for the systemd collector when it is actively collecting metrics. At least one field must be specified. +kubebuilder:validation:MinProperties=1
func (*NodeExporterCollectorSystemdCollectConfig) DeepCopy ¶
func (in *NodeExporterCollectorSystemdCollectConfig) DeepCopy() *NodeExporterCollectorSystemdCollectConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorSystemdCollectConfig.
func (*NodeExporterCollectorSystemdCollectConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorSystemdCollectConfig) DeepCopyInto(out *NodeExporterCollectorSystemdCollectConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorSystemdCollectConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorSystemdCollectConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorSystemdCollectConfig) SwaggerDoc ¶
func (NodeExporterCollectorSystemdCollectConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorSystemdConfig ¶
type NodeExporterCollectorSystemdConfig struct {
// collectionPolicy declares whether the systemd collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the systemd collector is active and systemd unit statistics are collected.
// When set to "DoNotCollect", the systemd collector is inactive and the collect field must not be set.
// +unionDiscriminator
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
// collect contains configuration options that apply only when the systemd collector is actively collecting metrics
// (i.e. when collectionPolicy is Collect).
// collect is optional and may be omitted even when collectionPolicy is Collect.
// collect may only be set when collectionPolicy is Collect.
// When set, at least one field must be specified within collect.
// +unionMember
// +optional
Collect NodeExporterCollectorSystemdCollectConfig `json:"collect,omitzero,omitempty"`
}
NodeExporterCollectorSystemdConfig provides configuration for the systemd collector of the node-exporter agent. The systemd collector collects statistics on the systemd daemon and its managed services. It is disabled by default. Enabling this collector with a long list of selected units may produce metrics with high cardinality. If you enable this collector, closely monitor the prometheus-k8s deployment for excessive memory usage. When collectionPolicy is DoNotCollect, the collect field must not be set. +kubebuilder:validation:XValidation:rule="has(self.collectionPolicy) && self.collectionPolicy == 'Collect' ? true : !has(self.collect)",message="collect may be set when collectionPolicy is Collect, and forbidden otherwise" +union
func (*NodeExporterCollectorSystemdConfig) DeepCopy ¶
func (in *NodeExporterCollectorSystemdConfig) DeepCopy() *NodeExporterCollectorSystemdConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorSystemdConfig.
func (*NodeExporterCollectorSystemdConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorSystemdConfig) DeepCopyInto(out *NodeExporterCollectorSystemdConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorSystemdConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorSystemdConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorSystemdConfig) SwaggerDoc ¶
func (NodeExporterCollectorSystemdConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorTcpStatConfig ¶
type NodeExporterCollectorTcpStatConfig struct {
// collectionPolicy declares whether the tcpstat collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the tcpstat collector is active and TCP connection statistics are collected.
// When set to "DoNotCollect", the tcpstat collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorTcpStatConfig provides configuration for the tcpstat collector of the node-exporter agent. The tcpstat collector collects TCP connection statistics. It is disabled by default.
func (*NodeExporterCollectorTcpStatConfig) DeepCopy ¶
func (in *NodeExporterCollectorTcpStatConfig) DeepCopy() *NodeExporterCollectorTcpStatConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorTcpStatConfig.
func (*NodeExporterCollectorTcpStatConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorTcpStatConfig) DeepCopyInto(out *NodeExporterCollectorTcpStatConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorTcpStatConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorTcpStatConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorTcpStatConfig) SwaggerDoc ¶
func (NodeExporterCollectorTcpStatConfig) SwaggerDoc() map[string]string
type NodeExporterCollectorZoneinfoConfig ¶
type NodeExporterCollectorZoneinfoConfig struct {
// collectionPolicy declares whether the zoneinfo collector collects metrics.
// This field is required.
// Valid values are "Collect" and "DoNotCollect".
// When set to "Collect", the zoneinfo collector is active and zone memory statistics are collected.
// When set to "DoNotCollect", the zoneinfo collector is inactive.
// +required
CollectionPolicy NodeExporterCollectorCollectionPolicy `json:"collectionPolicy,omitempty"`
}
NodeExporterCollectorZoneinfoConfig provides configuration for the zoneinfo collector of the node-exporter agent. The zoneinfo collector exposes per-zone memory page counts, watermarks, and protection thresholds from /proc/zoneinfo. By default, the zoneinfo collector does not collect metrics.
func (*NodeExporterCollectorZoneinfoConfig) DeepCopy ¶
func (in *NodeExporterCollectorZoneinfoConfig) DeepCopy() *NodeExporterCollectorZoneinfoConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterCollectorZoneinfoConfig.
func (*NodeExporterCollectorZoneinfoConfig) DeepCopyInto ¶
func (in *NodeExporterCollectorZoneinfoConfig) DeepCopyInto(out *NodeExporterCollectorZoneinfoConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterCollectorZoneinfoConfig) OpenAPIModelName ¶
func (in NodeExporterCollectorZoneinfoConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterCollectorZoneinfoConfig) SwaggerDoc ¶
func (NodeExporterCollectorZoneinfoConfig) SwaggerDoc() map[string]string
type NodeExporterConfig ¶
type NodeExporterConfig struct {
// resources defines the compute resource requests and limits for the node-exporter container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 8m
// limit: null
// - name: memory
// request: 32Mi
// limit: null
// ---
// maxItems is set to 5 to stay within the Kubernetes CRD CEL validation cost budget.
// See the MaxItems comment near the ContainerResource type definition for details.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// collectors configures which node-exporter metric collectors are enabled.
// collectors is optional.
// Each collector can be individually enabled or disabled. Some collectors may have
// additional configuration options.
//
// When omitted, this means no opinion and the platform is left to choose a reasonable
// default, which is subject to change over time.
// +optional
Collectors NodeExporterCollectorConfig `json:"collectors,omitempty,omitzero"`
// maxProcs sets the target number of CPUs on which the node-exporter process will run.
// maxProcs is optional.
// Use this setting to override the default value, which is set either to 4 or to the number
// of CPUs on the host, whichever is smaller.
// The default value is computed at runtime and set via the GOMAXPROCS environment variable before
// node-exporter is launched.
// If a kernel deadlock occurs or if performance degrades when reading from sysfs concurrently,
// you can change this value to 1, which limits node-exporter to running on one CPU.
// For nodes with a high CPU count, setting the limit to a low number saves resources by preventing
// Go routines from being scheduled to run on all CPUs. However, I/O performance degrades if the
// maxProcs value is set too low and there are many metrics to collect.
// The minimum value is 1 and the maximum value is 1024.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is min(4, number of host CPUs).
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=1024
MaxProcs int32 `json:"maxProcs,omitempty"`
// ignoredNetworkDevices is a list of regular expression patterns that match network devices
// to be excluded from the relevant collector configuration such as netdev, netclass, and ethtool.
// ignoredNetworkDevices is optional.
//
// When omitted, the Cluster Monitoring Operator uses a predefined list of devices to be excluded
// to minimize the impact on memory usage.
// When set as an empty list, no devices are excluded.
// If you modify this setting, monitor the prometheus-k8s deployment closely for excessive memory usage.
// Maximum length for this list is 50.
// Each entry must be at least 1 character and at most 1024 characters long.
// +kubebuilder:validation:MaxItems=50
// +kubebuilder:validation:MinItems=0
// +listType=set
// +optional
IgnoredNetworkDevices *[]NodeExporterIgnoredNetworkDevice `json:"ignoredNetworkDevices,omitempty"`
}
NodeExporterConfig provides configuration options for the node-exporter agent that runs as a DaemonSet in the `openshift-monitoring` namespace. The node-exporter agent collects hardware and OS-level metrics from every node in the cluster, including CPU, memory, disk, and network statistics. At least one field must be specified. +kubebuilder:validation:MinProperties=1
func (*NodeExporterConfig) DeepCopy ¶
func (in *NodeExporterConfig) DeepCopy() *NodeExporterConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeExporterConfig.
func (*NodeExporterConfig) DeepCopyInto ¶
func (in *NodeExporterConfig) DeepCopyInto(out *NodeExporterConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NodeExporterConfig) OpenAPIModelName ¶
func (in NodeExporterConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (NodeExporterConfig) SwaggerDoc ¶
func (NodeExporterConfig) SwaggerDoc() map[string]string
type NodeExporterIgnoredNetworkDevice ¶
type NodeExporterIgnoredNetworkDevice string
NodeExporterIgnoredNetworkDevice is a string that is interpreted as a Go regular expression pattern by the controller to match network device names to exclude from node-exporter metric collection for collectors such as netdev, netclass, and ethtool. Invalid regular expressions will cause a controller-level error at runtime. Must be at least 1 character and at most 1024 characters. +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=1024
type NodeExporterInterruptsIncludePattern ¶
type NodeExporterInterruptsIncludePattern string
NodeExporterInterruptsIncludePattern is a string that is interpreted as a Go regular expression pattern by the controller to match interrupt line names. Invalid regular expressions will cause a controller-level error at runtime. Must be at least 1 character and at most 1024 characters. Must contain only printable ASCII characters (no control characters). +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=1024 +kubebuilder:validation:XValidation:rule="self.matches('^[\\\\x20-\\\\x7E]+$')",message="must contain only printable ASCII characters (no control characters)"
type NodeExporterNetclassStatsGatherer ¶
type NodeExporterNetclassStatsGatherer string
NodeExporterNetclassStatsGatherer identifies how the netclass collector gathers device statistics (for example via sysfs or netlink, as implemented in node_exporter). Valid values are "Sysfs" and "Netlink". +kubebuilder:validation:Enum=Sysfs;Netlink +enum
const ( // NodeExporterNetclassStatsGathererSysfs uses the sysfs-based implementation. NodeExporterNetclassStatsGathererSysfs NodeExporterNetclassStatsGatherer = "Sysfs" // NodeExporterNetclassStatsGathererNetlink uses the netlink-based implementation. NodeExporterNetclassStatsGathererNetlink NodeExporterNetclassStatsGatherer = "Netlink" )
type NodeExporterSystemdUnit ¶
type NodeExporterSystemdUnit string
NodeExporterSystemdUnit is a string that is interpreted as a Go regular expression pattern by the controller to match systemd unit names. Invalid regular expressions will cause a controller-level error at runtime. Must be at least 1 character and at most 1024 characters. +kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=1024
type OAuth2 ¶
type OAuth2 struct {
// clientId defines the secret reference containing the OAuth2 client ID.
// The secret must exist in the openshift-monitoring namespace.
// +required
ClientID SecretKeySelector `json:"clientId,omitzero,omitempty"`
// clientSecret defines the secret reference containing the OAuth2 client secret.
// The secret must exist in the openshift-monitoring namespace.
// +required
ClientSecret SecretKeySelector `json:"clientSecret,omitzero,omitempty"`
// tokenUrl is the URL to fetch the token from.
// Must be a valid URL with http or https scheme.
// Must be between 1 and 2048 characters in length.
// +required
// +kubebuilder:validation:MaxLength=2048
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:XValidation:rule="isURL(self)",message="must be a valid URL"
// +kubebuilder:validation:XValidation:rule="!isURL(self) || url(self).getScheme() == 'http' || url(self).getScheme() == 'https'",message="must use http or https scheme"
TokenURL string `json:"tokenUrl,omitempty"`
// scopes is a list of OAuth2 scopes to request.
// When omitted, no scopes are requested.
// Maximum of 20 scopes can be specified.
// Each scope must be between 1 and 256 characters.
// +optional
// +kubebuilder:validation:MinItems=0
// +kubebuilder:validation:MaxItems=20
// +kubebuilder:validation:items:MinLength=1
// +kubebuilder:validation:items:MaxLength=256
// +listType=atomic
Scopes []string `json:"scopes,omitempty"`
// endpointParams defines additional parameters to append to the token URL.
// When omitted, no additional parameters are sent.
// Maximum of 20 parameters can be specified. Entries must have unique names (name is the list key).
// +optional
// +kubebuilder:validation:MinItems=0
// +kubebuilder:validation:MaxItems=20
// +listType=map
// +listMapKey=name
EndpointParams []OAuth2EndpointParam `json:"endpointParams,omitempty"`
}
OAuth2 defines OAuth2 authentication settings for the remote write endpoint.
func (*OAuth2) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuth2.
func (*OAuth2) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OAuth2) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (OAuth2) SwaggerDoc ¶
type OAuth2EndpointParam ¶
type OAuth2EndpointParam struct {
// name is the parameter name. Must be between 1 and 256 characters.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=256
Name string `json:"name,omitempty"`
// value is the optional parameter value. When omitted, the query parameter is applied as ?name (no value).
// When set (including to the empty string), it is applied as ?name=value. Empty string may be used when the
// external system expects a parameter with an empty value (e.g. ?parameter="").
// Must be between 0 and 2048 characters when present (aligned with common URL length recommendations).
// +optional
// +kubebuilder:validation:MinLength=0
// +kubebuilder:validation:MaxLength=2048
Value *string `json:"value,omitempty"`
}
OAuth2EndpointParam defines a name/value parameter for the OAuth2 token URL.
func (*OAuth2EndpointParam) DeepCopy ¶
func (in *OAuth2EndpointParam) DeepCopy() *OAuth2EndpointParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuth2EndpointParam.
func (*OAuth2EndpointParam) DeepCopyInto ¶
func (in *OAuth2EndpointParam) DeepCopyInto(out *OAuth2EndpointParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OAuth2EndpointParam) OpenAPIModelName ¶
func (in OAuth2EndpointParam) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (OAuth2EndpointParam) SwaggerDoc ¶
func (OAuth2EndpointParam) SwaggerDoc() map[string]string
type OpenShiftStateMetricsConfig ¶
type OpenShiftStateMetricsConfig struct {
// nodeSelector defines the nodes on which the Pods are scheduled.
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// When specified, nodeSelector must contain at least 1 entry and must not contain more than 10 entries.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// resources defines the compute resource requests and limits for the openshift-state-metrics container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 1m
// limit: null
// - name: memory
// request: 32Mi
// limit: null
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// tolerations defines tolerations for the pods.
// tolerations is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// Defaults are empty/unset.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=atomic
// +optional
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// topologySpreadConstraints defines rules for how openshift-state-metrics Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Default is empty list.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}
OpenShiftStateMetricsConfig provides configuration options for the openshift-state-metrics agent that runs in the `openshift-monitoring` namespace. The openshift-state-metrics agent generates metrics about the state of OpenShift-specific Kubernetes objects, such as routes, builds, and deployments. +kubebuilder:validation:MinProperties=1
func (*OpenShiftStateMetricsConfig) DeepCopy ¶
func (in *OpenShiftStateMetricsConfig) DeepCopy() *OpenShiftStateMetricsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenShiftStateMetricsConfig.
func (*OpenShiftStateMetricsConfig) DeepCopyInto ¶
func (in *OpenShiftStateMetricsConfig) DeepCopyInto(out *OpenShiftStateMetricsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OpenShiftStateMetricsConfig) OpenAPIModelName ¶
func (in OpenShiftStateMetricsConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (OpenShiftStateMetricsConfig) SwaggerDoc ¶
func (OpenShiftStateMetricsConfig) SwaggerDoc() map[string]string
type PKI ¶
type PKI struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
// spec holds user settable values for configuration
// +required
Spec PKISpec `json:"spec,omitzero"`
}
PKI configures cryptographic parameters for certificates generated internally by OpenShift components.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:resource:path=pkis,scope=Cluster +openshift:api-approved.openshift.io=https://github.com/openshift/api/pull/2645 +openshift:file-pattern=cvoRunLevel=0000_10,operatorName=config-operator,operatorOrdering=01 +openshift:enable:FeatureGate=ConfigurablePKI +openshift:compatibility-gen:level=4 +kubebuilder:validation:XValidation:rule="self.metadata.name == 'cluster'",message="pki is a singleton, .metadata.name must be 'cluster'"
func (*PKI) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKI.
func (*PKI) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PKI) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (PKI) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKI) SwaggerDoc ¶
type PKICertificateConfig ¶
type PKICertificateConfig struct {
// key specifies the cryptographic parameters for the certificate's key pair.
// +required
Key PKIKeyConfig `json:"key,omitzero"`
}
PKICertificateConfig specifies configuration parameters for certificates.
func (*PKICertificateConfig) DeepCopy ¶
func (in *PKICertificateConfig) DeepCopy() *PKICertificateConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKICertificateConfig.
func (*PKICertificateConfig) DeepCopyInto ¶
func (in *PKICertificateConfig) DeepCopyInto(out *PKICertificateConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKICertificateConfig) OpenAPIModelName ¶
func (in PKICertificateConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKICertificateConfig) SwaggerDoc ¶
func (PKICertificateConfig) SwaggerDoc() map[string]string
type PKICertificateManagement
deprecated
type PKICertificateManagement struct {
// mode determines how PKI configuration is managed.
// Valid values are "Unmanaged", "Default", and "Custom".
//
// When set to Unmanaged, components use their existing hardcoded certificate
// generation behavior, exactly as if this feature did not exist. Each component
// generates certificates using whatever parameters it was using before this
// feature. While most components use RSA 2048, some may use different
// parameters. Use of this mode might prevent upgrading to the next major
// OpenShift release.
//
// When set to Default, OpenShift-recommended best practices for certificate
// generation are applied. The specific parameters may evolve across OpenShift
// releases to adopt improved cryptographic standards. In the initial release,
// this matches Unmanaged behavior for each component. In future releases, this
// may adopt ECDSA or larger RSA keys based on industry best practices.
// Recommended for most customers who want to benefit from security improvements
// automatically.
//
// When set to Custom, the certificate management parameters can be set
// explicitly. Use the custom field to specify certificate generation parameters.
//
// Deprecated: configure PKICertificatePolicy via the certificates field instead.
//
// +required
// +unionDiscriminator
Mode PKICertificateManagementMode `json:"mode,omitempty"`
// custom contains administrator-specified cryptographic configuration.
// Use the defaults and category override fields of the embedded PKIProfile
// to specify certificate generation parameters.
// Required when mode is Custom, and forbidden otherwise.
// When omitted, mode governs behavior on its own.
//
// Deprecated: use the fields of PKICertificatePolicy instead.
//
// +optional
// +unionMember
Custom CustomPKIPolicy `json:"custom,omitzero"`
}
PKICertificateManagement is the former container for certificate configuration, a mode union determining whether components use hardcoded defaults (Unmanaged), follow OpenShift best practices (Default), or use administrator-specified cryptographic parameters (Custom).
Deprecated: use PKICertificatePolicy instead.
+kubebuilder:validation:XValidation:rule="self.mode == 'Custom' ? has(self.custom) : !has(self.custom)",message="custom is required when mode is Custom, and forbidden otherwise" +union
func (*PKICertificateManagement) DeepCopy ¶
func (in *PKICertificateManagement) DeepCopy() *PKICertificateManagement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKICertificateManagement.
func (*PKICertificateManagement) DeepCopyInto ¶
func (in *PKICertificateManagement) DeepCopyInto(out *PKICertificateManagement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKICertificateManagement) OpenAPIModelName ¶
func (in PKICertificateManagement) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKICertificateManagement) SwaggerDoc ¶
func (PKICertificateManagement) SwaggerDoc() map[string]string
type PKICertificateManagementMode
deprecated
type PKICertificateManagementMode string
PKICertificateManagementMode specifies the mode for PKI certificate management. Valid values are "Unmanaged", "Default", and "Custom".
Deprecated: the mode union was replaced by the flat PKICertificatePolicy.
+kubebuilder:validation:Enum=Unmanaged;Default;Custom
const ( // PKICertificateManagementModeUnmanaged uses each component's existing hardcoded defaults. // Most components currently use RSA 2048, but parameters may differ by component. // // Deprecated: the mode union was replaced by the flat PKICertificatePolicy. PKICertificateManagementModeUnmanaged PKICertificateManagementMode = "Unmanaged" // PKICertificateManagementModeDefault uses OpenShift-recommended best practices. // Specific parameters may evolve across OpenShift releases. // // Deprecated: the mode union was replaced by the flat PKICertificatePolicy. PKICertificateManagementModeDefault PKICertificateManagementMode = "Default" // PKICertificateManagementModeCustom uses administrator-specified configuration. // // Deprecated: the mode union was replaced by the flat PKICertificatePolicy. PKICertificateManagementModeCustom PKICertificateManagementMode = "Custom" )
type PKICertificatePolicy ¶
type PKICertificatePolicy struct {
// defaults specifies the default certificate configuration applied to any certificate
// that has no more-specific (category or named) override. This field is required so
// that every certificate has a well-defined configuration.
//
// +required
Defaults PKIDefaultCertificateConfig `json:"defaults,omitzero"`
// caCertificates optionally overrides certificate parameters for certificate
// authority (CA) certificates that sign other certificates. When set, these
// parameters take precedence over defaults for all CA certificates. When omitted,
// defaults are used for CA certificates.
//
// +optional
CACertificates PKICertificateConfig `json:"caCertificates,omitempty,omitzero"`
// serverCertificates optionally overrides certificate parameters for TLS server
// certificates. When set, these parameters take precedence over defaults for all
// server certificates. When omitted, defaults are used for server certificates.
//
// +optional
ServerCertificates PKICertificateConfig `json:"serverCertificates,omitempty,omitzero"`
// clientCertificates optionally overrides certificate parameters for client
// authentication certificates. When set, these parameters take precedence over
// defaults for all client certificates. When omitted, defaults are used for client
// certificates.
//
// +optional
ClientCertificates PKICertificateConfig `json:"clientCertificates,omitempty,omitzero"`
// namedCertificates optionally overrides certificate parameters for specific
// certificates identified by their well-known name. These overrides have the highest
// precedence (named, then category, then defaults). Entries are keyed by name, so a
// given name may appear at most once. When omitted, no named overrides are applied.
// When present, the list must contain at least one entry. At most 512 named
// certificate overrides may be specified.
//
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=512
// +optional
NamedCertificates []PKINamedCertificateConfig `json:"namedCertificates,omitempty"`
}
PKICertificatePolicy is the cluster's policy for internally-generated certificates: a required defaults, optional per-category overrides, and optional overrides for specific named certificates. The most-specific setting wins.
func (*PKICertificatePolicy) DeepCopy ¶
func (in *PKICertificatePolicy) DeepCopy() *PKICertificatePolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKICertificatePolicy.
func (*PKICertificatePolicy) DeepCopyInto ¶
func (in *PKICertificatePolicy) DeepCopyInto(out *PKICertificatePolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKICertificatePolicy) OpenAPIModelName ¶
func (in PKICertificatePolicy) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKICertificatePolicy) SwaggerDoc ¶
func (PKICertificatePolicy) SwaggerDoc() map[string]string
type PKIDefaultCertificateConfig ¶
type PKIDefaultCertificateConfig struct {
// key specifies the cryptographic parameters for the certificate's key pair.
// This field is required in defaults to ensure all certificates have a
// well-defined key configuration.
// +required
Key PKIKeyConfig `json:"key,omitzero"`
}
PKIDefaultCertificateConfig specifies the default certificate configuration parameters. All fields are required to ensure that defaults are fully specified for all certificates.
func (*PKIDefaultCertificateConfig) DeepCopy ¶
func (in *PKIDefaultCertificateConfig) DeepCopy() *PKIDefaultCertificateConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKIDefaultCertificateConfig.
func (*PKIDefaultCertificateConfig) DeepCopyInto ¶
func (in *PKIDefaultCertificateConfig) DeepCopyInto(out *PKIDefaultCertificateConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKIDefaultCertificateConfig) OpenAPIModelName ¶
func (in PKIDefaultCertificateConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKIDefaultCertificateConfig) SwaggerDoc ¶
func (PKIDefaultCertificateConfig) SwaggerDoc() map[string]string
type PKIECDSACurve ¶
type PKIECDSACurve string
PKIECDSACurve specifies the elliptic curve used for ECDSA key generation.
+kubebuilder:validation:Enum=P256;P384;P521
const ( // PKIECDSACurveP256 specifies the NIST P-256 curve (also known as secp256r1), providing 128-bit security. PKIECDSACurveP256 PKIECDSACurve = "P256" // PKIECDSACurveP384 specifies the NIST P-384 curve (also known as secp384r1), providing 192-bit security. PKIECDSACurveP384 PKIECDSACurve = "P384" // PKIECDSACurveP521 specifies the NIST P-521 curve (also known as secp521r1), providing 256-bit security. PKIECDSACurveP521 PKIECDSACurve = "P521" )
type PKIECDSAKeyConfig ¶
type PKIECDSAKeyConfig struct {
// curve specifies the NIST elliptic curve for ECDSA keys.
// Valid values are "P256", "P384", and "P521".
//
// When set to P256, the NIST P-256 curve (also known as secp256r1) is used,
// providing 128-bit security.
//
// When set to P384, the NIST P-384 curve (also known as secp384r1) is used,
// providing 192-bit security.
//
// When set to P521, the NIST P-521 curve (also known as secp521r1) is used,
// providing 256-bit security.
//
// +required
Curve PKIECDSACurve `json:"curve,omitempty"`
}
PKIECDSAKeyConfig specifies parameters for ECDSA key generation.
func (*PKIECDSAKeyConfig) DeepCopy ¶
func (in *PKIECDSAKeyConfig) DeepCopy() *PKIECDSAKeyConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKIECDSAKeyConfig.
func (*PKIECDSAKeyConfig) DeepCopyInto ¶
func (in *PKIECDSAKeyConfig) DeepCopyInto(out *PKIECDSAKeyConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKIECDSAKeyConfig) OpenAPIModelName ¶
func (in PKIECDSAKeyConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKIECDSAKeyConfig) SwaggerDoc ¶
func (PKIECDSAKeyConfig) SwaggerDoc() map[string]string
type PKIKeyAlgorithm ¶
type PKIKeyAlgorithm string
PKIKeyAlgorithm specifies the cryptographic algorithm used for key generation.
+kubebuilder:validation:Enum=RSA;ECDSA
const ( // PKIKeyAlgorithmRSA specifies the RSA (Rivest-Shamir-Adleman) algorithm for key generation. PKIKeyAlgorithmRSA PKIKeyAlgorithm = "RSA" // PKIKeyAlgorithmECDSA specifies the ECDSA (Elliptic Curve Digital Signature Algorithm) for key generation. PKIKeyAlgorithmECDSA PKIKeyAlgorithm = "ECDSA" )
type PKIKeyConfig ¶
type PKIKeyConfig struct {
// algorithm specifies the key generation algorithm.
// Valid values are "RSA" and "ECDSA".
//
// When set to RSA, the rsa field must be specified and the generated key
// will be an RSA key with the configured key size.
//
// When set to ECDSA, the ecdsa field must be specified and the generated key
// will be an ECDSA key using the configured elliptic curve.
//
// +required
// +unionDiscriminator
Algorithm PKIKeyAlgorithm `json:"algorithm,omitempty"`
// rsa specifies RSA key parameters.
// Required when algorithm is RSA, and forbidden otherwise.
// +optional
// +unionMember
RSA PKIRSAKeyConfig `json:"rsa,omitzero"`
// ecdsa specifies ECDSA key parameters.
// Required when algorithm is ECDSA, and forbidden otherwise.
// +optional
// +unionMember
ECDSA PKIECDSAKeyConfig `json:"ecdsa,omitzero"`
}
PKIKeyConfig specifies cryptographic parameters for key generation.
+kubebuilder:validation:XValidation:rule="has(self.algorithm) && self.algorithm == 'RSA' ? has(self.rsa) : !has(self.rsa)",message="rsa is required when algorithm is RSA, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.algorithm) && self.algorithm == 'ECDSA' ? has(self.ecdsa) : !has(self.ecdsa)",message="ecdsa is required when algorithm is ECDSA, and forbidden otherwise" +union
func (*PKIKeyConfig) DeepCopy ¶
func (in *PKIKeyConfig) DeepCopy() *PKIKeyConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKIKeyConfig.
func (*PKIKeyConfig) DeepCopyInto ¶
func (in *PKIKeyConfig) DeepCopyInto(out *PKIKeyConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKIKeyConfig) OpenAPIModelName ¶
func (in PKIKeyConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKIKeyConfig) SwaggerDoc ¶
func (PKIKeyConfig) SwaggerDoc() map[string]string
type PKIKeyPolicy ¶
type PKIKeyPolicy struct {
// namedKeys configures keys generated outside of any certificate, such as the bound
// service-account token signing key, identified by their well-known name. Entries are
// opt-in with no inherited default and are keyed by name, so a given name may appear at
// most once. This field is required so that a keys object is never empty.
// At most 16 named keys may be specified.
//
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=16
// +required
NamedKeys []PKINamedKeyConfig `json:"namedKeys,omitempty,omitzero"`
}
PKIKeyPolicy configures keys generated outside of any certificate, by well-known name. When set, at least one named key must be specified; an empty object is rejected.
func (*PKIKeyPolicy) DeepCopy ¶
func (in *PKIKeyPolicy) DeepCopy() *PKIKeyPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKIKeyPolicy.
func (*PKIKeyPolicy) DeepCopyInto ¶
func (in *PKIKeyPolicy) DeepCopyInto(out *PKIKeyPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKIKeyPolicy) OpenAPIModelName ¶
func (in PKIKeyPolicy) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKIKeyPolicy) SwaggerDoc ¶
func (PKIKeyPolicy) SwaggerDoc() map[string]string
type PKIList ¶
type PKIList struct {
metav1.TypeMeta `json:",inline"`
// metadata is the standard list's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
metav1.ListMeta `json:"metadata,omitempty"`
// items is a list of PKI resources
Items []PKI `json:"items"`
}
PKIList is a collection of PKI resources.
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +openshift:compatibility-gen:level=4
func (*PKIList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKIList.
func (*PKIList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PKIList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (PKIList) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKIList) SwaggerDoc ¶
type PKINamedCertificateConfig ¶
type PKINamedCertificateConfig struct {
// name is the well-known override name of the targeted certificate. It is a DNS
// subdomain prefix, a "/", then a name made of alphanumerics, "-", "_" and "."
// (for example "openshift.io/service-ca.service-serving-signer"). The prefix is at
// most 253 characters and the name after the "/" at most 63, so the full name
// must be between 1 and 317 characters. The name is validated
// for format only; there is no registry of valid names, because certificates can be
// registered dynamically. Core-platform certificates use the bare "openshift.io/"
// prefix; names outside the core platform use an owner subdomain prefix (for example
// "hypershift.openshift.io/").
// This field is required so that every named certificate override identifies the
// certificate it applies to.
//
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=317
// +kubebuilder:validation:XValidation:rule="self.contains('/') && !format.qualifiedName().validate(self).hasValue()",message="name must be a prefixed qualified name, for example openshift.io/etcd.signer"
Name string `json:"name,omitempty"`
// PKICertificateConfig holds the overridden parameters for this certificate.
PKICertificateConfig `json:",inline"`
}
PKINamedCertificateConfig overrides certificate parameters for a specific certificate identified by its well-known name.
func (*PKINamedCertificateConfig) DeepCopy ¶
func (in *PKINamedCertificateConfig) DeepCopy() *PKINamedCertificateConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKINamedCertificateConfig.
func (*PKINamedCertificateConfig) DeepCopyInto ¶
func (in *PKINamedCertificateConfig) DeepCopyInto(out *PKINamedCertificateConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKINamedCertificateConfig) OpenAPIModelName ¶
func (in PKINamedCertificateConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKINamedCertificateConfig) SwaggerDoc ¶
func (PKINamedCertificateConfig) SwaggerDoc() map[string]string
type PKINamedKeyConfig ¶
type PKINamedKeyConfig struct {
// name is the well-known name of the key. It is a DNS subdomain prefix, a
// "/", then a name made of alphanumerics, "-", "_" and "." (for example
// "openshift.io/kube-apiserver.bound-service-account-token-signer"). The prefix is at
// most 253 characters and the name after the "/" at most 63, so the full name
// must be between 1 and 317 characters. The name is validated
// for format only, using the same rules as a named certificate override.
// This field is required so that every named key entry identifies the key it configures.
//
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=317
// +kubebuilder:validation:XValidation:rule="self.contains('/') && !format.qualifiedName().validate(self).hasValue()",message="name must be a prefixed qualified name, for example openshift.io/etcd.signer"
Name string `json:"name,omitempty"`
// key specifies the cryptographic parameters for this key. It is required
// because keys configured here have no inherited default.
//
// +required
Key PKIKeyConfig `json:"key,omitzero"`
}
PKINamedKeyConfig configures the cryptographic parameters for a single key generated outside of any certificate, identified by its well-known name.
func (*PKINamedKeyConfig) DeepCopy ¶
func (in *PKINamedKeyConfig) DeepCopy() *PKINamedKeyConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKINamedKeyConfig.
func (*PKINamedKeyConfig) DeepCopyInto ¶
func (in *PKINamedKeyConfig) DeepCopyInto(out *PKINamedKeyConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKINamedKeyConfig) OpenAPIModelName ¶
func (in PKINamedKeyConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKINamedKeyConfig) SwaggerDoc ¶
func (PKINamedKeyConfig) SwaggerDoc() map[string]string
type PKIProfile
deprecated
type PKIProfile struct {
// defaults specifies the default certificate configuration that applies
// to all certificates unless overridden by a category override.
// This field is required so that every certificate has a well-defined configuration.
//
// Deprecated: use PKICertificatePolicy.Defaults instead.
//
// +required
Defaults PKIDefaultCertificateConfig `json:"defaults,omitzero"`
// signerCertificates optionally overrides certificate parameters for
// certificate authority (CA) certificates that sign other certificates.
// When set, these parameters take precedence over defaults for all signer certificates.
// When omitted, the defaults are used for signer certificates.
// The key field within it is now marked required (previously enforced
// via minProperties: 1).
//
// Deprecated: use PKICertificatePolicy.CACertificates instead.
//
// +optional
SignerCertificates PKICertificateConfig `json:"signerCertificates,omitempty,omitzero"`
// servingCertificates optionally overrides certificate parameters for
// TLS server certificates used to serve HTTPS endpoints.
// When set, these parameters take precedence over defaults for all serving certificates.
// When omitted, the defaults are used for serving certificates.
// The key field within it is now marked required (previously enforced
// via minProperties: 1).
//
// Deprecated: use PKICertificatePolicy.ServerCertificates instead.
//
// +optional
ServingCertificates PKICertificateConfig `json:"servingCertificates,omitempty,omitzero"`
// clientCertificates optionally overrides certificate parameters for
// client authentication certificates used to authenticate to servers.
// When set, these parameters take precedence over defaults for all client certificates.
// When omitted, the defaults are used for client certificates.
// The key field within it is now marked required (previously enforced
// via minProperties: 1).
//
// Deprecated: use PKICertificatePolicy.ClientCertificates instead.
//
// +optional
ClientCertificates PKICertificateConfig `json:"clientCertificates,omitempty,omitzero"`
}
PKIProfile defines the certificate generation parameters that OpenShift components use to create certificates. Category overrides take precedence over defaults.
Deprecated: use PKICertificatePolicy instead.
func (*PKIProfile) DeepCopy ¶
func (in *PKIProfile) DeepCopy() *PKIProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKIProfile.
func (*PKIProfile) DeepCopyInto ¶
func (in *PKIProfile) DeepCopyInto(out *PKIProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKIProfile) OpenAPIModelName ¶
func (in PKIProfile) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKIProfile) SwaggerDoc ¶
func (PKIProfile) SwaggerDoc() map[string]string
type PKIRSAKeyConfig ¶
type PKIRSAKeyConfig struct {
// keySize specifies the size of RSA keys in bits.
// Valid values are multiples of 1024 from 2048 to 4096.
// +required
// +kubebuilder:validation:Minimum=2048
// +kubebuilder:validation:Maximum=4096
// +kubebuilder:validation:MultipleOf=1024
KeySize int32 `json:"keySize,omitempty"`
}
PKIRSAKeyConfig specifies parameters for RSA key generation.
func (*PKIRSAKeyConfig) DeepCopy ¶
func (in *PKIRSAKeyConfig) DeepCopy() *PKIRSAKeyConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKIRSAKeyConfig.
func (*PKIRSAKeyConfig) DeepCopyInto ¶
func (in *PKIRSAKeyConfig) DeepCopyInto(out *PKIRSAKeyConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKIRSAKeyConfig) OpenAPIModelName ¶
func (in PKIRSAKeyConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKIRSAKeyConfig) SwaggerDoc ¶
func (PKIRSAKeyConfig) SwaggerDoc() map[string]string
type PKISpec ¶
type PKISpec struct {
// certificates specifies the cluster's certificate policy for internally-generated
// certificates, resolved most-specific-wins: a named certificate override, then a
// category override (CA, server, client), then the required defaults.
// This field is optional and mutually exclusive with the deprecated
// certificateManagement field; exactly one of the two must be set.
// This field names a configuration policy; it is unrelated to the X.509
// certificate-policies extension.
//
// +optional
Certificates PKICertificatePolicy `json:"certificates,omitzero"`
// keys optionally configures keys generated outside of any certificate, such as
// the bound service-account token signing key. Entries are named and opt-in with no
// inherited default. When omitted, no keys are configured by this resource.
// When set, at least one named key must be specified; an empty object is rejected.
// Unlike certificates, keys have no resolution chain: a key is either configured
// here or it is not, and a component whose key is not configured decides for
// itself (an internal default, or an error if it has none).
//
// +optional
Keys PKIKeyPolicy `json:"keys,omitempty,omitzero"`
// certificateManagement is the former shape of certificates, a mode union
// (Unmanaged/Default/Custom). It is retained only so that clients written against
// it keep compiling and so that objects using it keep roundtripping; it is mutually
// exclusive with certificates and exactly one of the two must be set.
// Note that key validation is tighter than it was when this field was current:
// RSA key sizes above 4096 bits, which were previously accepted, are now rejected.
//
// Deprecated: use certificates instead.
//
// +optional
CertificateManagement PKICertificateManagement `json:"certificateManagement,omitzero"`
}
PKISpec holds the specification for PKI configuration. Exactly one of certificates or certificateManagement must be set.
+kubebuilder:validation:ExactlyOneOf=certificates;certificateManagement
func (*PKISpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PKISpec.
func (*PKISpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PKISpec) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (PKISpec) SwaggerDoc ¶
type PersistentVolumeClaimReference ¶
type PersistentVolumeClaimReference struct {
// name is a string that follows the DNS1123 subdomain format.
// It must be at most 253 characters in length, and must consist only of lower case alphanumeric characters, '-' and '.', and must start and end with an alphanumeric character.
// +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character."
// +kubebuilder:validation:MaxLength:=253
// +required
Name string `json:"name"`
}
persistentVolumeClaimReference is a reference to a PersistentVolumeClaim.
func (*PersistentVolumeClaimReference) DeepCopy ¶
func (in *PersistentVolumeClaimReference) DeepCopy() *PersistentVolumeClaimReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeClaimReference.
func (*PersistentVolumeClaimReference) DeepCopyInto ¶
func (in *PersistentVolumeClaimReference) DeepCopyInto(out *PersistentVolumeClaimReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PersistentVolumeClaimReference) OpenAPIModelName ¶
func (in PersistentVolumeClaimReference) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PersistentVolumeClaimReference) SwaggerDoc ¶
func (PersistentVolumeClaimReference) SwaggerDoc() map[string]string
type PersistentVolumeConfig ¶
type PersistentVolumeConfig struct {
// claim is a required field that specifies the configuration of the PersistentVolumeClaim that will be used to store the Insights data archive.
// The PersistentVolumeClaim must be created in the openshift-insights namespace.
// +required
Claim PersistentVolumeClaimReference `json:"claim"`
// mountPath is an optional field specifying the directory where the PVC will be mounted inside the Insights data gathering Pod.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default mount path is /var/lib/insights-operator
// The path may not exceed 1024 characters and must not contain a colon.
// +kubebuilder:validation:MaxLength=1024
// +kubebuilder:validation:XValidation:rule="!self.contains(':')",message="mountPath must not contain a colon"
// +optional
MountPath string `json:"mountPath,omitempty"`
}
persistentVolumeConfig provides configuration options for PersistentVolume storage.
func (*PersistentVolumeConfig) DeepCopy ¶
func (in *PersistentVolumeConfig) DeepCopy() *PersistentVolumeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeConfig.
func (*PersistentVolumeConfig) DeepCopyInto ¶
func (in *PersistentVolumeConfig) DeepCopyInto(out *PersistentVolumeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PersistentVolumeConfig) OpenAPIModelName ¶
func (in PersistentVolumeConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PersistentVolumeConfig) SwaggerDoc ¶
func (PersistentVolumeConfig) SwaggerDoc() map[string]string
type PrometheusConfig ¶
type PrometheusConfig struct {
// additionalAlertmanagerConfigs configures additional Alertmanager instances that receive alerts from
// the Prometheus component. This is useful for organizations that need to:
// - Send alerts to external monitoring systems (like PagerDuty, Slack, or custom webhooks)
// - Route different types of alerts to different teams or systems
// - Integrate with existing enterprise alerting infrastructure
// - Maintain separate alert routing for compliance or organizational requirements
// When omitted, no additional Alertmanager instances are configured (default behavior).
// When provided, at least one configuration must be specified (minimum 1, maximum 10 items).
// Entries must have unique names (name is the list key).
// +optional
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=10
// +listType=map
// +listMapKey=name
AdditionalAlertmanagerConfigs []AdditionalAlertmanagerConfig `json:"additionalAlertmanagerConfigs,omitempty"`
// bodySizeEnforcement configures the maximum size of the response body accepted from a scraped target.
// If a scraped target's body response is larger than the limit, the scrape will fail.
// This helps protect Prometheus from targets that return excessively large responses.
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
// which is subject to change over time. The current default is to calculate the limit automatically
// based on cluster capacity.
// An existing prometheusK8s section in the ConfigMap takes precedence over this setting.
// +optional
BodySizeEnforcement BodySizeEnforcement `json:"bodySizeEnforcement,omitempty,omitzero"`
// externalLabels defines labels to be attached to time series and alerts
// when communicating with external systems such as federation, remote storage,
// and Alertmanager. These labels are not stored with metrics on disk; they are
// only added when data leaves Prometheus (e.g., during federation queries,
// remote write, or alert notifications).
// At least 1 label must be specified when set, with a maximum of 50 labels allowed.
// Each label key must be unique within this list.
// When omitted, no external labels are applied.
// +optional
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=50
// +listType=map
// +listMapKey=key
ExternalLabels []Label `json:"externalLabels,omitempty"`
// logLevel defines the verbosity of logs emitted by Prometheus.
// This field allows users to control the amount and severity of logs generated, which can be useful
// for debugging issues or reducing noise in production environments.
// Allowed values are Error, Warn, Info, and Debug.
// When set to Error, only errors will be logged.
// When set to Warn, both warnings and errors will be logged.
// When set to Info, general information, warnings, and errors will all be logged.
// When set to Debug, detailed debugging information will be logged.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
// The current default value is `Info`.
// +optional
LogLevel LogLevel `json:"logLevel,omitempty"`
// nodeSelector defines the nodes on which the Pods are scheduled.
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// When specified, nodeSelector must contain at least one key-value pair (minimum of 1)
// and must not contain more than 10 entries.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// queryLogFile specifies the file to which PromQL queries are logged.
// This setting can be either a filename, in which
// case the queries are saved to an `emptyDir` volume
// at `/var/log/prometheus`, or a full path to a location where
// an `emptyDir` volume will be mounted and the queries saved.
// Writing to `/dev/stderr`, `/dev/stdout` or `/dev/null` is supported, but
// writing to any other `/dev/` path is not supported. Relative paths are
// also not supported.
// By default, PromQL queries are not logged.
// Must be an absolute path starting with `/` or a simple filename without path separators.
// Must not contain consecutive slashes, end with a slash, or include '..' path traversal.
// Must contain only alphanumeric characters, '.', '_', '-', or '/'.
// Must be between 1 and 255 characters in length.
// +optional
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=255
// +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9._/-]+$')",message="must contain only alphanumeric characters, '.', '_', '-', or '/'"
// +kubebuilder:validation:XValidation:rule="self.startsWith('/') || !self.contains('/')",message="must be an absolute path starting with '/' or a simple filename without '/'"
// +kubebuilder:validation:XValidation:rule="!self.startsWith('/dev/') || self in ['/dev/stdout', '/dev/stderr', '/dev/null']",message="only /dev/stdout, /dev/stderr, and /dev/null are allowed as /dev/ paths"
// +kubebuilder:validation:XValidation:rule="!self.contains('//') && !self.endsWith('/') && !self.contains('..')",message="must not contain '//', end with '/', or contain '..'"
QueryLogFile string `json:"queryLogFile,omitempty"`
// remoteWrite defines the remote write configuration, including URL, authentication, and relabeling settings.
// Remote write allows Prometheus to send metrics it collects to external long-term storage systems.
// When omitted, no remote write endpoints are configured.
// When provided, at least one configuration must be specified (minimum 1, maximum 10 items).
// Entries must have unique names (name is the list key).
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=10
// +listType=map
// +listMapKey=name
// +optional
RemoteWrite []RemoteWriteSpec `json:"remoteWrite,omitempty"`
// resources defines the compute resource requests and limits for the Prometheus container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 4m
// limit: null
// - name: memory
// request: 40Mi
// limit: null
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// retention configures how long Prometheus retains metrics data and how much storage it can use.
// When omitted, the platform chooses reasonable defaults (currently 15d retention, no size limit).
// +optional
Retention Retention `json:"retention,omitempty,omitzero"`
// tolerations defines tolerations for the pods.
// tolerations is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// Defaults are empty/unset.
// Maximum length for this list is 10
// Minimum length for this list is 1
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=atomic
// +optional
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// topologySpreadConstraints defines rules for how Prometheus Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Default is empty list.
// Maximum length for this list is 10.
// Minimum length for this list is 1
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
// collectionProfile defines the metrics collection profile that Prometheus uses to collect
// metrics from the platform components. Supported values are `Full` or
// `Minimal`. In the `Full` profile (default), Prometheus collects all
// metrics that are exposed by the platform components. In the `Minimal`
// profile, Prometheus only collects metrics necessary for the default
// platform alerts, recording rules, telemetry and console dashboards.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is `Full`.
// +optional
CollectionProfile CollectionProfile `json:"collectionProfile,omitempty"`
// volumeClaimTemplate defines persistent storage for Prometheus. Use this setting to
// configure the persistent volume claim, including storage class and volume size.
// If omitted, the Pod uses ephemeral storage and Prometheus data will not persist
// across restarts.
// +optional
VolumeClaimTemplate *v1.PersistentVolumeClaim `json:"volumeClaimTemplate,omitempty,omitzero"`
}
PrometheusConfig provides configuration options for the Prometheus instance. Use this configuration to control Prometheus deployment, pod scheduling, resource allocation, retention policies, and external integrations. +kubebuilder:validation:MinProperties=1
func (*PrometheusConfig) DeepCopy ¶
func (in *PrometheusConfig) DeepCopy() *PrometheusConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusConfig.
func (*PrometheusConfig) DeepCopyInto ¶
func (in *PrometheusConfig) DeepCopyInto(out *PrometheusConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PrometheusConfig) OpenAPIModelName ¶
func (in PrometheusConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PrometheusConfig) SwaggerDoc ¶
func (PrometheusConfig) SwaggerDoc() map[string]string
type PrometheusOperatorAdmissionWebhookConfig ¶
type PrometheusOperatorAdmissionWebhookConfig struct {
// resources defines the compute resource requests and limits for the
// prometheus-operator-admission-webhook container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 5m
// limit: null
// - name: memory
// request: 30Mi
// limit: null
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// topologySpreadConstraints defines rules for how admission webhook Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Default is empty list.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}
PrometheusOperatorAdmissionWebhookConfig provides configuration options for the admission webhook component of Prometheus Operator that runs in the `openshift-monitoring` namespace. The admission webhook validates PrometheusRule and AlertmanagerConfig objects, mutates PrometheusRule annotations, and converts AlertmanagerConfig objects between API versions. +kubebuilder:validation:MinProperties=1
func (*PrometheusOperatorAdmissionWebhookConfig) DeepCopy ¶
func (in *PrometheusOperatorAdmissionWebhookConfig) DeepCopy() *PrometheusOperatorAdmissionWebhookConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusOperatorAdmissionWebhookConfig.
func (*PrometheusOperatorAdmissionWebhookConfig) DeepCopyInto ¶
func (in *PrometheusOperatorAdmissionWebhookConfig) DeepCopyInto(out *PrometheusOperatorAdmissionWebhookConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PrometheusOperatorAdmissionWebhookConfig) OpenAPIModelName ¶
func (in PrometheusOperatorAdmissionWebhookConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PrometheusOperatorAdmissionWebhookConfig) SwaggerDoc ¶
func (PrometheusOperatorAdmissionWebhookConfig) SwaggerDoc() map[string]string
type PrometheusOperatorConfig ¶
type PrometheusOperatorConfig struct {
// logLevel defines the verbosity of logs emitted by Prometheus Operator.
// This field allows users to control the amount and severity of logs generated, which can be useful
// for debugging issues or reducing noise in production environments.
// Allowed values are Error, Warn, Info, and Debug.
// When set to Error, only errors will be logged.
// When set to Warn, both warnings and errors will be logged.
// When set to Info, general information, warnings, and errors will all be logged.
// When set to Debug, detailed debugging information will be logged.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
// The current default value is `Info`.
// +optional
LogLevel LogLevel `json:"logLevel,omitempty"`
// nodeSelector defines the nodes on which the Pods are scheduled
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// When specified, nodeSelector must contain at least 1 entry and must not contain more than 10 entries.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// resources defines the compute resource requests and limits for the Prometheus Operator container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 4m
// limit: null
// - name: memory
// request: 40Mi
// limit: null
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// tolerations defines tolerations for the pods.
// tolerations is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// Defaults are empty/unset.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=atomic
// +optional
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// topologySpreadConstraints defines rules for how Prometheus Operator Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Default is empty list.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}
PrometheusOperatorConfig provides configuration options for the Prometheus Operator instance Use this configuration to control how the Prometheus Operator instance is deployed, how it logs, and how its pods are scheduled. +kubebuilder:validation:MinProperties=1
func (*PrometheusOperatorConfig) DeepCopy ¶
func (in *PrometheusOperatorConfig) DeepCopy() *PrometheusOperatorConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusOperatorConfig.
func (*PrometheusOperatorConfig) DeepCopyInto ¶
func (in *PrometheusOperatorConfig) DeepCopyInto(out *PrometheusOperatorConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PrometheusOperatorConfig) OpenAPIModelName ¶
func (in PrometheusOperatorConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PrometheusOperatorConfig) SwaggerDoc ¶
func (PrometheusOperatorConfig) SwaggerDoc() map[string]string
type PrometheusRemoteWriteHeader ¶
type PrometheusRemoteWriteHeader struct {
// name is the HTTP header name. Must not be a reserved header (see type documentation).
// Must contain only alphanumeric characters, hyphens, and underscores; invalid characters are rejected. Must be between 1 and 256 characters.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=256
Name string `json:"name,omitempty"`
// value is the HTTP header value. Must be at most 4096 characters.
// +required
// +kubebuilder:validation:MinLength=0
// +kubebuilder:validation:MaxLength=4096
Value *string `json:"value,omitempty"`
}
PrometheusRemoteWriteHeader defines a custom HTTP header for remote write requests. The header name must not be one of the reserved headers set by Prometheus (Host, Authorization, Content-Encoding, Content-Type, X-Prometheus-Remote-Write-Version, User-Agent, Connection, Keep-Alive, Proxy-Authenticate, Proxy-Authorization, WWW-Authenticate). Header names must contain only case-insensitive alphanumeric characters, hyphens (-), and underscores (_); other characters (e.g. emoji) are rejected by validation. Validation is enforced on the Headers field in RemoteWriteSpec.
func (*PrometheusRemoteWriteHeader) DeepCopy ¶
func (in *PrometheusRemoteWriteHeader) DeepCopy() *PrometheusRemoteWriteHeader
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRemoteWriteHeader.
func (*PrometheusRemoteWriteHeader) DeepCopyInto ¶
func (in *PrometheusRemoteWriteHeader) DeepCopyInto(out *PrometheusRemoteWriteHeader)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PrometheusRemoteWriteHeader) OpenAPIModelName ¶
func (in PrometheusRemoteWriteHeader) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (PrometheusRemoteWriteHeader) SwaggerDoc ¶
func (PrometheusRemoteWriteHeader) SwaggerDoc() map[string]string
type QueueConfig ¶
type QueueConfig struct {
// capacity is the number of samples to buffer per shard before we start dropping them.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is 10000.
// Minimum value is 1.
// Maximum value is 1000000.
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=1000000
Capacity int32 `json:"capacity,omitempty"`
// maxShards is the maximum number of shards, i.e. amount of concurrency.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is 200.
// Minimum value is 1.
// Maximum value is 10000.
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=10000
MaxShards int32 `json:"maxShards,omitempty"`
// minShards is the minimum number of shards, i.e. amount of concurrency.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is 1.
// Minimum value is 1.
// Maximum value is 10000.
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=10000
MinShards int32 `json:"minShards,omitempty"`
// maxSamplesPerSend is the maximum number of samples per send.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is 1000.
// Minimum value is 1.
// Maximum value is 100000.
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=100000
MaxSamplesPerSend int32 `json:"maxSamplesPerSend,omitempty"`
// batchSendDeadlineSeconds is the maximum time in seconds a sample will wait in buffer before being sent.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// Minimum value is 1 second.
// Maximum value is 3600 seconds (1 hour).
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=3600
BatchSendDeadlineSeconds int32 `json:"batchSendDeadlineSeconds,omitempty"`
// minBackoffMilliseconds is the minimum retry delay in milliseconds.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// Minimum value is 1 millisecond.
// Maximum value is 3600000 milliseconds (1 hour).
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=3600000
MinBackoffMilliseconds int32 `json:"minBackoffMilliseconds,omitempty"`
// maxBackoffMilliseconds is the maximum retry delay in milliseconds.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// Minimum value is 1 millisecond.
// Maximum value is 3600000 milliseconds (1 hour).
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=3600000
MaxBackoffMilliseconds int32 `json:"maxBackoffMilliseconds,omitempty"`
// rateLimitedAction controls what to do when the remote write endpoint returns HTTP 429 (Too Many Requests).
// When omitted, no retries are performed on rate limit responses.
// When set to "Retry", Prometheus will retry such requests using the backoff settings above.
// Valid value when set is "Retry".
// +optional
RateLimitedAction RateLimitedAction `json:"rateLimitedAction,omitempty"`
}
QueueConfig allows tuning configuration for remote write queue parameters. Configure this when you need to control throughput, backpressure, or retry behavior—for example to avoid overloading the remote endpoint, to reduce memory usage, or to tune for high-cardinality workloads. Consider capacity, maxShards, and batchSendDeadlineSeconds for throughput; minBackoffMilliseconds and maxBackoffMilliseconds for retries; and rateLimitedAction when the remote returns HTTP 429. +kubebuilder:validation:MinProperties=1
func (*QueueConfig) DeepCopy ¶
func (in *QueueConfig) DeepCopy() *QueueConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueueConfig.
func (*QueueConfig) DeepCopyInto ¶
func (in *QueueConfig) DeepCopyInto(out *QueueConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (QueueConfig) OpenAPIModelName ¶
func (in QueueConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (QueueConfig) SwaggerDoc ¶
func (QueueConfig) SwaggerDoc() map[string]string
type RSAKeyConfig
deprecated
type RSAKeyConfig = PKIRSAKeyConfig
RSAKeyConfig specifies parameters for RSA key generation. Unlike when this type was current, key sizes are capped at 4096 bits.
Deprecated: use PKIRSAKeyConfig instead.
type RateLimitedAction ¶
type RateLimitedAction string
RateLimitedAction defines what to do when the remote write endpoint returns HTTP 429 (Too Many Requests). Omission of this field means do not retry. When set, the only valid value is Retry. +kubebuilder:validation:Enum=Retry
const ( // RateLimitedActionRetry means requests will be retried on HTTP 429 responses. RateLimitedActionRetry RateLimitedAction = "Retry" )
type RelabelAction ¶
type RelabelAction string
RelabelAction defines the action to perform in a relabeling rule. +kubebuilder:validation:Enum=Replace;Keep;Drop;HashMod;LabelMap;LabelDrop;LabelKeep;Lowercase;Uppercase;KeepEqual;DropEqual
const ( // RelabelActionReplace: match regex against concatenated source_labels; set target_label to replacement with ${1}, ${2}, ... substituted. No replacement if regex does not match. RelabelActionReplace RelabelAction = "Replace" // RelabelActionLowercase: map the concatenated source_labels to their lower case. RelabelActionLowercase RelabelAction = "Lowercase" // RelabelActionUppercase: map the concatenated source_labels to their upper case. RelabelActionUppercase RelabelAction = "Uppercase" // RelabelActionKeep: drop targets for which regex does not match the concatenated source_labels. RelabelActionKeep RelabelAction = "Keep" // RelabelActionDrop: drop targets for which regex matches the concatenated source_labels. RelabelActionDrop RelabelAction = "Drop" // RelabelActionKeepEqual: drop targets for which the concatenated source_labels do not match target_label. RelabelActionKeepEqual RelabelAction = "KeepEqual" // RelabelActionDropEqual: drop targets for which the concatenated source_labels do match target_label. RelabelActionDropEqual RelabelAction = "DropEqual" // RelabelActionHashMod: set target_label to the modulus of a hash of the concatenated source_labels. RelabelActionHashMod RelabelAction = "HashMod" // RelabelActionLabelMap: match regex against all source label names; copy matching label values to new names given by replacement with ${1}, ${2}, ... substituted. RelabelActionLabelMap RelabelAction = "LabelMap" // RelabelActionLabelDrop: match regex against all label names; any label that matches is removed. RelabelActionLabelDrop RelabelAction = "LabelDrop" // RelabelActionLabelKeep: match regex against all label names; any label that does not match is removed. RelabelActionLabelKeep RelabelAction = "LabelKeep" )
type RelabelActionConfig ¶
type RelabelActionConfig struct {
// type specifies the action to perform on the matched labels.
// Allowed values are Replace, Lowercase, Uppercase, Keep, Drop, KeepEqual, DropEqual, HashMod, LabelMap, LabelDrop, LabelKeep.
//
// When set to Replace, regex is matched against the concatenated source_labels; target_label is set to replacement with match group references (${1}, ${2}, ...) substituted. If regex does not match, no replacement takes place.
//
// When set to Lowercase, the concatenated source_labels are mapped to their lower case. Requires Prometheus >= v2.36.0.
//
// When set to Uppercase, the concatenated source_labels are mapped to their upper case. Requires Prometheus >= v2.36.0.
//
// When set to Keep, targets for which regex does not match the concatenated source_labels are dropped.
//
// When set to Drop, targets for which regex matches the concatenated source_labels are dropped.
//
// When set to KeepEqual, targets for which the concatenated source_labels do not match target_label are dropped. Requires Prometheus >= v2.41.0.
//
// When set to DropEqual, targets for which the concatenated source_labels do match target_label are dropped. Requires Prometheus >= v2.41.0.
//
// When set to HashMod, target_label is set to the modulus of a hash of the concatenated source_labels.
//
// When set to LabelMap, regex is matched against all source label names (not just source_labels); matching label values are copied to new names given by replacement with ${1}, ${2}, ... substituted.
//
// When set to LabelDrop, regex is matched against all label names; any label that matches is removed.
//
// When set to LabelKeep, regex is matched against all label names; any label that does not match is removed.
// +required
// +unionDiscriminator
Type RelabelAction `json:"type,omitempty"`
// replace configures the Replace action.
// Required when type is Replace, and forbidden otherwise.
// +unionMember
// +optional
Replace ReplaceActionConfig `json:"replace,omitempty,omitzero"`
// hashMod configures the HashMod action.
// Required when type is HashMod, and forbidden otherwise.
// +unionMember
// +optional
HashMod HashModActionConfig `json:"hashMod,omitempty,omitzero"`
// labelMap configures the LabelMap action.
// Required when type is LabelMap, and forbidden otherwise.
// +unionMember
// +optional
LabelMap LabelMapActionConfig `json:"labelMap,omitempty,omitzero"`
// lowercase configures the Lowercase action.
// Required when type is Lowercase, and forbidden otherwise.
// Requires Prometheus >= v2.36.0.
// +unionMember
// +optional
Lowercase LowercaseActionConfig `json:"lowercase,omitempty,omitzero"`
// uppercase configures the Uppercase action.
// Required when type is Uppercase, and forbidden otherwise.
// Requires Prometheus >= v2.36.0.
// +unionMember
// +optional
Uppercase UppercaseActionConfig `json:"uppercase,omitempty,omitzero"`
// keepEqual configures the KeepEqual action.
// Required when type is KeepEqual, and forbidden otherwise.
// Requires Prometheus >= v2.41.0.
// +unionMember
// +optional
KeepEqual KeepEqualActionConfig `json:"keepEqual,omitempty,omitzero"`
// dropEqual configures the DropEqual action.
// Required when type is DropEqual, and forbidden otherwise.
// Requires Prometheus >= v2.41.0.
// +unionMember
// +optional
DropEqual DropEqualActionConfig `json:"dropEqual,omitempty,omitzero"`
}
RelabelActionConfig represents the action to perform and its configuration. Exactly one action-specific configuration must be specified based on the action type. +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'Replace' ? has(self.replace) : !has(self.replace)",message="replace is required when type is Replace, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'HashMod' ? has(self.hashMod) : !has(self.hashMod)",message="hashMod is required when type is HashMod, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'Lowercase' ? has(self.lowercase) : !has(self.lowercase)",message="lowercase is required when type is Lowercase, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'Uppercase' ? has(self.uppercase) : !has(self.uppercase)",message="uppercase is required when type is Uppercase, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'KeepEqual' ? has(self.keepEqual) : !has(self.keepEqual)",message="keepEqual is required when type is KeepEqual, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'DropEqual' ? has(self.dropEqual) : !has(self.dropEqual)",message="dropEqual is required when type is DropEqual, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'LabelMap' ? has(self.labelMap) : !has(self.labelMap)",message="labelMap is required when type is LabelMap, and forbidden otherwise" +union
func (*RelabelActionConfig) DeepCopy ¶
func (in *RelabelActionConfig) DeepCopy() *RelabelActionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelabelActionConfig.
func (*RelabelActionConfig) DeepCopyInto ¶
func (in *RelabelActionConfig) DeepCopyInto(out *RelabelActionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RelabelActionConfig) OpenAPIModelName ¶
func (in RelabelActionConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (RelabelActionConfig) SwaggerDoc ¶
func (RelabelActionConfig) SwaggerDoc() map[string]string
type RelabelConfig ¶
type RelabelConfig struct {
// name is a unique identifier for this relabel configuration.
// Must contain only alphanumeric characters, hyphens, and underscores.
// Must be between 1 and 63 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=63
// +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9_-]+$')",message="must contain only alphanumeric characters, hyphens, and underscores"
Name string `json:"name,omitempty"`
// sourceLabels specifies which label names to extract from each series for this relabeling rule.
// The values of these labels are joined together using the configured separator,
// and the resulting string is then matched against the regular expression.
// If a referenced label does not exist on a series, Prometheus substitutes an empty string.
// When omitted, the rule operates without extracting source labels (useful for actions like labelmap).
// Minimum of 1 and maximum of 10 source labels can be specified, each between 1 and 128 characters.
// Each entry must be unique.
// Labels beginning with "__" (two underscores) are Prometheus internal/meta labels
// (e.g., __name__, __address__) and are valid in sourceLabels because relabeling reads
// from them before they are stripped. Using __name__ in sourceLabels is the standard way
// to filter metrics by name in writeRelabelConfigs.
// Label names SHOULD start with a letter (a-z, A-Z) or underscore (_), followed by zero or more letters, digits (0-9), or underscores for best compatibility.
// While Prometheus supports UTF-8 characters in label names (since v3.0.0), using the recommended character set
// ensures better compatibility with the wider ecosystem (tooling, third-party instrumentation, etc.).
// +optional
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:items:MinLength=1
// +kubebuilder:validation:items:MaxLength=128
// +listType=set
SourceLabels []string `json:"sourceLabels,omitempty"`
// separator is the character sequence used to join source label values.
// Common examples: ";", ",", "::", "|||".
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is ";".
// Must be between 1 and 5 characters in length when specified.
// +optional
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=5
Separator string `json:"separator,omitempty"`
// regex is the regular expression to match against the concatenated source label values.
// Must be a valid RE2 regular expression (https://github.com/google/re2/wiki/Syntax).
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is "(.*)" to match everything.
// Must be between 1 and 8192 characters in length when specified.
// +optional
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=8192
Regex string `json:"regex,omitempty"`
// action defines the action to perform on the matched labels and its configuration.
// Exactly one action-specific configuration must be specified based on the action type.
// +required
Action RelabelActionConfig `json:"action,omitzero"`
}
RelabelConfig represents a relabeling rule.
func (*RelabelConfig) DeepCopy ¶
func (in *RelabelConfig) DeepCopy() *RelabelConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelabelConfig.
func (*RelabelConfig) DeepCopyInto ¶
func (in *RelabelConfig) DeepCopyInto(out *RelabelConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RelabelConfig) OpenAPIModelName ¶
func (in RelabelConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (RelabelConfig) SwaggerDoc ¶
func (RelabelConfig) SwaggerDoc() map[string]string
type RemoteWriteAuthorization ¶
type RemoteWriteAuthorization struct {
// type specifies the authorization method to use.
// Allowed values are Authorization, BasicAuth, OAuth2, SigV4, and ServiceAccount.
//
// When set to Authorization, credentials are read from a single Secret key. The secret key typically contains a Bearer token. Use the authorization field.
//
// When set to BasicAuth, HTTP basic authentication is used; the basicAuth field (username and password from Secrets) must be set.
//
// When set to OAuth2, OAuth2 client credentials flow is used; the oauth2 field (clientId, clientSecret, tokenUrl) must be set.
//
// When set to SigV4, AWS Signature Version 4 is used for authentication; the sigv4 field must be set.
//
// When set to ServiceAccount, the pod's service account token is used for machine identity. No additional field is required; the operator configures the token path.
// +unionDiscriminator
// +required
Type RemoteWriteAuthorizationType `json:"type,omitempty"`
// authorization defines the secret reference containing the authorization credentials (e.g. Bearer token).
// Required when type is "Authorization", and forbidden otherwise.
// The secret must exist in the openshift-monitoring namespace.
// +unionMember=Authorization
// +optional
Authorization SecretKeySelector `json:"authorization,omitempty,omitzero"`
// basicAuth defines HTTP basic authentication credentials.
// Required when type is "BasicAuth", and forbidden otherwise.
// +unionMember
// +optional
BasicAuth BasicAuth `json:"basicAuth,omitempty,omitzero"`
// oauth2 defines OAuth2 client credentials authentication.
// Required when type is "OAuth2", and forbidden otherwise.
// +unionMember
// +optional
OAuth2 OAuth2 `json:"oauth2,omitempty,omitzero"`
// sigv4 defines AWS Signature Version 4 authentication.
// Required when type is "SigV4", and forbidden otherwise.
// +unionMember
// +optional
Sigv4 Sigv4 `json:"sigv4,omitempty,omitzero"`
}
RemoteWriteAuthorization defines the authorization method for a remote write endpoint. Nested config requirements depend on the type discriminator: Authorization requires authorization, BasicAuth requires basicAuth, OAuth2 requires oauth2, SigV4 requires sigv4, and ServiceAccount forbids all nested configs. +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'Authorization' ? has(self.authorization) : !has(self.authorization)",message="authorization is required when type is Authorization, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'BasicAuth' ? has(self.basicAuth) : !has(self.basicAuth)",message="basicAuth is required when type is BasicAuth, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'OAuth2' ? has(self.oauth2) : !has(self.oauth2)",message="oauth2 is required when type is OAuth2, and forbidden otherwise" +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'SigV4' ? has(self.sigv4) : !has(self.sigv4)",message="sigv4 is required when type is SigV4, and forbidden otherwise" +union
func (*RemoteWriteAuthorization) DeepCopy ¶
func (in *RemoteWriteAuthorization) DeepCopy() *RemoteWriteAuthorization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteWriteAuthorization.
func (*RemoteWriteAuthorization) DeepCopyInto ¶
func (in *RemoteWriteAuthorization) DeepCopyInto(out *RemoteWriteAuthorization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RemoteWriteAuthorization) OpenAPIModelName ¶
func (in RemoteWriteAuthorization) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (RemoteWriteAuthorization) SwaggerDoc ¶
func (RemoteWriteAuthorization) SwaggerDoc() map[string]string
type RemoteWriteAuthorizationType ¶
type RemoteWriteAuthorizationType string
RemoteWriteAuthorizationType defines the authorization method for remote write endpoints. +kubebuilder:validation:Enum=Authorization;BasicAuth;OAuth2;SigV4;ServiceAccount
const ( // RemoteWriteAuthorizationTypeAuthorization indicates authorization credentials from a secret. // The secret key contains the credentials (e.g. a Bearer token). Use the authorization field. RemoteWriteAuthorizationTypeAuthorization RemoteWriteAuthorizationType = "Authorization" // RemoteWriteAuthorizationTypeBasicAuth indicates HTTP basic authentication. RemoteWriteAuthorizationTypeBasicAuth RemoteWriteAuthorizationType = "BasicAuth" // RemoteWriteAuthorizationTypeOAuth2 indicates OAuth2 client credentials. RemoteWriteAuthorizationTypeOAuth2 RemoteWriteAuthorizationType = "OAuth2" // RemoteWriteAuthorizationTypeSigV4 indicates AWS Signature Version 4. RemoteWriteAuthorizationTypeSigV4 RemoteWriteAuthorizationType = "SigV4" // RemoteWriteAuthorizationTypeServiceAccount indicates use of the pod's service account token for machine identity. // No additional field is required; the operator configures the token path. RemoteWriteAuthorizationTypeServiceAccount RemoteWriteAuthorizationType = "ServiceAccount" )
type RemoteWriteMessageVersion ¶
type RemoteWriteMessageVersion string
RemoteWriteMessageVersion defines the version of the remote-write protocol. +kubebuilder:validation:Enum=V1.0;V2.0
const ( // RemoteWriteMessageVersion1_0 indicates the version 1.0 of the remote-write protocol. RemoteWriteMessageVersion1_0 RemoteWriteMessageVersion = "V1.0" // RemoteWriteMessageVersion2_0 indicates the version 2.0 of the remote-write protocol. RemoteWriteMessageVersion2_0 RemoteWriteMessageVersion = "V2.0" )
type RemoteWriteSpec ¶
type RemoteWriteSpec struct {
// url is the URL of the remote write endpoint.
// Must be a valid URL with http or https scheme and a non-empty hostname.
// Query parameters are allowed. Fragments and user information (e.g. user:password@host) are not allowed.
// Empty string is invalid. Must be between 1 and 2048 characters in length.
// +required
// +kubebuilder:validation:MaxLength=2048
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:XValidation:rule="isURL(self)",message="must be a valid URL"
// +kubebuilder:validation:XValidation:rule="!isURL(self) || url(self).getScheme() == 'http' || url(self).getScheme() == 'https'",message="must use http or https scheme"
// +kubebuilder:validation:XValidation:rule="!isURL(self) || size(url(self).getHostname()) > 0",message="must have a non-empty hostname"
// +kubebuilder:validation:XValidation:rule="!self.matches('.*#.*')",message="fragments are not allowed"
// +kubebuilder:validation:XValidation:rule="!self.matches('^[^:]+://[^/?#]*@')",message="user information (e.g. user:password@host) is not allowed"
URL string `json:"url,omitempty"`
// name is a required identifier for this remote write configuration (name is the list key for the remoteWrite list).
// This name is used in metrics and logging to differentiate remote write queues.
// Must contain only alphanumeric characters, hyphens, and underscores.
// Must be between 1 and 63 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=63
// +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9_-]+$')",message="must contain only alphanumeric characters, hyphens, and underscores"
Name string `json:"name,omitempty"`
// messageVersion defines the Remote Write message's version to use when writing to the endpoint.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is "V1.0".
// When set to "V1.0", Prometheus uses the `prometheus.WriteRequest` protobuf message introduced in Remote Write 1.0.
// When set to "V2.0", Prometheus uses the `io.prometheus.write.v2.Request` protobuf message introduced in Remote Write 2.0.
// +optional
MessageVersion RemoteWriteMessageVersion `json:"messageVersion,omitempty,omitzero"`
// authorization defines the authorization method for the remote write endpoint.
// When omitted, no authorization is performed.
// When set, type must be one of Authorization, BasicAuth, OAuth2, SigV4, or ServiceAccount; the corresponding nested config must be set (ServiceAccount has no config).
// +optional
AuthorizationConfig RemoteWriteAuthorization `json:"authorization,omitzero"`
// headers specifies the custom HTTP headers to be sent along with each remote write request.
// Sending custom headers makes the configuration of a proxy in between optional and helps the
// receiver recognize the given source better.
// Clients MAY allow users to send custom HTTP headers; they MUST NOT allow users to configure
// them in such a way as to send reserved headers. Headers set by Prometheus cannot be overwritten.
// When omitted, no custom headers are sent.
// Maximum of 50 headers can be specified. Each header name must be unique.
// Each header name must contain only alphanumeric characters, hyphens, and underscores, and must not be a reserved Prometheus header (Host, Authorization, Content-Encoding, Content-Type, X-Prometheus-Remote-Write-Version, User-Agent, Connection, Keep-Alive, Proxy-Authenticate, Proxy-Authorization, WWW-Authenticate).
// +optional
// +kubebuilder:validation:MinItems=0
// +kubebuilder:validation:MaxItems=50
// +kubebuilder:validation:items:XValidation:rule="self.name.matches('^[a-zA-Z0-9_-]+$')",message="header name must contain only alphanumeric characters, hyphens, and underscores"
// +kubebuilder:validation:items:XValidation:rule="!self.name.matches('(?i)^(host|authorization|content-encoding|content-type|x-prometheus-remote-write-version|user-agent|connection|keep-alive|proxy-authenticate|proxy-authorization|www-authenticate)$')",message="header name must not be a reserved Prometheus header (Host, Authorization, Content-Encoding, Content-Type, X-Prometheus-Remote-Write-Version, User-Agent, Connection, Keep-Alive, Proxy-Authenticate, Proxy-Authorization, WWW-Authenticate)"
// +listType=map
// +listMapKey=name
Headers []PrometheusRemoteWriteHeader `json:"headers,omitempty"`
// metadataConfig configures the sending of series metadata to remote storage.
// When omitted, no metadata is sent.
// When set to sendPolicy: Default, metadata is sent using platform-chosen defaults (e.g. send interval 30 seconds).
// When set to sendPolicy: Custom, metadata is sent using the settings in the custom field (e.g. custom.sendIntervalSeconds).
// +optional
MetadataConfig MetadataConfig `json:"metadataConfig,omitempty,omitzero"`
// proxyUrl defines an optional proxy URL.
// If the cluster-wide proxy is enabled, it replaces the proxyUrl setting.
// The cluster-wide proxy supports both HTTP and HTTPS proxies, with HTTPS taking precedence.
// When omitted, no proxy is used.
// Must be a valid URL with http or https scheme.
// Must be between 1 and 2048 characters in length.
// +optional
// +kubebuilder:validation:MaxLength=2048
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:XValidation:rule="isURL(self) && (url(self).getScheme() == 'http' || url(self).getScheme() == 'https')",message="must be a valid URL with http or https scheme"
ProxyURL string `json:"proxyUrl,omitempty"`
// queueConfig allows tuning configuration for remote write queue parameters.
// When omitted, default queue configuration is used.
// +optional
QueueConfig QueueConfig `json:"queueConfig,omitempty,omitzero"`
// remoteTimeoutSeconds defines the timeout in seconds for requests to the remote write endpoint.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// Minimum value is 1 second.
// Maximum value is 600 seconds (10 minutes).
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=600
RemoteTimeoutSeconds int32 `json:"remoteTimeoutSeconds,omitempty"`
// exemplarsMode controls whether exemplars are sent via remote write.
// Valid values are "Send", "DoNotSend" and omitted.
// When set to "Send", Prometheus is configured to store a maximum of 100,000 exemplars in memory and send them with remote write.
// Note that this setting only applies to user-defined monitoring. It is not applicable to default in-cluster monitoring.
// When omitted or set to "DoNotSend", exemplars are not sent.
// +optional
ExemplarsMode ExemplarsMode `json:"exemplarsMode,omitempty"`
// tlsConfig defines TLS authentication settings for the remote write endpoint.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// +optional
TLSConfig TLSConfig `json:"tlsConfig,omitempty,omitzero"`
// writeRelabelConfigs is a list of relabeling rules to apply before sending data to the remote endpoint.
// When omitted, no relabeling is performed and all metrics are sent as-is.
// Minimum of 1 and maximum of 10 relabeling rules can be specified.
// Each rule must have a unique name.
// +optional
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=10
// +listType=map
// +listMapKey=name
WriteRelabelConfigs []RelabelConfig `json:"writeRelabelConfigs,omitempty"`
}
RemoteWriteSpec represents configuration for remote write endpoints.
func (*RemoteWriteSpec) DeepCopy ¶
func (in *RemoteWriteSpec) DeepCopy() *RemoteWriteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteWriteSpec.
func (*RemoteWriteSpec) DeepCopyInto ¶
func (in *RemoteWriteSpec) DeepCopyInto(out *RemoteWriteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RemoteWriteSpec) OpenAPIModelName ¶
func (in RemoteWriteSpec) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (RemoteWriteSpec) SwaggerDoc ¶
func (RemoteWriteSpec) SwaggerDoc() map[string]string
type ReplaceActionConfig ¶
type ReplaceActionConfig struct {
// targetLabel is the label name where the replacement result is written.
// Must be between 1 and 128 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
TargetLabel string `json:"targetLabel,omitempty"`
// replacement is the value written to target_label when regex matches; match group references (${1}, ${2}, ...) are substituted.
// Required when using the Replace action so the intended behavior is explicit and the platform does not need to apply defaults.
// Use "$1" for the first capture group, "$2" for the second, etc. Use an empty string ("") to explicitly clear the target label value.
// Must be between 0 and 255 characters in length.
// +required
// +kubebuilder:validation:MinLength=0
// +kubebuilder:validation:MaxLength=255
Replacement *string `json:"replacement,omitempty"`
}
ReplaceActionConfig configures the Replace action. Regex is matched against the concatenated source_labels; target_label is set to replacement with match group references (${1}, ${2}, ...) substituted. No replacement if regex does not match.
func (*ReplaceActionConfig) DeepCopy ¶
func (in *ReplaceActionConfig) DeepCopy() *ReplaceActionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReplaceActionConfig.
func (*ReplaceActionConfig) DeepCopyInto ¶
func (in *ReplaceActionConfig) DeepCopyInto(out *ReplaceActionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ReplaceActionConfig) OpenAPIModelName ¶
func (in ReplaceActionConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ReplaceActionConfig) SwaggerDoc ¶
func (ReplaceActionConfig) SwaggerDoc() map[string]string
type RequestLoggingPolicy ¶
type RequestLoggingPolicy string
RequestLoggingPolicy controls which HTTP and gRPC requests are logged. Valid values are "AllRequests" and "NoRequests". +kubebuilder:validation:Enum=AllRequests;NoRequests
const ( // RequestLoggingPolicyAllRequests enables logging of all incoming requests. RequestLoggingPolicyAllRequests RequestLoggingPolicy = "AllRequests" // RequestLoggingPolicyNoRequests disables request logging. RequestLoggingPolicyNoRequests RequestLoggingPolicy = "NoRequests" )
type Retention ¶
type Retention struct {
// duration is an optional field that specifies how long Prometheus retains metrics data.
// Valid values are Prometheus-style duration strings with unit suffixes y, w, d, h, m, s, or ms
// (for example, "15d", "24h", or "5d1h30m"). Each unit value must be a positive integer.
// Composite durations must follow the fixed unit order y, w, d, h, m, s, ms.
// Must be at least 1 character and at most 64 characters.
// When set to "0", time-based retention is disabled. This is the only supported form for disabling
// time-based retention; other zero-duration representations such as "0d", "0h", or "0y" are rejected.
// Prometheus automatically deletes data older than this duration.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default value is `15d`.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=64
// +kubebuilder:validation:XValidation:rule=`self == "0" || self.matches('^([1-9][0-9]*y)?([1-9][0-9]*w)?([1-9][0-9]*d)?([1-9][0-9]*h)?([1-9][0-9]*m)?([1-9][0-9]*s)?([1-9][0-9]*ms)?$')`,message=`must be "0" to disable time-based retention, or a duration string with only positive unit values`
// +optional
Duration string `json:"duration,omitempty"`
// size is an optional field that specifies the maximum storage size that Prometheus
// can use for data blocks and the write-ahead log (WAL).
// Valid values are byte-size strings with an optional decimal prefix and a unit suffix B, KB, MB, GB,
// TB, EB, PB, or their binary equivalents KiB, MiB, GiB, TiB, EiB, PiB (for example, "500MiB", "10GiB").
// The numeric value must be greater than zero.
// Must be at least 1 character and at most 32 characters.
// When set to "0", no size limit is enforced. This is the only supported form for disabling size-based
// retention; other zero-size representations such as "0B" or "0MiB" are rejected.
// When the limit is reached, Prometheus deletes oldest data first.
// When omitted, no size limit is enforced and Prometheus uses available PersistentVolume capacity.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=32
// +kubebuilder:validation:XValidation:rule=`self == "0" || self.matches('^([1-9][0-9]*([.][0-9]+)?|[0-9]*[.][1-9][0-9]*)((K|M|G|T|E|P)i?)?B$')`,message=`must be "0" to disable size-based retention, or a positive byte-size string`
// +optional
Size string `json:"size,omitempty"`
}
Retention configures how long Prometheus retains metrics data and how much storage it can use. +kubebuilder:validation:MinProperties=1
func (*Retention) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Retention.
func (*Retention) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Retention) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (Retention) SwaggerDoc ¶
type SecretKeySelector ¶
type SecretKeySelector struct {
// name is the name of the secret in the `openshift-monitoring` namespace to select from.
// Must be a valid Kubernetes secret name (lowercase alphanumeric, '-' or '.', start/end with alphanumeric).
// Must be between 1 and 253 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="must be a valid secret name (lowercase alphanumeric characters, '-' or '.', start and end with alphanumeric)"
Name string `json:"name,omitempty"`
// key is the key of the secret to select from.
// Must consist of alphanumeric characters, '-', '_', or '.'.
// Must be between 1 and 253 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:XValidation:rule="self.matches('^[a-zA-Z0-9._-]+$')",message="must contain only alphanumeric characters, '-', '_', or '.'"
Key string `json:"key,omitempty"`
}
SecretKeySelector selects a key of a Secret in the `openshift-monitoring` namespace. +structType=atomic
func (*SecretKeySelector) DeepCopy ¶
func (in *SecretKeySelector) DeepCopy() *SecretKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeySelector.
func (*SecretKeySelector) DeepCopyInto ¶
func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (SecretKeySelector) OpenAPIModelName ¶
func (in SecretKeySelector) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (SecretKeySelector) SwaggerDoc ¶
func (SecretKeySelector) SwaggerDoc() map[string]string
type SecretName ¶
type SecretName string
SecretName is a type that represents the name of a Secret in the same namespace. It must be at most 253 characters in length. +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character." +kubebuilder:validation:MaxLength=63
type Sigv4 ¶
type Sigv4 struct {
// region is the AWS region.
// When omitted, the region is derived from the environment or instance metadata.
// Must be between 1 and 128 characters.
// +optional
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
Region string `json:"region,omitempty"`
// accessKey defines the secret reference containing the AWS access key ID.
// The secret must exist in the openshift-monitoring namespace.
// When omitted, the access key is derived from the environment or instance metadata.
// +optional
AccessKey SecretKeySelector `json:"accessKey,omitempty,omitzero"`
// secretKey defines the secret reference containing the AWS secret access key.
// The secret must exist in the openshift-monitoring namespace.
// When omitted, the secret key is derived from the environment or instance metadata.
// +optional
SecretKey SecretKeySelector `json:"secretKey,omitempty,omitzero"`
// profile is the named AWS profile used to authenticate.
// When omitted, the default profile is used.
// Must be between 1 and 128 characters.
// +optional
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
Profile string `json:"profile,omitempty"`
// roleArn is the AWS Role ARN, an alternative to using AWS API keys.
// When omitted, API keys are used for authentication.
// Must be a valid AWS ARN format (e.g., "arn:aws:iam::123456789012:role/MyRole").
// Must be between 1 and 512 characters.
// +optional
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=512
// +kubebuilder:validation:XValidation:rule=`self.startsWith('arn:aws') && self.matches('^arn:aws(-[a-z]+)?:iam::[0-9]{12}:role/.+$')`,message="must be a valid AWS IAM role ARN (e.g., arn:aws:iam::123456789012:role/MyRole)"
RoleArn string `json:"roleArn,omitempty"`
}
Sigv4 defines AWS Signature Version 4 authentication settings. At least one of region, accessKey/secretKey, profile, or roleArn must be set so the platform can perform authentication. +kubebuilder:validation:MinProperties=1
func (*Sigv4) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sigv4.
func (*Sigv4) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Sigv4) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (Sigv4) SwaggerDoc ¶
type Storage ¶
type Storage struct {
// type is a required field that specifies the type of storage that will be used to store the Insights data archive.
// Valid values are "PersistentVolume" and "Ephemeral".
// When set to Ephemeral, the Insights data archive is stored in the ephemeral storage of the gathering job.
// When set to PersistentVolume, the Insights data archive is stored in the PersistentVolume that is defined by the persistentVolume field.
// +required
Type StorageType `json:"type"`
// persistentVolume is an optional field that specifies the PersistentVolume that will be used to store the Insights data archive.
// The PersistentVolume must be created in the openshift-insights namespace.
// +optional
PersistentVolume *PersistentVolumeConfig `json:"persistentVolume,omitempty"`
}
storage provides persistent storage configuration options for gathering jobs. If the type is set to PersistentVolume, then the PersistentVolume must be defined. If the type is set to Ephemeral, then the PersistentVolume must not be defined. +kubebuilder:validation:XValidation:rule="has(self.type) && self.type == 'PersistentVolume' ? has(self.persistentVolume) : !has(self.persistentVolume)",message="persistentVolume is required when type is PersistentVolume, and forbidden otherwise"
func (*Storage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Storage) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (Storage) SwaggerDoc ¶
type StorageType ¶
type StorageType string
storageType declares valid storage types +kubebuilder:validation:Enum=PersistentVolume;Ephemeral
const ( // StorageTypePersistentVolume storage type StorageTypePersistentVolume StorageType = "PersistentVolume" // StorageTypeEphemeral storage type StorageTypeEphemeral StorageType = "Ephemeral" )
type TLSConfig ¶
type TLSConfig struct {
// ca is an optional CA certificate to use for TLS connections.
// When omitted, the system's default CA bundle is used.
// +optional
CA SecretKeySelector `json:"ca,omitempty,omitzero"`
// cert is an optional client certificate to use for mutual TLS connections.
// When omitted, no client certificate is presented.
// +optional
Cert SecretKeySelector `json:"cert,omitempty,omitzero"`
// key is an optional client key to use for mutual TLS connections.
// When omitted, no client key is used.
// +optional
Key SecretKeySelector `json:"key,omitempty,omitzero"`
// serverName is an optional server name to use for TLS connections.
// When specified, must be a valid DNS subdomain as per RFC 1123.
// When omitted, the server name is derived from the URL.
// Must be between 1 and 253 characters in length.
// +optional
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="must be a valid DNS subdomain (lowercase alphanumeric characters, '-' or '.', start and end with alphanumeric)"
ServerName string `json:"serverName,omitempty"`
// certificateVerification determines the policy for TLS certificate verification.
// Allowed values are "Verify" (performs certificate verification, secure) and "SkipVerify" (skips verification, insecure).
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The default value is "Verify".
// +optional
CertificateVerification CertificateVerificationType `json:"certificateVerification,omitempty"`
}
TLSConfig represents TLS configuration for Alertmanager connections. At least one TLS configuration option must be specified. For mutual TLS (mTLS), both cert and key must be specified together, or both omitted. +kubebuilder:validation:MinProperties=1 +kubebuilder:validation:XValidation:rule="(has(self.cert) && has(self.key)) || (!has(self.cert) && !has(self.key))",message="cert and key must both be specified together for mutual TLS, or both be omitted"
func (*TLSConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
func (*TLSConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (TLSConfig) OpenAPIModelName ¶
OpenAPIModelName returns the OpenAPI model name for this type.
func (TLSConfig) SwaggerDoc ¶
type TelemeterClientConfig ¶
type TelemeterClientConfig struct {
// nodeSelector defines the nodes on which the Pods are scheduled.
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// When specified, nodeSelector must contain at least 1 entry and must not contain more than 10 entries.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// resources defines the compute resource requests and limits for the Telemeter Client container.
// This includes CPU, memory and HugePages constraints to help control scheduling and resource usage.
// When not specified, defaults are used by the platform. Requests cannot exceed limits.
// This field is optional.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 1m
// limit: null
// - name: memory
// request: 40Mi
// limit: null
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// tolerations defines tolerations for the pods.
// tolerations is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// Defaults are empty/unset.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=atomic
// +optional
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// topologySpreadConstraints defines rules for how Telemeter Client Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Default is empty list.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}
TelemeterClientConfig provides configuration options for the Telemeter Client component that runs in the `openshift-monitoring` namespace. The Telemeter Client collects selected monitoring metrics and forwards them to Red Hat for telemetry purposes. At least one field must be specified. +kubebuilder:validation:MinProperties=1
func (*TelemeterClientConfig) DeepCopy ¶
func (in *TelemeterClientConfig) DeepCopy() *TelemeterClientConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TelemeterClientConfig.
func (*TelemeterClientConfig) DeepCopyInto ¶
func (in *TelemeterClientConfig) DeepCopyInto(out *TelemeterClientConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (TelemeterClientConfig) OpenAPIModelName ¶
func (in TelemeterClientConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (TelemeterClientConfig) SwaggerDoc ¶
func (TelemeterClientConfig) SwaggerDoc() map[string]string
type ThanosQuerierConfig ¶
type ThanosQuerierConfig struct {
// logLevel defines the verbosity of logs emitted by Thanos Querier.
// logLevel is optional.
// Allowed values are Error, Warn, Info, and Debug.
// When set to Error, only errors will be logged.
// When set to Warn, both warnings and errors will be logged.
// When set to Info, general information, warnings, and errors will all be logged.
// When set to Debug, detailed debugging information will be logged.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
// The current default value is `Info`.
// +optional
LogLevel LogLevel `json:"logLevel,omitempty"`
// requestLogging configures request logging for Thanos Querier.
// requestLogging is optional.
// When provided, the policy field within is required.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
// The current default behavior is to not log any requests.
// +optional
RequestLogging ThanosQuerierRequestLoggingConfig `json:"requestLogging,omitempty,omitzero"`
// crossOriginRequestPolicy configures the CORS (Cross-Origin Resource Sharing) policy
// for Thanos Querier's HTTP endpoints.
// crossOriginRequestPolicy is optional.
// Valid values are "AllowAll" and "DenyAll".
// When set to "AllowAll", CORS headers are added to responses, allowing cross-origin requests from any domain.
// When set to "DenyAll", no CORS headers are added and cross-origin requests are rejected by the browser.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, that is subject to change over time.
// The current default value is "DenyAll".
// +optional
CrossOriginRequestPolicy CrossOriginRequestPolicy `json:"crossOriginRequestPolicy,omitempty"`
// nodeSelector defines the nodes on which the Pods are scheduled.
// nodeSelector is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// The current default value is `kubernetes.io/os: linux`.
// When specified, nodeSelector must contain at least 1 entry and must not contain more than 10 entries.
// +optional
// +kubebuilder:validation:MinProperties=1
// +kubebuilder:validation:MaxProperties=10
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// resources defines the compute resource requests and limits for the Thanos Querier container.
// resources is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// Requests cannot exceed limits.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// This is a simplified API that maps to Kubernetes ResourceRequirements.
// The current default values are:
// resources:
// - name: cpu
// request: 5m
// - name: memory
// request: 12Mi
// Maximum length for this list is 5.
// Minimum length for this list is 1.
// Each resource name must be unique within this list.
// +optional
// +listType=map
// +listMapKey=name
// +kubebuilder:validation:MaxItems=5
// +kubebuilder:validation:MinItems=1
Resources []ContainerResource `json:"resources,omitempty"`
// tolerations defines tolerations for the pods.
// tolerations is optional.
//
// When omitted, this means the user has no opinion and the platform is left
// to choose reasonable defaults. These defaults are subject to change over time.
// Defaults are empty/unset.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=atomic
// +optional
Tolerations []v1.Toleration `json:"tolerations,omitempty"`
// topologySpreadConstraints defines rules for how Thanos Querier Pods should be distributed
// across topology domains such as zones, nodes, or other user-defined labels.
// topologySpreadConstraints is optional.
// This helps improve high availability and resource efficiency by avoiding placing
// too many replicas in the same failure domain.
//
// When omitted, this means no opinion and the platform is left to choose a default, which is subject to change over time.
// This field maps directly to the `topologySpreadConstraints` field in the Pod spec.
// Defaults are empty/unset.
// Maximum length for this list is 10.
// Minimum length for this list is 1.
// Entries must have unique topologyKey and whenUnsatisfiable pairs.
// +kubebuilder:validation:MaxItems=10
// +kubebuilder:validation:MinItems=1
// +listType=map
// +listMapKey=topologyKey
// +listMapKey=whenUnsatisfiable
// +optional
TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"`
}
ThanosQuerierConfig provides configuration options for the Thanos Querier component that runs in the `openshift-monitoring` namespace. At least one field must be specified; an empty thanosQuerierConfig object is not allowed. +kubebuilder:validation:MinProperties=1
func (*ThanosQuerierConfig) DeepCopy ¶
func (in *ThanosQuerierConfig) DeepCopy() *ThanosQuerierConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThanosQuerierConfig.
func (*ThanosQuerierConfig) DeepCopyInto ¶
func (in *ThanosQuerierConfig) DeepCopyInto(out *ThanosQuerierConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ThanosQuerierConfig) OpenAPIModelName ¶
func (in ThanosQuerierConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ThanosQuerierConfig) SwaggerDoc ¶
func (ThanosQuerierConfig) SwaggerDoc() map[string]string
type ThanosQuerierRequestLoggingConfig ¶
type ThanosQuerierRequestLoggingConfig struct {
// policy determines which HTTP and gRPC requests are logged by Thanos Querier.
// Valid values are "AllRequests" and "NoRequests".
// When set to "AllRequests", every request received by Thanos Querier is logged with method, path, and response status.
// The log level for request logs is derived from the logLevel field.
// When set to "NoRequests", request logging is turned off.
// +required
Policy RequestLoggingPolicy `json:"policy,omitempty"`
}
ThanosQuerierRequestLoggingConfig configures request logging for Thanos Querier.
func (*ThanosQuerierRequestLoggingConfig) DeepCopy ¶
func (in *ThanosQuerierRequestLoggingConfig) DeepCopy() *ThanosQuerierRequestLoggingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThanosQuerierRequestLoggingConfig.
func (*ThanosQuerierRequestLoggingConfig) DeepCopyInto ¶
func (in *ThanosQuerierRequestLoggingConfig) DeepCopyInto(out *ThanosQuerierRequestLoggingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ThanosQuerierRequestLoggingConfig) OpenAPIModelName ¶
func (in ThanosQuerierRequestLoggingConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (ThanosQuerierRequestLoggingConfig) SwaggerDoc ¶
func (ThanosQuerierRequestLoggingConfig) SwaggerDoc() map[string]string
type UppercaseActionConfig ¶
type UppercaseActionConfig struct {
// targetLabel is the label name where the upper-cased value is written.
// Must be between 1 and 128 characters in length.
// +required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
TargetLabel string `json:"targetLabel,omitempty"`
}
UppercaseActionConfig configures the Uppercase action. Maps the concatenated source_labels to their upper case and writes to target_label. Requires Prometheus >= v2.36.0.
func (*UppercaseActionConfig) DeepCopy ¶
func (in *UppercaseActionConfig) DeepCopy() *UppercaseActionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UppercaseActionConfig.
func (*UppercaseActionConfig) DeepCopyInto ¶
func (in *UppercaseActionConfig) DeepCopyInto(out *UppercaseActionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (UppercaseActionConfig) OpenAPIModelName ¶
func (in UppercaseActionConfig) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (UppercaseActionConfig) SwaggerDoc ¶
func (UppercaseActionConfig) SwaggerDoc() map[string]string
type UserAlertmanagerConfigSelection ¶
type UserAlertmanagerConfigSelection string
UserAlertmanagerConfigSelection controls whether the platform Alertmanager selects AlertmanagerConfig resources from user-defined namespaces. +enum
const ( // UserAlertmanagerConfigSelectionSelectable enables user-defined namespaces to be selected // for AlertmanagerConfig lookups on the platform Alertmanager. UserAlertmanagerConfigSelectionSelectable UserAlertmanagerConfigSelection = "Selectable" // UserAlertmanagerConfigSelectionNone disables user-defined namespaces from being selected // for AlertmanagerConfig lookups on the platform Alertmanager. UserAlertmanagerConfigSelectionNone UserAlertmanagerConfigSelection = "None" )
type UserDefinedMode ¶
type UserDefinedMode string
UserDefinedMode specifies mode for UserDefine Monitoring +enum
const ( // UserDefinedDisabled disables monitoring for user-defined projects. This restricts the default monitoring stack, installed in the openshift-monitoring project, to monitor only platform namespaces, which prevents any custom monitoring configurations or resources from being applied to user-defined namespaces. UserDefinedDisabled UserDefinedMode = "Disabled" // UserDefinedNamespaceIsolated enables monitoring for user-defined projects with namespace-scoped tenancy. This ensures that metrics, alerts, and monitoring data are isolated at the namespace level. UserDefinedNamespaceIsolated UserDefinedMode = "NamespaceIsolated" )
type UserDefinedMonitoring ¶
type UserDefinedMonitoring struct {
// mode defines the different configurations of UserDefinedMonitoring
// Valid values are Disabled and NamespaceIsolated
// Disabled disables monitoring for user-defined projects. This restricts the default monitoring stack, installed in the openshift-monitoring project, to monitor only platform namespaces, which prevents any custom monitoring configurations or resources from being applied to user-defined namespaces.
// NamespaceIsolated enables monitoring for user-defined projects with namespace-scoped tenancy. This ensures that metrics, alerts, and monitoring data are isolated at the namespace level.
// The current default value is `Disabled`.
// +required
// +kubebuilder:validation:Enum=Disabled;NamespaceIsolated
Mode UserDefinedMode `json:"mode"`
}
UserDefinedMonitoring config for user-defined projects.
func (*UserDefinedMonitoring) DeepCopy ¶
func (in *UserDefinedMonitoring) DeepCopy() *UserDefinedMonitoring
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDefinedMonitoring.
func (*UserDefinedMonitoring) DeepCopyInto ¶
func (in *UserDefinedMonitoring) DeepCopyInto(out *UserDefinedMonitoring)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (UserDefinedMonitoring) OpenAPIModelName ¶
func (in UserDefinedMonitoring) OpenAPIModelName() string
OpenAPIModelName returns the OpenAPI model name for this type.
func (UserDefinedMonitoring) SwaggerDoc ¶
func (UserDefinedMonitoring) SwaggerDoc() map[string]string
type VerbosityLevel ¶
type VerbosityLevel string
VerbosityLevel defines the verbosity of log messages for Metrics Server. +kubebuilder:validation:Enum=Errors;Info;Trace;TraceAll
const ( // VerbosityLevelErrors means only critical messages and errors are logged. VerbosityLevelErrors VerbosityLevel = "Errors" // VerbosityLevelInfo means basic informational messages are logged. VerbosityLevelInfo VerbosityLevel = "Info" // VerbosityLevelTrace means extended information useful for general debugging is logged. VerbosityLevelTrace VerbosityLevel = "Trace" // VerbosityLevelTraceAll means detailed information about metric scraping operations is logged. VerbosityLevelTraceAll VerbosityLevel = "TraceAll" )
type VolumeForceDetachPolicy ¶
type VolumeForceDetachPolicy string
VolumeForceDetachPolicy describes the conditions under which volumes are force detached from an unhealthy node. Valid values are "OnUnmountTimeout" and "OnOutOfServiceTaintOnly". +enum +kubebuilder:validation:Enum=OnUnmountTimeout;OnOutOfServiceTaintOnly
const ( // VolumeForceDetachOnUnmountTimeout force detaches volumes from unhealthy nodes // once the maximum unmount time is exceeded. VolumeForceDetachOnUnmountTimeout VolumeForceDetachPolicy = "OnUnmountTimeout" // VolumeForceDetachOnOutOfServiceTaintOnly force detaches volumes only when // the node is marked out-of-service, never based on the maximum unmount time. VolumeForceDetachOnOutOfServiceTaintOnly VolumeForceDetachPolicy = "OnOutOfServiceTaintOnly" )