Class APIServerConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.APIServerConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<APIServerConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class APIServerConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<APIServerConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description APIServerConfig()No args constructor for use in serializationAPIServerConfig(Authorization authorization, BasicAuth basicAuth, String bearerToken, String bearerTokenFile, String host, TLSConfig tlsConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description APIServerConfigBuilderedit()Map<String,Object>getAdditionalProperties()AuthorizationgetAuthorization()APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.BasicAuthgetBasicAuth()APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.StringgetBearerToken()*Warning: this field shouldn't be used because the token value appears in clear-text.StringgetBearerTokenFile()File to read bearer token for accessing apiserver.StringgetHost()Kubernetes API address consisting of a hostname or IP address followed by an optional port number.TLSConfiggetTlsConfig()APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuthorization(Authorization authorization)APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.voidsetBasicAuth(BasicAuth basicAuth)APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.voidsetBearerToken(String bearerToken)*Warning: this field shouldn't be used because the token value appears in clear-text.voidsetBearerTokenFile(String bearerTokenFile)File to read bearer token for accessing apiserver.voidsetHost(String host)Kubernetes API address consisting of a hostname or IP address followed by an optional port number.voidsetTlsConfig(TLSConfig tlsConfig)APIServerConfig defines how the Prometheus server connects to the Kubernetes API server.APIServerConfigBuildertoBuilder()
-
-
-
Method Detail
-
getAuthorization
public Authorization getAuthorization()
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
-
setAuthorization
public void setAuthorization(Authorization authorization)
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
-
getBasicAuth
public BasicAuth getBasicAuth()
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
-
setBasicAuth
public void setBasicAuth(BasicAuth basicAuth)
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
-
getBearerToken
public String getBearerToken()
*Warning: this field shouldn't be used because the token value appears in clear-text. Prefer using `authorization`.*Deprecated: this will be removed in a future release.
-
setBearerToken
public void setBearerToken(String bearerToken)
*Warning: this field shouldn't be used because the token value appears in clear-text. Prefer using `authorization`.*Deprecated: this will be removed in a future release.
-
getBearerTokenFile
public String getBearerTokenFile()
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`.
-
setBearerTokenFile
public void setBearerTokenFile(String bearerTokenFile)
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`.
-
getHost
public String getHost()
Kubernetes API address consisting of a hostname or IP address followed by an optional port number.
-
setHost
public void setHost(String host)
Kubernetes API address consisting of a hostname or IP address followed by an optional port number.
-
getTlsConfig
public TLSConfig getTlsConfig()
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
-
setTlsConfig
public void setTlsConfig(TLSConfig tlsConfig)
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
-
edit
public APIServerConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<APIServerConfigBuilder>
-
toBuilder
public APIServerConfigBuilder toBuilder()
-
-