Documentation ¶
Index ¶
- Constants
- func CreateOrUpdateToSecret(client clientset.Interface, secretName, key string, value []byte) error
- func CreateServerCert(client clientset.Interface, ...) error
- func IsSecretExist(client clientset.Interface, secretName string) (bool, error)
- func RandomGenerateWithLength(len int) ([]byte, error)
Constants ¶
View Source
const ( // dex certificate DexCertCN = "oidc-dex" DexCertSecretName = "oidc-dex-cert" // gangway certificate GangwayCertCN = "oidc-gangway" GangwayCertSecretName = "oidc-gangway-cert" // oidc client secret ClientSecretName = "oidc-client-secret" ClientSecretKey_Gangway = "gangway" // gangway session key GangwaySecretName = "oidc-gangway-secret" GangwaySecret_SessionKey = "session-key" )
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateToSecret ¶
CreateOrUpdateToSecret create/update key=value to secret
func CreateServerCert ¶
func CreateServerCert(client clientset.Interface, pkiPath, certCN, controlPlaneHost, certSecretName string) error
CreateServerCert creates a server certificate with subject alternative name (SAN) issued by kubernetes CA cert/key pair
func IsSecretExist ¶
IsSecretExist checks if the secret in namespace kube-system exist
func RandomGenerateWithLength ¶
RandomGenerateWithLength generates random byte slice with specified length
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.