-
Notifications
You must be signed in to change notification settings - Fork 40
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
csiaddonsNode: Recreate CSIAddonsNode with active sidecar(s) #765
Conversation
Logs from testing
|
The reconciler should not be creating the CR, it should be done by the sidecar which is creating it earlier, watch for delete event and recreate it from the sidecar. |
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.
The reconciler should not be creating the CR, it should be done by the sidecar which is creating it earlier, watch for delete event and recreate it from the sidecar.
Indeed, the sidecar creates the initial CSIAddonsNode, and so should it re-create one if it was deleted (and report a big warning about the unexpected deletion of it).
73b2317
to
b7d707b
Compare
b7d707b
to
6685400
Compare
194fa16
to
e46f08a
Compare
bf41ace
to
35e0993
Compare
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.
The 2nd commit is not related to the actual issue reported, it is cleaner to split it out.
35e0993
to
c50213d
Compare
Done at #770 |
ab56f47
to
957b289
Compare
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.
small nit, LGTM
957b289
to
aab8694
Compare
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 hope it been tested by restarting the pod many times in a loop and also deleting the CR manually in a loop
This patch adds `watch` and `list` verbs for CSIAddonsNode objects. These permissions are required by the csi-addons sidecar. Ref: csi-addons/kubernetes-csi-addons#765 Signed-off-by: Niraj Yadav <[email protected]>
This patch adds `watch` and `list` verbs for CSIAddonsNode objects. These permissions are required by the csi-addons sidecar. Ref: csi-addons/kubernetes-csi-addons#765 Signed-off-by: Niraj Yadav <[email protected]>
aab8694
to
398089c
Compare
This pull request has been removed from the queue for the following reason: The merge conditions cannot be satisfied due to failing checks You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. If you want to requeue this pull request, you need to post a comment with the text: |
@Mergifyio requeue |
✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically |
This patch adds a watcher to csi-addons sidecar which is responsible for re-creating CSIAddonNode(s) in case they are deleted manually. Signed-off-by: Niraj Yadav <[email protected]>
398089c
to
b46e722
Compare
This patch adds `watch` and `list` verbs for CSIAddonsNode objects. These permissions are required by the csi-addons sidecar. Ref: csi-addons/kubernetes-csi-addons#765 Signed-off-by: Niraj Yadav <[email protected]> (cherry picked from commit a0d2dc6)
This patch adds a watcher to csi-addons sidecar which is responsible for re-creating CSIAddonNode(s) in case they
are deleted manually.
Fixes: #762