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

Function googleCredentialsSecrets

pkg/specs/roles.go:504–515  ·  view source on GitHub ↗
(googleCredentials *apiv1.GoogleCredentials)

Source from the content-addressed store, hash-verified

502}
503
504func googleCredentialsSecrets(googleCredentials *apiv1.GoogleCredentials) []string {
505 if googleCredentials == nil {
506 return nil
507 }
508 var secrets []string
509
510 if googleCredentials.ApplicationCredentials != nil {
511 return append(secrets, googleCredentials.ApplicationCredentials.Name)
512 }
513
514 return secrets
515}
516
517func managedRolesSecrets(cluster *apiv1.Cluster) []string {
518 if cluster.Spec.Managed == nil {

Callers 2

externalClusterSecretsFunction · 0.85
backupSecretsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected