Skip to content
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

Remove k8s.io/kubernetes dependency for yurt-controller-manager #644

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

qclc
Copy link
Member

@qclc qclc commented Dec 1, 2021

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage
/kind feature

What this PR does / why we need it:

  • remove k8s.io/kubernetes dependency for yurt-controller-manager:
  • extract the relevant k8s.io/kubernetes dependencies in yurt-controller-manager to the openyurt/pkg/controller/kubernetes path

Which issue(s) this PR fixes:

Fixes #549

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

@openyurt-bot
Copy link
Collaborator

@qclc: GitHub didn't allow me to assign the following users: your_reviewer.

Note that only openyurtio 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.
For more information please see the contributor guide

In response to this:

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage
/sig storage
/kind feature

What this PR does / why we need it:

  • remove k8s.io/kubernetes dependency for yurt-controller-manager:
  • extract the relevant k8s.io/kubernetes dependencies in yurt-controller-manager to the openyurt/pkg/controller/kubernetes path

Which issue(s) this PR fixes:

Fixes #549

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

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.

@qclc qclc force-pushed the remove-controller-dependency branch 2 times, most recently from eaf95e4 to 2a89bd3 Compare December 1, 2021 15:39
go.mod Outdated Show resolved Hide resolved
go.mod Outdated
k8s.io/klog/v2 v2.4.0
k8s.io/component-base v0.22.4
k8s.io/controller-manager v0.22.4
k8s.io/klog v1.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove k8s.io/klog

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The k8s.io/klog is removed

@@ -0,0 +1,80 @@
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please import helper.go from k8s.io/controller-manager

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The k8s.io/controller-manager only supports version 1.20.x or later. The current policy is to cache the used k8s.io/kubernetes/pkg/controller files. After openYurt is upgraded to version 1.20.x, I will submit a PR to replace k8s.io/kubernetes/pkg/controller with k8s.io/controller-manager.

@@ -0,0 +1,47 @@
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please import types.go from k8s.io/kube-controller-manager

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The k8s.io/controller-manager only supports version 1.20.x or later. The current policy is to cache the used k8s.io/kubernetes/pkg/controller files. After openYurt is upgraded to version 1.20.x, I will submit a PR to replace k8s.io/kubernetes/pkg/controller with k8s.io/controller-manager.

@qclc qclc force-pushed the remove-controller-dependency branch from 2a89bd3 to c722439 Compare December 6, 2021 07:39
@qclc qclc force-pushed the remove-controller-dependency branch from c722439 to a654be5 Compare December 6, 2021 07:42
@rambohe-ch
Copy link
Member

/lgtm
/approve

@openyurt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qclc, rambohe-ch

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openyurt-bot openyurt-bot merged commit 3ffa2b0 into openyurtio:master Dec 8, 2021
MrGirl pushed a commit to MrGirl/openyurt that referenced this pull request Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request]Remove k8s.io/kubernetes dependency for yurt-controller-manager
3 participants