-
Notifications
You must be signed in to change notification settings - Fork 288
feat: Add configurable registration TTL #2313
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
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: GnatorX The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Pull Request Test Coverage Report for Build 15687720068Details
💛 - Coveralls |
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.
Few minor cleanup comments
pkg/apis/v1/nodeclaim.go
Outdated
// +kubebuilder:validation:Pattern=`^([0-9]+(s|m|h))+$` | ||
// +kubebuilder:validation:Type="string" | ||
// +optional | ||
RegistrationTTL *metav1.Duration `json:"registrationTTL,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.
If we are not planning on drifting on this field, we need to add the hash:"ignore"
@@ -41,7 +41,7 @@ type Liveness struct { | |||
|
|||
// registrationTTL is a heuristic time that we expect the node to register within | |||
// If we don't see the node within this time, then we should delete the NodeClaim and try again | |||
const registrationTTL = time.Minute * 15 | |||
var registrationTTL = time.Minute * 15 |
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.
Consider dropping this variable for the nodeclaim spec value
Fixes #357
Description
Based on #1989
How was this change tested?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.