Skip to content

Commit 973325a

Browse files
committed
Fix ApplicationAuth doesn't reconcile when custom name is used for user_key
See THREESCALE-11072 for details
1 parent 78eee93 commit 973325a

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

controllers/capabilities/applicationauth_controller.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,7 @@ func (r *ApplicationAuthReconciler) applicationAuthReconciler(
248248
}
249249
if authSecret.UserKey != "" {
250250
params := make(map[string]string)
251-
// this key "user_key" is configurable so will need to get the product to see if its the default or not
252-
if product.Spec.AuthUserKey() == nil {
253-
params["user_key"] = authSecret.UserKey
254-
} else {
255-
params[*product.Spec.AuthUserKey()] = authSecret.UserKey
256-
}
251+
params["user_key"] = authSecret.UserKey
257252
// edge case if the operator is stopped before reconcile finished need to nil check application.Status.ID
258253
if application.Status.ID != nil {
259254
_, err := threescaleClient.UpdateApplication(*developerAccount.Status.ID, *application.Status.ID, params)

0 commit comments

Comments
 (0)