-
Notifications
You must be signed in to change notification settings - Fork 138
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
the calico-apiserver namespace frequently get stuck for a long time in terminating status when upgrading to enterprise #3439
the calico-apiserver namespace frequently get stuck for a long time in terminating status when upgrading to enterprise #3439
Conversation
…n terminating status when upgrading to enterprise
@@ -252,11 +252,7 @@ func (r *ReconcileAPIServer) Reconcile(ctx context.Context, request reconcile.Re | |||
r.status.SetDegraded(operatorv1.ResourceReadError, "Error querying installation", err, reqLogger) | |||
return reconcile.Result{}, err | |||
} | |||
if variant == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmjd @gcosgrave I think we still do need this check to handle the tiniest of race conditions.
If a user creates an Installation with no variant, we want to wait for the Installation / core controller to default it before we continue. It should only add a second of delay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I agree. To be specific the check can be changed to if installationSpec.Variant == ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I think the unset variant message could use an update.
…n terminating status when upgrading to enterprise (tigera#3439) * the calico-apiserver namespace frequently get stuck for a long time in terminating status when upgrading to enterprise * remove all references to status.variant * update the not-ready message (cherry picked from commit b63136c)
…n terminating status when upgrading to enterprise (tigera#3439) * the calico-apiserver namespace frequently get stuck for a long time in terminating status when upgrading to enterprise * remove all references to status.variant * update the not-ready message (cherry picked from commit b63136c)
…n terminating status when upgrading to enterprise (tigera#3439) * the calico-apiserver namespace frequently get stuck for a long time in terminating status when upgrading to enterprise * remove all references to status.variant * update the not-ready message (cherry picked from commit b63136c)
…
Description
The apiserver TigeraStatus error message
Error creating / updating resource: secrets "tigera-apiserver-certs" is forbidden: unable to create new content in namespace calico-apiserver because it is being terminated
identifies the problem as the certs secret is called "calico-apiserver-certs" when it is in the "calico-apiserver" namespace, and "tigera-apiserver-certs" when in the "tigera-apiserver" namespaceFor PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.