-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Use NodeAuthorizer config options instead of soely hard-codes #7211
Use NodeAuthorizer config options instead of soely hard-codes #7211
Conversation
Hi @jacksontj. 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. |
/ok-to-test |
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.
@jacksontj thank you for the PR! There's a few small updates that will need doing before this can move through:
- Please can you additionally update the files
pkg/apis/kops/v1alpha1/cluster.go
andpkg/apis/kops/v1alpha2/cluster.go
with theInterval
inclusion - Run
make apimachinery
cc @gambol99
@KashifSaadat thanks, I have updated the PR -- hopefully it all passes :) |
Unfortunately all the e2e tests are still blocked on kubernetes/kubernetes#79305 -- it made an error fatal which every test run hits (details in slack ) |
Tests should be sorted now, although there's a few conflicts, once they're sorted I'll LG and we can get this merged :) |
Without this patch the timeout is 5m and the interval is 10m -- hard-coded with no mechanism to change, even though the config struct already had a timeout option (which was completely unused)
2f2b71a
to
0a4b18e
Compare
@KashifSaadat all set (rebased and tests are passing)! |
@@ -189,6 +189,8 @@ type NodeAuthorizerSpec struct { | |||
NodeURL string `json:"nodeURL,omitempty"` | |||
// Port is the port the service is running on the master | |||
Port int `json:"port,omitempty"` | |||
// Interval the time between retires for authorization request |
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.
Nit: typo - retries
@@ -188,6 +188,8 @@ type NodeAuthorizerSpec struct { | |||
NodeURL string `json:"nodeURL,omitempty"` | |||
// Port is the port the service is running on the master | |||
Port int `json:"port,omitempty"` | |||
// Interval the time between retires for authorization request |
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.
copy-paste of retires typo
@@ -189,6 +189,8 @@ type NodeAuthorizerSpec struct { | |||
NodeURL string `json:"nodeURL,omitempty"` | |||
// Port is the port the service is running on the master | |||
Port int `json:"port,omitempty"` | |||
// Interval the time between retires for authorization request |
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.
nit: retires
timeout := 5 * time.Minute | ||
if na.Timeout != nil { |
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.
Ah - you're right - it looks like we simply weren't using it! Thanks for fixing!
Minor typo (retires instead of retries) but I'm inclined to merge it and we can fix it later. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jacksontj, justinsb 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 |
…1-upstream-release-1.12 Automated cherry pick of #7211: Use NodeAuthorizer config options instead of soely
…1-upstream-release-1.14 Automated cherry pick of #7211: Use NodeAuthorizer config options instead of soely
…1-upstream-release-1.13 Automated cherry pick of #7211: Use NodeAuthorizer config options instead of soely
Without this patch the timeout is 5m and the interval is 10m --
hard-coded with no mechanism to change, even though the config struct
already had a timeout option (which was completely unused)