#[non_exhaustive]pub struct MasterAuth {
pub username: String,
pub password: String,
pub client_certificate_config: Option<ClientCertificateConfig>,
pub cluster_ca_certificate: String,
pub client_certificate: String,
pub client_key: String,
}Expand description
The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.username: StringThe username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string).
Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
password: StringThe password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty.
Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
client_certificate_config: Option<ClientCertificateConfig>Configuration for client certificate authentication on the cluster. For clusters before v1.12, if no configuration is specified, a client certificate is issued.
cluster_ca_certificate: StringOutput only. Base64-encoded public certificate that is the root of trust for the cluster.
client_certificate: StringOutput only. Base64-encoded public certificate used by clients to authenticate to the cluster endpoint. Issued only if client_certificate_config is set.
client_key: StringOutput only. Base64-encoded private key used by clients to authenticate to the cluster endpoint.
Implementations§
Source§impl MasterAuth
impl MasterAuth
Sourcepub fn set_username<T: Into<String>>(self, v: T) -> Self
pub fn set_username<T: Into<String>>(self, v: T) -> Self
Sets the value of username.
Sourcepub fn set_password<T: Into<String>>(self, v: T) -> Self
pub fn set_password<T: Into<String>>(self, v: T) -> Self
Sets the value of password.
Sourcepub fn set_client_certificate_config<T: Into<Option<ClientCertificateConfig>>>(
self,
v: T,
) -> Self
pub fn set_client_certificate_config<T: Into<Option<ClientCertificateConfig>>>( self, v: T, ) -> Self
Sets the value of client_certificate_config.
Sourcepub fn set_cluster_ca_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_ca_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_ca_certificate.
Sourcepub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
pub fn set_client_certificate<T: Into<String>>(self, v: T) -> Self
Sets the value of client_certificate.
Sourcepub fn set_client_key<T: Into<String>>(self, v: T) -> Self
pub fn set_client_key<T: Into<String>>(self, v: T) -> Self
Sets the value of client_key.
Trait Implementations§
Source§impl Clone for MasterAuth
impl Clone for MasterAuth
Source§fn clone(&self) -> MasterAuth
fn clone(&self) -> MasterAuth
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more