MCPcopy Create free account
hub / github.com/NVIDIA/gpu-operator / containsSecret

Function containsSecret

controllers/object_controls.go:3955–3962  ·  view source on GitHub ↗
(secrets []corev1.LocalObjectReference, secretName string)

Source from the content-addressed store, hash-verified

3953}
3954
3955func containsSecret(secrets []corev1.LocalObjectReference, secretName string) bool {
3956 for _, s := range secrets {
3957 if s.Name == secretName {
3958 return true
3959 }
3960 }
3961 return false
3962}
3963
3964func isDeploymentReady(name string, n ClusterPolicyController) gpuv1.State {
3965 opts := []client.ListOption{

Callers 1

addPullSecretsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected