diff --git a/api/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go index 225972ad..33116c29 100644 --- a/api/v1beta1/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -45,6 +45,11 @@ func (in *APIServerConfig) DeepCopyInto(out *APIServerConfig) { *out = new(TLSConfig) (*in).DeepCopyInto(*out) } + if in.Authorization != nil { + in, out := &in.Authorization, &out.Authorization + *out = new(Authorization) + (*in).DeepCopyInto(*out) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIServerConfig. @@ -72,6 +77,26 @@ func (in *ArbitraryFSAccessThroughSMsConfig) DeepCopy() *ArbitraryFSAccessThroug return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Authorization) DeepCopyInto(out *Authorization) { + *out = *in + if in.Credentials != nil { + in, out := &in.Credentials, &out.Credentials + *out = new(v1.SecretKeySelector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Authorization. +func (in *Authorization) DeepCopy() *Authorization { + if in == nil { + return nil + } + out := new(Authorization) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *BasicAuth) DeepCopyInto(out *BasicAuth) { *out = *in @@ -384,6 +409,11 @@ func (in *Endpoint) DeepCopyInto(out *Endpoint) { *out = new(OAuth2) (*in).DeepCopyInto(*out) } + if in.Authorization != nil { + in, out := &in.Authorization, &out.Authorization + *out = new(Authorization) + (*in).DeepCopyInto(*out) + } if in.TLSConfig != nil { in, out := &in.TLSConfig, &out.TLSConfig *out = new(TLSConfig) @@ -832,6 +862,11 @@ func (in *PodMetricsEndpoint) DeepCopyInto(out *PodMetricsEndpoint) { *out = new(OAuth2) (*in).DeepCopyInto(*out) } + if in.Authorization != nil { + in, out := &in.Authorization, &out.Authorization + *out = new(Authorization) + (*in).DeepCopyInto(*out) + } if in.VMScrapeParams != nil { in, out := &in.VMScrapeParams, &out.VMScrapeParams *out = new(VMScrapeParams) @@ -1455,6 +1490,11 @@ func (in *TargetEndpoint) DeepCopyInto(out *TargetEndpoint) { *out = new(BasicAuth) (*in).DeepCopyInto(*out) } + if in.Authorization != nil { + in, out := &in.Authorization, &out.Authorization + *out = new(Authorization) + (*in).DeepCopyInto(*out) + } if in.MetricRelabelConfigs != nil { in, out := &in.MetricRelabelConfigs, &out.MetricRelabelConfigs *out = make([]*RelabelConfig, len(*in)) @@ -1780,6 +1820,11 @@ func (in *VMAgentRemoteWriteSpec) DeepCopyInto(out *VMAgentRemoteWriteSpec) { *out = new(string) **out = **in } + if in.Headers != nil { + in, out := &in.Headers, &out.Headers + *out = make([]string, len(*in)) + copy(*out, *in) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMAgentRemoteWriteSpec. @@ -3623,6 +3668,11 @@ func (in *VMNodeScrapeSpec) DeepCopyInto(out *VMNodeScrapeSpec) { *out = new(OAuth2) (*in).DeepCopyInto(*out) } + if in.Authorization != nil { + in, out := &in.Authorization, &out.Authorization + *out = new(Authorization) + (*in).DeepCopyInto(*out) + } if in.TLSConfig != nil { in, out := &in.TLSConfig, &out.TLSConfig *out = new(TLSConfig) @@ -3905,6 +3955,11 @@ func (in *VMProbeSpec) DeepCopyInto(out *VMProbeSpec) { *out = new(OAuth2) (*in).DeepCopyInto(*out) } + if in.Authorization != nil { + in, out := &in.Authorization, &out.Authorization + *out = new(Authorization) + (*in).DeepCopyInto(*out) + } if in.TLSConfig != nil { in, out := &in.TLSConfig, &out.TLSConfig *out = new(TLSConfig) @@ -4163,6 +4218,11 @@ func (in *VMScrapeParams) DeepCopyInto(out *VMScrapeParams) { *out = new(ProxyAuth) (*in).DeepCopyInto(*out) } + if in.Headers != nil { + in, out := &in.Headers, &out.Headers + *out = make([]string, len(*in)) + copy(*out, *in) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMScrapeParams. diff --git a/config/crd/bases/operator.victoriametrics.com_vmagents.yaml b/config/crd/bases/operator.victoriametrics.com_vmagents.yaml index 07268727..44c68f96 100644 --- a/config/crd/bases/operator.victoriametrics.com_vmagents.yaml +++ b/config/crd/bases/operator.victoriametrics.com_vmagents.yaml @@ -41,6 +41,34 @@ spec: of the cluster and will discover API servers automatically and use the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/. properties: + authorization: + description: Authorization configures generic authorization params + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: BasicAuth allow an endpoint to authenticate over basic authentication @@ -1198,6 +1226,13 @@ spec: required: - key type: object + headers: + description: 'Headers allow configuring custom http headers + Must be in form of semicolon separated header with value e.g. + headerName: headerValue vmagent supports since 1.79.0 version' + items: + type: string + type: array inlineUrlRelabelConfig: description: InlineUrlRelabelConfig defines relabeling config for remoteWriteURL, it can be defined at crd spec. @@ -1540,6 +1575,11 @@ spec: description: Path to directory where temporary data for remote write component is stored (default vmagent-remotewrite-data) type: string + useMultiTenantMode: + description: Configures vmagent in multi-tenant mode with direct + cluster support docs https://docs.victoriametrics.com/vmagent.html#multitenancy + it's global setting and affects all remote storage configurations + type: boolean type: object replicaCount: description: ReplicaCount is the expected size of the VMAgent cluster. diff --git a/config/crd/bases/operator.victoriametrics.com_vmalertmanagers.yaml b/config/crd/bases/operator.victoriametrics.com_vmalertmanagers.yaml index 824c403d..a11b4302 100644 --- a/config/crd/bases/operator.victoriametrics.com_vmalertmanagers.yaml +++ b/config/crd/bases/operator.victoriametrics.com_vmalertmanagers.yaml @@ -246,8 +246,8 @@ spec: extraArgs: additionalProperties: type: string - description: 'ExtraArgs that will be passed to VMAlertmanager pod for example - log.level: debug' + description: 'ExtraArgs that will be passed to VMAlertmanager pod + for example log.level: debug' type: object extraEnvs: description: ExtraEnvs that will be added to VMAlertmanager pod diff --git a/config/crd/bases/operator.victoriametrics.com_vmclusters.yaml b/config/crd/bases/operator.victoriametrics.com_vmclusters.yaml index 0bcdc36b..a1035eed 100644 --- a/config/crd/bases/operator.victoriametrics.com_vmclusters.yaml +++ b/config/crd/bases/operator.victoriametrics.com_vmclusters.yaml @@ -713,8 +713,9 @@ spec: node network namespace type: boolean hpa: - description: EmbeddedHPA embeds HorizontalPodAutoScaler spec v2. - https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2beta2/ + description: Configures horizontal pod autoscaling. Note, enabling + this option disables vmselect to vmselect communication. In + most cases it's not an issue. type: object x-kubernetes-preserve-unknown-fields: true image: diff --git a/config/crd/bases/operator.victoriametrics.com_vmnodescrapes.yaml b/config/crd/bases/operator.victoriametrics.com_vmnodescrapes.yaml index 96271ea5..8f5e3407 100644 --- a/config/crd/bases/operator.victoriametrics.com_vmnodescrapes.yaml +++ b/config/crd/bases/operator.victoriametrics.com_vmnodescrapes.yaml @@ -35,6 +35,34 @@ spec: spec: description: VMNodeScrapeSpec defines specification for VMNodeScrape. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must be + a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must be + defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -404,7 +432,7 @@ spec: type: string type: array tlsConfig: - description: TLSConfig configuration to use when scraping the node + description: TLSConfig specifies TLSConfig configuration parameters. properties: ca: description: Stuct containing the CA cert to use for the targets. @@ -529,6 +557,14 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape + targets must be in of semicolon separated header with it''s + value eg: headerName: headerValue vmagent supports since 1.79.0 + version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/bases/operator.victoriametrics.com_vmpodscrapes.yaml b/config/crd/bases/operator.victoriametrics.com_vmpodscrapes.yaml index b98197e1..b358d54f 100644 --- a/config/crd/bases/operator.victoriametrics.com_vmpodscrapes.yaml +++ b/config/crd/bases/operator.victoriametrics.com_vmpodscrapes.yaml @@ -57,6 +57,34 @@ spec: description: PodMetricsEndpoint defines a scrapeable endpoint of a Kubernetes Pod serving Prometheus metrics. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -528,6 +556,14 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape + targets must be in of semicolon separated header with + it''s value eg: headerName: headerValue vmagent supports + since 1.79.0 version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/bases/operator.victoriametrics.com_vmprobes.yaml b/config/crd/bases/operator.victoriametrics.com_vmprobes.yaml index 97b15145..c974fdd5 100644 --- a/config/crd/bases/operator.victoriametrics.com_vmprobes.yaml +++ b/config/crd/bases/operator.victoriametrics.com_vmprobes.yaml @@ -35,6 +35,34 @@ spec: spec: description: VMProbeSpec contains specification parameters for a Probe. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must be + a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must be + defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -558,6 +586,14 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape + targets must be in of semicolon separated header with it''s + value eg: headerName: headerValue vmagent supports since 1.79.0 + version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/bases/operator.victoriametrics.com_vmservicescrapes.yaml b/config/crd/bases/operator.victoriametrics.com_vmservicescrapes.yaml index c209e93d..5d77d69d 100644 --- a/config/crd/bases/operator.victoriametrics.com_vmservicescrapes.yaml +++ b/config/crd/bases/operator.victoriametrics.com_vmservicescrapes.yaml @@ -51,6 +51,34 @@ spec: description: Endpoint defines a scrapeable endpoint serving Prometheus metrics. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -523,6 +551,14 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape + targets must be in of semicolon separated header with + it''s value eg: headerName: headerValue vmagent supports + since 1.79.0 version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/bases/operator.victoriametrics.com_vmstaticscrapes.yaml b/config/crd/bases/operator.victoriametrics.com_vmstaticscrapes.yaml index d8ebcbb3..98e558ad 100644 --- a/config/crd/bases/operator.victoriametrics.com_vmstaticscrapes.yaml +++ b/config/crd/bases/operator.victoriametrics.com_vmstaticscrapes.yaml @@ -46,6 +46,34 @@ spec: items: description: TargetEndpoint defines single static target endpoint. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -520,6 +548,14 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape + targets must be in of semicolon separated header with + it''s value eg: headerName: headerValue vmagent supports + since 1.79.0 version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/legacy/operator.victoriametrics.com_vmagents.yaml b/config/crd/legacy/operator.victoriametrics.com_vmagents.yaml index 0782177a..e36da7ed 100644 --- a/config/crd/legacy/operator.victoriametrics.com_vmagents.yaml +++ b/config/crd/legacy/operator.victoriametrics.com_vmagents.yaml @@ -41,6 +41,34 @@ spec: of the cluster and will discover API servers automatically and use the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/. properties: + authorization: + description: Authorization configures generic authorization params + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: BasicAuth allow an endpoint to authenticate over basic authentication @@ -1174,6 +1202,13 @@ spec: required: - key type: object + headers: + description: 'Headers allow configuring custom http headers Must + be in form of semicolon separated header with value e.g. headerName: + headerValue vmagent supports since 1.79.0 version' + items: + type: string + type: array inlineUrlRelabelConfig: description: InlineUrlRelabelConfig defines relabeling config for remoteWriteURL, it can be defined at crd spec. @@ -1513,6 +1548,11 @@ spec: description: Path to directory where temporary data for remote write component is stored (default vmagent-remotewrite-data) type: string + useMultiTenantMode: + description: Configures vmagent in multi-tenant mode with direct + cluster support docs https://docs.victoriametrics.com/vmagent.html#multitenancy + it's global setting and affects all remote storage configurations + type: boolean type: object replicaCount: description: ReplicaCount is the expected size of the VMAgent cluster. diff --git a/config/crd/legacy/operator.victoriametrics.com_vmalertmanagers.yaml b/config/crd/legacy/operator.victoriametrics.com_vmalertmanagers.yaml index 2e2fb08c..aee8bc2a 100644 --- a/config/crd/legacy/operator.victoriametrics.com_vmalertmanagers.yaml +++ b/config/crd/legacy/operator.victoriametrics.com_vmalertmanagers.yaml @@ -242,8 +242,8 @@ spec: extraArgs: additionalProperties: type: string - description: 'ExtraArgs that will be passed to VMAlertmanager pod for example - log.level: debug' + description: 'ExtraArgs that will be passed to VMAlertmanager pod for + example log.level: debug' type: object extraEnvs: description: ExtraEnvs that will be added to VMAlertmanager pod diff --git a/config/crd/legacy/operator.victoriametrics.com_vmclusters.yaml b/config/crd/legacy/operator.victoriametrics.com_vmclusters.yaml index feca93b7..6be33551 100644 --- a/config/crd/legacy/operator.victoriametrics.com_vmclusters.yaml +++ b/config/crd/legacy/operator.victoriametrics.com_vmclusters.yaml @@ -704,8 +704,9 @@ spec: network namespace type: boolean hpa: - description: EmbeddedHPA embeds HorizontalPodAutoScaler spec v2. - https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2beta2/ + description: Configures horizontal pod autoscaling. Note, enabling + this option disables vmselect to vmselect communication. In most + cases it's not an issue. type: object x-kubernetes-preserve-unknown-fields: true image: diff --git a/config/crd/legacy/operator.victoriametrics.com_vmnodescrapes.yaml b/config/crd/legacy/operator.victoriametrics.com_vmnodescrapes.yaml index e1ad8fbd..6ad42526 100644 --- a/config/crd/legacy/operator.victoriametrics.com_vmnodescrapes.yaml +++ b/config/crd/legacy/operator.victoriametrics.com_vmnodescrapes.yaml @@ -35,6 +35,33 @@ spec: spec: description: VMNodeScrapeSpec defines specification for VMNodeScrape. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must be + a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -398,7 +425,7 @@ spec: type: string type: array tlsConfig: - description: TLSConfig configuration to use when scraping the node + description: TLSConfig specifies TLSConfig configuration parameters. properties: ca: description: Stuct containing the CA cert to use for the targets. @@ -522,6 +549,13 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape targets + must be in of semicolon separated header with it''s value eg: + headerName: headerValue vmagent supports since 1.79.0 version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/legacy/operator.victoriametrics.com_vmpodscrapes.yaml b/config/crd/legacy/operator.victoriametrics.com_vmpodscrapes.yaml index 4315679c..46acc0fd 100644 --- a/config/crd/legacy/operator.victoriametrics.com_vmpodscrapes.yaml +++ b/config/crd/legacy/operator.victoriametrics.com_vmpodscrapes.yaml @@ -57,6 +57,34 @@ spec: description: PodMetricsEndpoint defines a scrapeable endpoint of a Kubernetes Pod serving Prometheus metrics. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -523,6 +551,14 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape + targets must be in of semicolon separated header with it''s + value eg: headerName: headerValue vmagent supports since + 1.79.0 version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/legacy/operator.victoriametrics.com_vmprobes.yaml b/config/crd/legacy/operator.victoriametrics.com_vmprobes.yaml index 3855b49f..78eaf6a8 100644 --- a/config/crd/legacy/operator.victoriametrics.com_vmprobes.yaml +++ b/config/crd/legacy/operator.victoriametrics.com_vmprobes.yaml @@ -35,6 +35,33 @@ spec: spec: description: VMProbeSpec contains specification parameters for a Probe. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must be + a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -550,6 +577,13 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape targets + must be in of semicolon separated header with it''s value eg: + headerName: headerValue vmagent supports since 1.79.0 version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/legacy/operator.victoriametrics.com_vmservicescrapes.yaml b/config/crd/legacy/operator.victoriametrics.com_vmservicescrapes.yaml index a37ba864..be7be7da 100644 --- a/config/crd/legacy/operator.victoriametrics.com_vmservicescrapes.yaml +++ b/config/crd/legacy/operator.victoriametrics.com_vmservicescrapes.yaml @@ -51,6 +51,34 @@ spec: description: Endpoint defines a scrapeable endpoint serving Prometheus metrics. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -518,6 +546,14 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape + targets must be in of semicolon separated header with it''s + value eg: headerName: headerValue vmagent supports since + 1.79.0 version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: diff --git a/config/crd/legacy/operator.victoriametrics.com_vmstaticscrapes.yaml b/config/crd/legacy/operator.victoriametrics.com_vmstaticscrapes.yaml index b214e431..cabb3190 100644 --- a/config/crd/legacy/operator.victoriametrics.com_vmstaticscrapes.yaml +++ b/config/crd/legacy/operator.victoriametrics.com_vmstaticscrapes.yaml @@ -46,6 +46,34 @@ spec: items: description: TargetEndpoint defines single static target endpoint. properties: + authorization: + description: Authorization with http header Authorization + properties: + credentials: + description: Reference to the secret with value for authorization + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + credentialsFile: + description: File with value for authorization + type: string + type: + description: Type of authorization, default to bearer + type: string + type: object basicAuth: description: 'BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' @@ -515,6 +543,14 @@ spec: type: boolean disable_keep_alive: type: boolean + headers: + description: 'Headers allows sending custom headers to scrape + targets must be in of semicolon separated header with it''s + value eg: headerName: headerValue vmagent supports since + 1.79.0 version' + items: + type: string + type: array metric_relabel_debug: type: boolean proxy_client_config: