From b8efb3e847284f24d74dbd132f0c08986ed6fbda Mon Sep 17 00:00:00 2001 From: Leo Christy Jesuraj Date: Wed, 1 Nov 2023 18:52:23 -0400 Subject: [PATCH] Remove duplicated initialization of ltpaKeysCreationScriptConfigMap Signed-off-by: Leo Christy Jesuraj --- controllers/ltpa_keys_sharing.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/controllers/ltpa_keys_sharing.go b/controllers/ltpa_keys_sharing.go index 4e0f2a34..05ea1847 100644 --- a/controllers/ltpa_keys_sharing.go +++ b/controllers/ltpa_keys_sharing.go @@ -211,10 +211,6 @@ func (r *ReconcileWebSphereLiberty) generateLTPAKeys(instance *wlv1.WebSphereLib }) // Create a ConfigMap to store the controllers/assets/create_ltpa_keys.sh script - ltpaKeysCreationScriptConfigMap := &corev1.ConfigMap{} - ltpaKeysCreationScriptConfigMap.Name = OperatorShortName + "-managed-ltpa-script" - ltpaKeysCreationScriptConfigMap.Namespace = instance.GetNamespace() - ltpaKeysCreationScriptConfigMap.Labels = lutils.GetRequiredLabels(ltpaKeysCreationScriptConfigMap.Name, "") err = r.GetClient().Get(context.TODO(), types.NamespacedName{Name: ltpaKeysCreationScriptConfigMap.Name, Namespace: ltpaKeysCreationScriptConfigMap.Namespace}, ltpaKeysCreationScriptConfigMap) if err != nil && kerrors.IsNotFound(err) { ltpaKeysCreationScriptConfigMap.Data = make(map[string]string)