-
Notifications
You must be signed in to change notification settings - Fork 113
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
Build watch secrets #493
Build watch secrets #493
Conversation
e6a0651
to
7326876
Compare
553f99f
to
a4ff883
Compare
3ebd077
to
85d0d3b
Compare
85d0d3b
to
7d84cee
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.
Looks good. Some suggestions.
7cb34e2
to
304e77b
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.
Good progress. I missed one little detail in the docs and would like us to think once more on the CreateEvent
for secrets.
docs/development/authentication.md
Outdated
|
||
If you are using `kubectl` command create secrets, then you can first create build secret using `kubectl create secret` command and annotate this secret using `kubectl annotate secrets`. Below is an example: | ||
|
||
```yaml |
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.
yaml -> sh
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.
done
304e77b
to
beadb1b
Compare
Refactor the Watcher for Secrets Enhance the handler.EnqueueRequestsFromMapFunc Enhance the Events Predicates Signed-off-by: Zoe <[email protected]>
We updated the Build predicates and watcher We added test cases to verify that validations on the Build are taking place when a particular annotation is defined on a secret. Modify build controller watches secrets integration tests Signed-off-by: Zoe <[email protected]>
Signed-off-by: Zoe <[email protected]>
beadb1b
to
9f2614b
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SaschaSchwarze0 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 |
Fixes #466
Worked on this together with @xiujuan95 .
This PR introduces a new Watcher on the Build Controller that watches for Secret Resources. Main things to consider:
build.build.dev/referenced.secret: true
annotation.Build
in the current namespace where the secret is.This PR introduces an extended integration-test for this particular behaviour.
This PR enhance the existing authentication docs, to include what users require to define in the secret and a brief explanation on why this is required.