(podSpec *corev1.PodSpec, secrets []string)
| 3945 | } |
| 3946 | |
| 3947 | func addPullSecrets(podSpec *corev1.PodSpec, secrets []string) { |
| 3948 | for _, secret := range secrets { |
| 3949 | if !containsSecret(podSpec.ImagePullSecrets, secret) { |
| 3950 | podSpec.ImagePullSecrets = append(podSpec.ImagePullSecrets, corev1.LocalObjectReference{Name: secret}) |
| 3951 | } |
| 3952 | } |
| 3953 | } |
| 3954 | |
| 3955 | func containsSecret(secrets []corev1.LocalObjectReference, secretName string) bool { |
| 3956 | for _, s := range secrets { |
no test coverage detected