Skip to content

Commit

Permalink
Remove duplicated initialization of ltpaKeysCreationScriptConfigMap
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Christy Jesuraj <[email protected]>
  • Loading branch information
leochr committed Nov 1, 2023
1 parent 547c966 commit b8efb3e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions controllers/ltpa_keys_sharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8efb3e

Please sign in to comment.