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

Setting the manifest directory when it is required by kubelet #5939

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

mmerrill3
Copy link
Contributor

This PR satisfies #5463. The manifest directory will be setup by nodeup when it is configuring kubelet. Kubelet itself needs the directory set, and nodeup is currently configuring kubelet.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 13, 2018
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 13, 2018
@chrisz100
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 13, 2018
Copy link
Contributor

@chrisz100 chrisz100 left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks for fixing and debugging this! Much appreciated

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 15, 2018
@mmerrill3
Copy link
Contributor Author

/assign @justinsb

@Vlaaaaaaad
Copy link
Contributor

This is desperately needed in kops 1.11

@@ -240,6 +258,8 @@ func (b *KubeletBuilder) buildSystemdService() *nodetasks.Service {
manifest.Set("Service", "StartLimitInterval", "0")
manifest.Set("Service", "KillMode", "process")
manifest.Set("Service", "User", "root")
manifest.Set("Service", "CPUAccounting", "true")
manifest.Set("Service", "MemoryAccounting", "true")
Copy link
Member

Choose a reason for hiding this comment

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

Is this related to the manifest directory change? If not, let's split it out so that we can review the ideas separately. This isn't as clear to me as the directory change, so it will delay the directory change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not a problem. I just reverted that commit and re-synced my fork's feature branch with kops' master branch.

}
context.AddTask(task)
}

Copy link
Member

Choose a reason for hiding this comment

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

Hmmm... I'm trying to remember why we don't just call Build... this change is right, but I'm just hoping you might know why we don't call Build?

Copy link
Member

Choose a reason for hiding this comment

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

(And I guess this is why we split out the buildManifestDirectory function ... which otherwise it would feel more natural to inline)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@justinsb, for me, I followed the pattern of breaking it out into a separate function call b/c the test (kubelet_test.go) was imitating the internal calls inside the build method, and needed access to what build was actually calling. It felt weird when I saw that, but I limited my scope to just fix the issue, and not how kubelet's build method is tested.

@justinsb
Copy link
Member

Code looks good, but I'm not sure about the CPUAccounting / MemoryAccounting changes. Are they related? If not, can we split them out so we can get this into 1.11?

@justinsb justinsb added this to the 1.11 milestone Nov 18, 2018
@mmerrill3
Copy link
Contributor Author

@justinsb, I can separate the concerns and remove the CPU/Memory account changes. I can probably get to that today.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2018
@justinsb
Copy link
Member

Thanks @mmerrill3 - really appreciate the willingness to split it up!

/approve
/lgtm

(I'll try to figure out the test failures, I don't think it is your PR)

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrisz100, justinsb, mmerrill3

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 19, 2018
@justinsb
Copy link
Member

/retest

@k8s-ci-robot k8s-ci-robot merged commit 77f2775 into kubernetes:master Nov 19, 2018
@mmerrill3 mmerrill3 mentioned this pull request Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants