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
ceph: update PodDisruptionBudget from v1beta1 to v1 #7977
Conversation
As discuss in this thread we need to wait for controller runtime 0.9 version for using v1.21 dependencies. |
87f5914
to
0cd49ab
Compare
0cd49ab
to
66e5098
Compare
For the PDB version we likely need a similar approach to the CronJob, see this comment |
916cc38
to
83e223f
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.
We need to handle v1beta1 too.
83e223f
to
bebec5d
Compare
c89fd4b
to
df6e787
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.
unit test failing
df6e787
to
28680f2
Compare
93d47c2
to
44bc2e0
Compare
6c09e99
to
17cdbe4
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.
CI looks green, almost there!
@@ -262,7 +263,17 @@ func (r *ReconcileClusterDisruption) deleteDrainCanaryPods(namespace string) err | |||
} | |||
|
|||
func (r *ReconcileClusterDisruption) deleteLegacyPDBForOSD(namespace string) error { |
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.
@sp98 When did we get rid of the legacy PDBs? I think we can get rid of this method now since it's already been at least a release since we removed the legacy PDBs.
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 added this in rook 1.5 in this PR. So should be safe to remove now.
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.
@sp98 We want to remove it in this PR or maybe in a separate PR?
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.
separate PR, IMO.
17cdbe4
to
2376bf2
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.
nits
@parth-gr - Were the pdbs moved from v1beta1 to v1 after you upgraded to 1.21?
|
2376bf2
to
0ca8df3
Compare
Yes @sp98, pdbs are getting upgraded to v1.
But it takes one reconcile time to get the cluster in the ready state as we are upgrading, so the operator restarts and in between it's shows warning. |
0ca8df3
to
bdca4f7
Compare
bdca4f7
to
2333fdb
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.
nit
2333fdb
to
fe78a2a
Compare
This commit update the PodDisruptionBudget policy to use version v1 Updated to policy/v1 as policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+ Closes: rook#7917 Signed-off-by: parth-gr <paarora@redhat.com>
fe78a2a
to
77813f7
Compare
ceph: update PodDisruptionBudget from v1beta1 to v1 (backport #7977)
This commit update the PodDisruptionBudget policy to use version v1
Updated to policy/v1 as policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+
Closes: #7917
Signed-off-by: parth-gr paarora@redhat.com
Description of your changes:
Which issue is resolved by this Pull Request:
Resolves #
Checklist:
make codegen
) has been run to update object specifications, if necessary.