This commit is contained in:
mcmarkj
2021-05-28 18:15:17 +01:00
parent ea2d1f8a09
commit a428fe7462

View File

@@ -23,14 +23,13 @@ const RestartDeploymentsAnnotation = OnepasswordPrefix + "/auto-restart"
var log = logf.Log
func CreateKubernetesSecretFromItem(kubeClient kubernetesClient.Client, secretName, namespace string, item *onepassword.Item, autoRestart string, labels map[string]string, annotations map[string]string) error {
itemVersion := fmt.Sprint(item.Version)
// Remove OP Annotations if they already exist
delete(annotations,VersionAnnotation)
delete(annotations,ItemPathAnnotation)
delete(annotations, VersionAnnotation)
delete(annotations, ItemPathAnnotation)
secretAnnotations := map[string]string{
VersionAnnotation: itemVersion,