-
Notifications
You must be signed in to change notification settings - Fork 288
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 notifier for CAPV credentials file #1506
Conversation
Hi @scdubey. 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/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.
The tests seem to be failing with this change, could you make sure that there are green test runs before addressing the review comments.
7d413a6
to
ed07beb
Compare
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.
minor nits otherwise lgtm
pkg/manager/manager_test.go
Outdated
@@ -0,0 +1,131 @@ | |||
/* | |||
Copyright 2019 The Kubernetes Authors. |
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.
Copyright 2019 The Kubernetes Authors. | |
Copyright 2022 The Kubernetes Authors. |
pkg/manager/options.go
Outdated
@@ -138,3 +136,9 @@ func (o *Options) getCredentials() map[string]string { | |||
|
|||
return credentials | |||
} | |||
|
|||
func (o *Options) updateCredentials() { |
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: more appropriate name for the function
func (o *Options) updateCredentials() { | |
func (o *Options) readAndSetCredentials() { |
Add filesystem watch on the file storing credentials for capv-manager-bootstrap-credentials Unit tests added, Controller Suite tests updated
ed07beb
to
00be337
Compare
@scdubey: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: srm09 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 |
Add filesystem watch on the file storing credentials for
capv-manager-bootstrap-credentials
Unit tests added
What this PR does / why we need it: This PR adds a filesystem Watch for the CAPV bootstrap credentials that updates the file under /etc/capv/credentials.yaml. If there's any update the manager is updated accordingly through the Watch events notifier.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1275
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note: