Skip to content

Commit b8efb3e

Browse files
committed
Remove duplicated initialization of ltpaKeysCreationScriptConfigMap
Signed-off-by: Leo Christy Jesuraj <[email protected]>
1 parent 547c966 commit b8efb3e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

controllers/ltpa_keys_sharing.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,6 @@ func (r *ReconcileWebSphereLiberty) generateLTPAKeys(instance *wlv1.WebSphereLib
211211
})
212212

213213
// Create a ConfigMap to store the controllers/assets/create_ltpa_keys.sh script
214-
ltpaKeysCreationScriptConfigMap := &corev1.ConfigMap{}
215-
ltpaKeysCreationScriptConfigMap.Name = OperatorShortName + "-managed-ltpa-script"
216-
ltpaKeysCreationScriptConfigMap.Namespace = instance.GetNamespace()
217-
ltpaKeysCreationScriptConfigMap.Labels = lutils.GetRequiredLabels(ltpaKeysCreationScriptConfigMap.Name, "")
218214
err = r.GetClient().Get(context.TODO(), types.NamespacedName{Name: ltpaKeysCreationScriptConfigMap.Name, Namespace: ltpaKeysCreationScriptConfigMap.Namespace}, ltpaKeysCreationScriptConfigMap)
219215
if err != nil && kerrors.IsNotFound(err) {
220216
ltpaKeysCreationScriptConfigMap.Data = make(map[string]string)

0 commit comments

Comments
 (0)