-
Notifications
You must be signed in to change notification settings - Fork 184
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
Put back the namespace to reconcile list if a resource cant be created for… #2118
Conversation
Hi @jkhelil. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@jkandasa @piyush-garg can i have a first rview here please ? |
/ok-to-test |
return fmt.Errorf("failed to ensure ca bundles presence in namespace %s, %w", ns.Name, err) | ||
logger.Errorf("failed to ensure ca bundles presence in namespace %s: %v", ns.Name, err) | ||
if err = r.AddNsToReconcileOnError(ctx, &ns); err != nil { | ||
return err |
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.
@jkhelil When we return from the loop on error on a specific namespace issue, we fail to reconcile further namespaces until we fix the error on the specific namespace. So IMHO, we can continue to proceed with further namespaces, even though we see error on a namespace.
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.
hey @jkandasa thats why we continue juste after the check. here we return from AddNsToReconcileOnError wich is removing the label on the namespace on etcd. so if something is failing there, we dont continue otherwise the namespace will be considered as reconciled without having the prerequisite resources.
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.
we return from AddNsToReconcileOnError wich is removing the label on the namespace on etcd. so if something is failing there, we dont continue
@jkhelil I meant this
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.
I did not get this logic, we are not adding the label, untill we are reaching the end of this function, which means everything is created.
I think what we need is more checks whether the namespace needs to be reonciled
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jkandasa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
… this namespace
Changes
Put back the namespace to the reconcile list if a resource creation is failing for this namespace, so we continue reconciling even if an error happens when creating a resource one namespace.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make test lint
before submitting a PRSee the contribution guide for more details.
Release Notes