Ignore restart annotation when looking for 1Password annotations

This commit is contained in:
jillianwilson
2021-01-13 15:32:03 -04:00
parent 75b9f474ab
commit 76ee62519e
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ func GetAnnotationsForDeployment(deployment *appsv1.Deployment, regex *regexp.Re
func FilterAnnotations(annotations map[string]string, regex *regexp.Regexp) map[string]string {
filteredAnnotations := make(map[string]string)
for key, value := range annotations {
if regex.MatchString(key) {
if regex.MatchString(key) && key != RestartAnnotation {
filteredAnnotations[key] = value
}
}