(googleCredentials *apiv1.GoogleCredentials)
| 502 | } |
| 503 | |
| 504 | func 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 | |
| 517 | func managedRolesSecrets(cluster *apiv1.Cluster) []string { |
| 518 | if cluster.Spec.Managed == nil { |
no outgoing calls
no test coverage detected