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 an option to skip NTP installation #11160
Add an option to skip NTP installation #11160
Conversation
Hi @kenji-cloudnatix. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
5335f49
to
fe2dc8c
Compare
7d87722
to
8dc5761
Compare
/ok-to-test |
pkg/apis/kops/ntpconfig.go
Outdated
// NTPConfig is the configuration for NTP. | ||
type NTPConfig struct { | ||
// SkipInstall is set to true when we prevent kops from installing and modifying NTP. | ||
SkipInstall bool `json:"skipInstall,omitempty"` |
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 think we were planning to move away from SkipInstall
and add Enabled
and/or Managed
:
Enabled
= false would mean the service is actually disabled by the task.
Managed
= false would just skip the task.
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 review, @hakman ! I've added Managed
. I wasn't sure we want to have Enabled
for NTP since I believe either systemd-timesyncd
or chrony
is needed in every env. Does this make sense?
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.
👍
8dc5761
to
052d782
Compare
/approve cancel |
/lgtm cancel |
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.
Please see my inline comments.
Approved this prematurely by mistake. Sorry.
30abbb9
to
0076ce8
Compare
Sure, @hakman ! Applied your comments. |
/test pull-kops-bazel-test |
Thanks @kenji-cloudnatix. I appreciate the nudge on this. |
Agreed this looks good to me but could use a section in https://kops.sigs.k8s.io/cluster_spec/ I was debating whether it would make sense to have this be a property of the instance group rather than the cluster, given that it is used by nodeup. I can't think of legitimate use-cases where a cluster might need node-specific NTP configurations though. Maybe others can? |
Add NTPConfig to ClusterSpec. NTPConfig has the SkipInstall option. kubernetes#9661
0076ce8
to
baff30d
Compare
Sure, @rifelpet ! updated https://kops.sigs.k8s.io/cluster_spec/ Please let me know the NTP config should be somewhere level.. Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman, rifelpet 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 |
…-upstream-release-1.20 Automated cherry pick of #11160: Add an option to skip NTP installation
Add NTPConfig to ClusterSpec. NTPConfig has the SkipInstall option.
#9661