-
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
Add criSocket to kubeadm NodeConfiguration manifest #59292
Add criSocket to kubeadm NodeConfiguration manifest #59292
Conversation
@JordanFaust: Reiterating the mentions to trigger a notification: In response to this:
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. |
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.
Thanks for the PR!
/lgtm
@@ -147,6 +147,9 @@ func SetDefaults_NodeConfiguration(obj *NodeConfiguration) { | |||
if len(obj.DiscoveryToken) == 0 && len(obj.DiscoveryFile) == 0 { | |||
obj.DiscoveryToken = obj.Token | |||
} | |||
if obj.CRISocket == "" { | |||
obj.CRISocket = DefaultCRISocket |
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.
you need to remove this since DefaultCRISocket
is no longer defined
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 remember it was defined when I review the code last time. obj.CRISocket
should have a default value I think.
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 missed adding this since I did the initial work within the same branch as my first PR. I added the DefaultCRISocket to resolve this issue.
@@ -169,10 +168,14 @@ func AddJoinConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiext.NodeConfigurat | |||
featureGatesString, "feature-gates", *featureGatesString, | |||
"A set of key=value pairs that describe feature gates for various features. "+ | |||
"Options are:\n"+strings.Join(features.KnownFeatures(&features.InitFeatureGates), "\n")) | |||
flagSet.StringVar( |
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.
Does this need to be a top level command line flag? Shouldn't this be an exception case?
c5e2f41
to
b70262f
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.
/approve per @fabianofranz comments but please squash your changes before lgtm
448a780
to
db3d5e6
Compare
/retest |
@JordanFaust: you can't request testing unless you are a kubernetes member. In response to this:
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. |
/ok-to-test |
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.
One small nit. Others lgtm.
@@ -206,6 +206,8 @@ type NodeConfiguration struct { | |||
TLSBootstrapToken string | |||
// Token is used for both discovery and TLS bootstrapping. | |||
Token string | |||
// CRI socket to be used to retrieve container runtime info |
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.
Change to CRISocket is used to retrieve container runtime info
? WDYT?
Same as below v1alpha1/types.go
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.
Sounds good to me. I will update the documentation in the other PR as well.
2da0678
to
62dddb7
Compare
@dixudx I made the change in both PRs and squashed all of the commits. Let me know if there is anything else needed for a LGTM. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, jamiehannaford, JordanFaust, timothysc 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 |
/test all Tests are more than 96 hours old. Re-running tests. |
/test all [submit-queue is verifying that this PR is safe to merge] |
@JordanFaust: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Automatic merge from submit-queue (batch tested with PRs 59292, 59600). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
Adds a criSocket field to the NodeConfiguration manifest used by kubeadm. This field configures the cri socket that kubeadm uses during preflight checks.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes # kubernetes/kubeadm#679
Special notes for your reviewer:
This is a follow up PR, as requested, to #59057. The NodeConfiguration manifest now has a criSocket field that can be used when using the config manifest to join a node to the cluster.
Release note:
/area kubeadm
/assign @luxas
/cc @kubernetes/sig-cluster-lifecycle-pr-reviews