Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing #320

Merged
merged 2 commits into from
Mar 21, 2022
Merged

Timing #320

merged 2 commits into from
Mar 21, 2022

Conversation

idlewis
Copy link
Member

@idlewis idlewis commented Feb 17, 2022

To deal with the issue reported in #312

Copy link
Member

@leochr leochr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@idlewis Thanks for the PR. Looks good for the most part. Added some comments.

if getErr != nil {
return r.ManageError(getErr, common.StatusConditionTypeReconciled, instance)
}
secrets := sa.Secrets
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check on ImagePullSecret instead of Secrets

@@ -335,6 +335,35 @@ func (r *ReconcileOpenLiberty) Reconcile(ctx context.Context, request ctrl.Reque
r.deletePVC(reqLogger, instance.Name+"-serviceability", instance.Namespace)
}

// Check if the ServiceAccount has a valid pull secret before creating the deployment/statefulset
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll be good to do this check after line 239 (before knative, since that could also be affected by this issue).
Also, this should be added to RCO's util package, so both RCO and OLO controllers can call it.

@leochr
Copy link
Member

leochr commented Mar 16, 2022

@idlewis merged RCO PR. When you get a chance, please update (or open new PR) to use the utils from RCO. We will need the same for WLO. Thank you.

idlewis added 2 commits March 17, 2022 15:35
Specifically the change to utils/utils.go which adds a function
to check for pull secrets
The cluster automatically creates pull secrets for the service account.
This can take a while.
Sometimes, the controller creates the deployment before the pull secret
is created. This causes the pods to go into an image pull backoff loop.
Check that the pull secret exists before the deployment is created, to
prevent this
@leochr leochr merged commit 0c71868 into main Mar 21, 2022
@leochr leochr deleted the timing branch March 21, 2022 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants