| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Kubernetes.Client.Config
Synopsis
- setMasterURI :: Text -> KubernetesClientConfig -> KubernetesClientConfig
- disableValidateAuthMethods :: KubernetesClientConfig -> KubernetesClientConfig
- setTokenAuth :: Text -> KubernetesClientConfig -> KubernetesClientConfig
- newManager :: ClientParams -> IO Manager
- defaultTLSClientParams :: IO ClientParams
- clientHooksL :: Lens' ClientParams ClientHooks
- onServerCertificateL :: Lens' ClientParams (CertificateStore -> ValidationCache -> ServiceID -> CertificateChain -> IO [FailedReason])
- disableServerNameValidation :: ClientParams -> ClientParams
- disableServerCertValidation :: ClientParams -> ClientParams
- setCAStore :: [SignedCertificate] -> ClientParams -> ClientParams
- onCertificateRequestL :: Lens' ClientParams (([CertificateType], Maybe [HashAndSignatureAlgorithm], [DistinguishedName]) -> IO (Maybe (CertificateChain, PrivKey)))
- setClientCert :: Credential -> ClientParams -> ClientParams
- parsePEMCerts :: ByteString -> Either String [SignedCertificate]
- data ParsePEMCertsException = ParsePEMCertsException String
- loadPEMCerts :: (MonadIO m, MonadThrow m) => FilePath -> m [SignedCertificate]
- serviceAccountDir :: FilePath
- cluster :: (MonadIO m, MonadThrow m) => m (Manager, KubernetesClientConfig)
Documentation
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.
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.
onServerCertificateL :: Lens' ClientParams (CertificateStore -> ValidationCache -> ServiceID -> CertificateChain -> IO [FailedReason]) Source #
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.
setCAStore :: [SignedCertificate] -> ClientParams -> ClientParams Source #
Use a custom CA store.
onCertificateRequestL :: Lens' ClientParams (([CertificateType], Maybe [HashAndSignatureAlgorithm], [DistinguishedName]) -> IO (Maybe (CertificateChain, PrivKey))) Source #
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.
data ParsePEMCertsException Source #
Constructors
| ParsePEMCertsException String |
Instances
| Show ParsePEMCertsException Source # | |
Defined in Kubernetes.Client.Config Methods showsPrec :: Int -> ParsePEMCertsException -> ShowS # show :: ParsePEMCertsException -> String # showList :: [ParsePEMCertsException] -> ShowS # | |
| Exception ParsePEMCertsException Source # | |
Defined in Kubernetes.Client.Config | |
loadPEMCerts :: (MonadIO m, MonadThrow m) => FilePath -> m [SignedCertificate] Source #
Loads certificates from a PEM-encoded file.
cluster :: (MonadIO m, MonadThrow m) => m (Manager, KubernetesClientConfig) Source #