kubernetes-client-0.1.0.0: Client library for Kubernetes

Safe HaskellNone
LanguageHaskell2010

Kubernetes.Client.Config

Synopsis

Documentation

setMasterURI Source #

Arguments

:: Text

Master URI

-> KubernetesClientConfig 
-> KubernetesClientConfig 

Sets the master URI in the KubernetesClientConfig.

disableValidateAuthMethods :: KubernetesClientConfig -> KubernetesClientConfig Source #

Disables the client-side auth methods validation. This is necessary if you are using client cert authentication.

setTokenAuth Source #

Arguments

:: Text

Authentication token

-> KubernetesClientConfig 
-> KubernetesClientConfig 

Configures the KubernetesClientConfig to use token authentication.

newManager :: ClientParams -> IO Manager Source #

Creates a Manager that can handle TLS.

defaultTLSClientParams :: IO ClientParams Source #

Default TLS settings using the system CA store.

disableServerNameValidation :: ClientParams -> ClientParams Source #

Don't check whether the cert presented by the server matches the name of the server you are connecting to. This is necessary if you specify the server host by its IP address.

disableServerCertValidation :: ClientParams -> ClientParams Source #

Insecure mode. The client will not validate the server cert at all.

setClientCert :: Credential -> ClientParams -> ClientParams Source #

Use a client cert for authentication.

parsePEMCerts :: ByteString -> Either String [SignedCertificate] Source #

Parses a PEM-encoded ByteString into a list of certificates.

loadPEMCerts :: (MonadIO m, MonadThrow m) => FilePath -> m [SignedCertificate] Source #

Loads certificates from a PEM-encoded file.