import { IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1ProxyConfig } from "./ProxyConfig.js"; import { IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1Authorization } from "./Authorization.js"; import { IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1BasicAuth } from "./BasicAuth.js"; import { IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1TLSConfig } from "./TLSConfig.js"; import { IIoK8sApiCoreV1SecretKeySelector } from "kubernetes-models/v1/SecretKeySelector"; import { ModelData, Model } from "@kubernetes-models/base"; /** * APIServerConfig defines how the Prometheus server connects to the Kubernetes API server. * * More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config */ export interface IAPIServerConfig extends IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1ProxyConfig { /** * authorization section for the API server. * * Cannot be set at the same time as `basicAuth`, `bearerToken`, or * `bearerTokenFile`. */ "authorization"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1Authorization; /** * basicAuth configuration for the API server. * * Cannot be set at the same time as `authorization`, `bearerToken`, or * `bearerTokenFile`. */ "basicAuth"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1BasicAuth; /** * bearerToken is deprecated: this will be removed in a future release. * \*Warning: this field shouldn't be used because the token value appears * in clear-text. Prefer using `authorization`.\* */ "bearerToken"?: string; /** * bearerTokenFile defines the file to read bearer token for accessing apiserver. * * Cannot be set at the same time as `basicAuth`, `authorization`, or `bearerToken`. * * Deprecated: this will be removed in a future release. Prefer using `authorization`. */ "bearerTokenFile"?: string; /** * host defines the Kubernetes API address consisting of a hostname or IP address followed * by an optional port number. */ "host": string; /** * tlsConfig to use for the API server. */ "tlsConfig"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1TLSConfig; } /** * APIServerConfig defines how the Prometheus server connects to the Kubernetes API server. * * More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config */ export declare class APIServerConfig extends Model implements IAPIServerConfig { "noProxy"?: string; "proxyConnectHeader"?: { [key: string]: Array; }; "proxyFromEnvironment"?: boolean; "proxyUrl"?: string; "authorization"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1Authorization; "basicAuth"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1BasicAuth; "bearerToken"?: string; "bearerTokenFile"?: string; "host": string; "tlsConfig"?: IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1TLSConfig; constructor(data?: ModelData); } export type { IAPIServerConfig as IComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1APIServerConfig, APIServerConfig as ComGithubPrometheusOperatorPrometheusOperatorPkgApisMonitoringV1APIServerConfig };