-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Fix: install calico-kube-controller on kdd #9358
Fix: install calico-kube-controller on kdd #9358
Conversation
Hi @wayfrro. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
FYI @cristicalin |
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.
/cc @oomichi
tags: | ||
- policy-controller | ||
|
||
- role: policy_controller/calico | ||
when: | ||
- kube_network_plugin == 'canal' | ||
- calico_datastore != "kdd" | ||
- calico_datastore != "kdd" or calico_policy_version is version('v3.6.0', '>=') |
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.
Ditto
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.
Shouldn't we just leave one dependency on this role for both calico and canal with enable_network_policy
set to true? It makes little sense to me otherwise. Something like:
---
dependencies:
- role: policy_controller/calico
when:
- kube_network_plugin in ['calico', 'canal']
- enable_network_policy
tags:
- policy-controller
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.
@wayfrro haha exactly what I wrote yesterday too #9358 (comment)
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.
Indeed it's cleaner that way but the original intent of the PR you are referencing was a clean up which accidentally triggered this bug.
@wayfrro please update the PR with the code you proposed above which better communicates the intention of having the policy controller dependency on both calico and canal.
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.
@cristicalin Done.
Not sure I fully understand why we don't check |
Yeah, that seems strange. /ok-to-test |
Great Fix, it's very useful. |
Thanks @wayfrro /lgtm |
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.
@wayfrro Thanks for the update 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floryut, wayfrro 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 |
/lgtm |
* Fix: install policy controller on kdd too * Remove the calico_policy_version condition altogether * Install policy controller both on canal and calico under same condition
* Fix: install policy controller on kdd too * Remove the calico_policy_version condition altogether * Install policy controller both on canal and calico under same condition Co-authored-by: Piotr Kowalczyk <7711184+wayfrro@users.noreply.github.com>
* Fix: install policy controller on kdd too * Remove the calico_policy_version condition altogether * Install policy controller both on canal and calico under same condition
* Fix: install policy controller on kdd too * Remove the calico_policy_version condition altogether * Install policy controller both on canal and calico under same condition
* Fix: install policy controller on kdd too * Remove the calico_policy_version condition altogether * Install policy controller both on canal and calico under same condition
* Fix: install policy controller on kdd too * Remove the calico_policy_version condition altogether * Install policy controller both on canal and calico under same condition
What type of PR is this?
This partially reverts 2de5c48#diff-c94700ab11e60a92e9706fb87b3a61796ff8b2a7a36e18fd465e173203d6574dL14 - which makes kubespray not installing policy controller when using calico with kubernetes data store.
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #9300
Special notes for your reviewer:
Does this PR introduce a user-facing change?: