-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 support for ntpsec #11665
base: master
Are you sure you want to change the base?
Add support for ntpsec #11665
Conversation
Hi @davidumea. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
48447fc
to
a2cbb18
Compare
a2cbb18
to
87170b9
Compare
87170b9
to
626737b
Compare
I think the pipeline was triggered because the fork wasn't synced or something, but it still needs the needs-ok-to-test label removed for the pipeline to run successfully now. |
/ok-to-test |
Thanks @davidumea |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidumea, yankay 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 |
Hello @VannTen and @tico88612, |
# Only takes effect when ntp_manage_config is true. | ||
# For ntpsec use '/var/lib/ntpsec/ntp.drift' | ||
ntp_driftfile: /var/lib/ntp/ntp.drift |
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.
# Only takes effect when ntp_manage_config is true. | |
# For ntpsec use '/var/lib/ntpsec/ntp.drift' | |
ntp_driftfile: /var/lib/ntp/ntp.drift | |
# Only takes effect when ntp_manage_config is true. | |
# Default value is `/var/lib/ntp/ntp.drift`, for ntpsec use '/var/lib/ntpsec/ntp.drift' | |
ntp_driftfile: >- | |
{% if ntp_package == "ntpsec" -%} | |
/var/lib/ntpsec/ntp.drift | |
{%- else -%} | |
/var/lib/ntp/ntp.drift | |
{%- endif -%} |
WDYT?
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 like it, but should we then also put a default value for when "chrony" is used as ntp_package?
I'm not 100% sure what it should be, but in their documentation (under driftfile) they have /var/lib/chrony/drift
as example value. Do you think we can put that here?
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.
Driftfile is not required to be set, so there is no default value. (only example in documentation)
You can add this in the PR, but if you want to make changes, you may need to write “release note action required” about using the upgraded clusters for notice.
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.
Okay I didn't realize that it was optional, then I think it makes sense to stick to your suggestion here.
docs/advanced/ntp.md
Outdated
|
||
```ShellSession | ||
ntp_package: ntpsec | ||
ntp_driftfile: /var/lib/ntpsec/ntp.drift |
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.
If you think the previous review is better, this line (Line 56) can be removed.
778fb04
to
4bd01d5
Compare
What type of PR is this?
What this PR does / why we need it:
Adds support for
ntpsec
, required for using ntp when running on Ubuntu 24.04 or whensystemd-timesyncd
is already installed.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: