MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / GetClientCASecretName

Method GetClientCASecretName

api/v1/cluster_funcs.go:657–662  ·  view source on GitHub ↗

GetClientCASecretName get the name of the secret containing the CA of the cluster

()

Source from the content-addressed store, hash-verified

655// GetClientCASecretName get the name of the secret containing the CA
656// of the cluster
657func (cluster *Cluster) GetClientCASecretName() string {
658 if cluster.Spec.Certificates != nil && cluster.Spec.Certificates.ClientCASecret != "" {
659 return cluster.Spec.Certificates.ClientCASecret
660 }
661 return fmt.Sprintf("%v%v", cluster.Name, ClientCaSecretSuffix)
662}
663
664// GetFixedInheritedAnnotations gets the annotations that should be
665// inherited by all resources according to the cluster spec and the operator version

Callers 15

GenerateFunction · 0.95
getInvolvedSecretNamesFunction · 0.80
podmonitor_test.goFile · 0.80
setupPostgresPKIMethod · 0.80
ensureClientCASecretMethod · 0.80
updateResourceStatusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected