-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(cloudprovider/externalgrpc): GetOptions
returns MaxNodeProvisionTime
as 0 seconds
#5936
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -351,6 +351,7 @@ func (w *Wrapper) NodeGroupGetOptions(_ context.Context, req *protos.NodeGroupAu | |
ScaleDownGpuUtilizationThreshold: pbDefaults.GetScaleDownGpuUtilizationThreshold(), | ||
ScaleDownUnneededTime: pbDefaults.GetScaleDownUnneededTime().Duration, | ||
ScaleDownUnreadyTime: pbDefaults.GetScaleDownUnneededTime().Duration, | ||
MaxNodeProvisionTime: pbDefaults.GetMaxNodeProvisionTime().Duration, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you please also add the new field in the return value below? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added |
||
} | ||
opts, err := ng.GetOptions(defaults) | ||
if err != nil { | ||
|
@@ -369,6 +370,9 @@ func (w *Wrapper) NodeGroupGetOptions(_ context.Context, req *protos.NodeGroupAu | |
ScaleDownUnreadyTime: &metav1.Duration{ | ||
Duration: opts.ScaleDownUnreadyTime, | ||
}, | ||
MaxNodeProvisionTime: &metav1.Duration{ | ||
Duration: opts.MaxNodeProvisionTime, | ||
}, | ||
}, | ||
}, nil | ||
} |
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Updated to latest version at the time of creating this PR.
https://grpc.io/docs/languages/go/quickstart/