Documentation ¶
Index ¶
- Variables
- func CACertificateSecretName(cr *api.PerconaServerMongoDB) string
- func CertificateSecretName(cr *api.PerconaServerMongoDB, internal bool) string
- func Config(ctx context.Context, k8sclient client.Client, cr *api.PerconaServerMongoDB) (tls.Config, error)
- func GetCertificateSans(cr *api.PerconaServerMongoDB) []string
- func IsSecretCreatedByUser(ctx context.Context, c client.Client, cr *api.PerconaServerMongoDB, ...) (bool, error)
- func Issue(hosts []string) (caCert []byte, tlsCert []byte, tlsKey []byte, err error)
- func MergePEM(target []byte, toMerge ...[]byte) ([]byte, error)
- type CertManagerController
- type NewCertManagerControllerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCertManagerNotFound = errors.New("cert-manager not found") ErrCertManagerNotReady = errors.New("cert-manager not ready") )
Functions ¶
func CACertificateSecretName ¶ added in v1.15.0
func CACertificateSecretName(cr *api.PerconaServerMongoDB) string
func CertificateSecretName ¶ added in v1.15.0
func CertificateSecretName(cr *api.PerconaServerMongoDB, internal bool) string
func Config ¶ added in v1.10.0
func Config(ctx context.Context, k8sclient client.Client, cr *api.PerconaServerMongoDB) (tls.Config, error)
Config returns tls.Config to be used in mongo.Config
func GetCertificateSans ¶ added in v1.15.0
func GetCertificateSans(cr *api.PerconaServerMongoDB) []string
func IsSecretCreatedByUser ¶ added in v1.16.1
Types ¶
type CertManagerController ¶ added in v1.15.0
type CertManagerController interface { ApplyIssuer(ctx context.Context, cr *api.PerconaServerMongoDB) (util.ApplyStatus, error) ApplyCAIssuer(ctx context.Context, cr *api.PerconaServerMongoDB) (util.ApplyStatus, error) ApplyCertificate(ctx context.Context, cr *api.PerconaServerMongoDB, internal bool) (util.ApplyStatus, error) ApplyCACertificate(ctx context.Context, cr *api.PerconaServerMongoDB) (util.ApplyStatus, error) DeleteDeprecatedIssuerIfExists(ctx context.Context, cr *api.PerconaServerMongoDB) error WaitForCerts(ctx context.Context, cr *api.PerconaServerMongoDB, secretsList ...string) error GetMergedCA(ctx context.Context, cr *api.PerconaServerMongoDB, secretNames []string) ([]byte, error) Check(ctx context.Context, config *rest.Config, ns string) error IsDryRun() bool GetClient() client.Client }
func NewCertManagerController ¶ added in v1.15.0
type NewCertManagerControllerFunc ¶ added in v1.16.0
Click to show internal directories.
Click to hide internal directories.