-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Move cloud provider controllers to k8s.io/cloud-provider #90976
Move cloud provider controllers to k8s.io/cloud-provider #90976
Conversation
58dd398
to
e32277a
Compare
@andrewsykim: GitHub didn't allow me to assign the following users: cici37. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. |
e32277a
to
f79dcfa
Compare
@@ -1392,6 +1347,13 @@ func TestPatchStatus(t *testing.T) { | |||
} | |||
|
|||
func Test_getNodeConditionPredicate(t *testing.T) { | |||
// init feature gates, feature spec does not matter since it will be overriden by tests |
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.
Misspelling here of "overridden". And I think you mentioned that the test changes are moved to another pr #90987
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.
Good catch, will update after #90987 is merge d
f79dcfa
to
52bb13b
Compare
52bb13b
to
4d0d504
Compare
@liggitt friendly ping :) |
@@ -23,7 +23,7 @@ limitations under the License. | |||
// +k8s:conversion-gen=k8s.io/kubernetes/cmd/cloud-controller-manager/app/apis/config | |||
// +k8s:conversion-gen=k8s.io/component-base/config/v1alpha1 | |||
// +k8s:conversion-gen=k8s.io/kubernetes/pkg/controller/apis/config/v1alpha1 | |||
// +k8s:conversion-gen=k8s.io/kubernetes/pkg/controller/service/config/v1alpha1 | |||
// +k8s:conversion-gen=k8s.io/cloud-provider/controllers/service/config/v1alpha1 |
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'm confused... based on #90976 (comment) I thought we were not moving config struct locations
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 v1alpha1 types live in staging/src/k8s.io/kube-controller-manager/config/v1alpha1 (this is the case today as well). This just moves the generated code that was in pkg/controller/service/config/v1alpha1 to staging along with the controller. That seemed fine to me since none of the types are there (maybe this is still wrong though?)
Before this comment #90976 (comment) I moved the config struct from staging/src/k8s.io/kube-controller-manager
into k8s.io/cloud-provider/controllers/service/config/v1alpha1
). I thought your comment was specifically for that so I reverted and left the versioned types in kube-controller-manager.
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.
This just moves the generated code that was in pkg/controller/service/config/v1alpha1 to staging along with the controller.
The issue is that places v1alpha1 config-related code in a place that has no concept of a v1alpha1 config... that seems problematic.
pkg/controller/apis/config/types.go
Outdated
@@ -34,7 +35,6 @@ import ( | |||
replicasetconfig "k8s.io/kubernetes/pkg/controller/replicaset/config" | |||
replicationconfig "k8s.io/kubernetes/pkg/controller/replication/config" | |||
resourcequotaconfig "k8s.io/kubernetes/pkg/controller/resourcequota/config" | |||
serviceconfig "k8s.io/kubernetes/pkg/controller/service/config" |
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.
same question about config type location
controller code move looks fine. I'm still not sure I understand what it means to move a v1alpha1 config type to the cloud controller module when there is no v1alpha1 top-level version present in that module. This would be a lot clearer to me if it just moved the controller code and kept the config types where they were. |
The v1alpha1 types have not moved, they are still in |
I think keeping the config in the module where it is being consumed stays more coherent for now, so yes. |
…ice for easier external consumption Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
…for easier external consumption Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
…/controllers/node for easier external consumption Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
…d-provider/controllers/nodelifecycle for easier external consumption Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
…ovider controllers to staging Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
f627f3f
to
21bb99e
Compare
@liggitt updated to leave the config types where they are, sorry for the confusion earlier. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewsykim, liggitt 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 |
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
We're trying to make
cmd/cloud-controller-manager
easier to consume (kubernetes/cloud-provider#29). This PR moves all the cloud provider specific controllers to k8s.io/cloud-provider as part of moving all ofcmd/cloud-controller-manager
eventually.Which issue(s) this PR fixes:
Fixes #81172
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: