Handle restart annotation on kubernetes secret

This commit is contained in:
jillianwilson
2021-03-01 15:58:32 -04:00
parent 0824aa0837
commit 8635be0cab
6 changed files with 220 additions and 9 deletions

View File

@@ -50,3 +50,11 @@ func AreAnnotationsUsingSecrets(annotations map[string]string, secrets map[strin
}
return false
}
func AppendAnnotationUpdatedSecret(annotations map[string]string, secrets map[string]*corev1.Secret, updatedDeploymentSecrets map[string]*corev1.Secret) map[string]*corev1.Secret {
secret, ok := secrets[annotations[NameAnnotation]]
if ok {
updatedDeploymentSecrets[secret.Name] = secret
}
return updatedDeploymentSecrets
}