-
Notifications
You must be signed in to change notification settings - Fork 150
Operator changes for v3 CRD mode #4092
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
base: master
Are you sure you want to change the base?
Conversation
|
This PR is stale because it has been open for 60 days with no activity. |
69e9345 to
b1de2b0
Compare
| Rules: []rbacv1.PolicyRule{ | ||
| { | ||
| APIGroups: []string{"crd.projectcalico.org"}, | ||
| APIGroups: []string{ |
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.
Components now need access to both API groups.
| Resources: []string{ | ||
| // Pools are watched to maintain a mapping of blocks to IP pools, and for finalization. | ||
| "ippools", | ||
| // NetworkPolicies are watched for defaulting. |
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.
New permissions for new controllers added in the linked PR
| if c.cfg.Installation.CalicoNetwork.LinuxPolicySetupTimeoutSeconds != nil { | ||
| linuxPolicySetupTimeoutSeconds = *c.cfg.Installation.CalicoNetwork.LinuxPolicySetupTimeoutSeconds | ||
| } | ||
| apiGroup := "" |
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.
Changes to configure the CNI plugin with the correct API group to use
b1de2b0 to
7f0fad3
Compare
7f0fad3 to
1ee85b1
Compare
| } | ||
|
|
||
| // add adds watches for resources that are available at startup | ||
| func add(c ctrlruntime.Controller, r *ReconcileInstallation) 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.
I combined add() into Add() because there's not really a reason to split them, and I needed access to opts within this function.
e02dde2 to
af13b7f
Compare
506d787 to
7a71032
Compare
7a71032 to
5deb9f2
Compare
Description
To support projectcalico/calico#10447
calico_api_groupto the CNI plugin so it knows which API to use.Release Note
For PR author
make gen-filesmake gen-versionsFor PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bugif this is a bugfix.kind/enhancementif this is a a new feature.enterpriseif this PR applies to Calico Enterprise only.