Skip to content

Conversation

hafe
Copy link
Contributor

@hafe hafe commented Oct 18, 2022

Add new command line option "watch-secret-namespace" that can be used to configure namespaces watched for secrets.

Closes #3154

Proposed changes

Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue here in this description (not in the title of the PR).

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@github-actions github-actions bot added the documentation Pull requests/issues for documentation label Oct 18, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

Merging #3170 (1963c28) into main (6ab9416) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

❗ Current head 1963c28 differs from pull request most recent head 92e0e97. Consider uploading reports for the commit 92e0e97 to get more accurate results

@@            Coverage Diff             @@
##             main    #3170      +/-   ##
==========================================
- Coverage   52.54%   52.51%   -0.04%     
==========================================
  Files          59       59              
  Lines       16080    16097      +17     
==========================================
+ Hits         8450     8454       +4     
- Misses       7351     7366      +15     
+ Partials      279      277       -2     
Impacted Files Coverage Δ
cmd/nginx-ingress/flags.go 32.14% <0.00%> (-2.29%) ⬇️
cmd/nginx-ingress/main.go 0.00% <0.00%> (ø)
internal/k8s/controller.go 10.95% <0.00%> (-0.01%) ⬇️
internal/k8s/configuration.go 95.76% <0.00%> (+0.36%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@hafe hafe marked this pull request as ready for review October 21, 2022 05:37
@hafe hafe requested a review from a team as a code owner October 21, 2022 05:37
@hafe hafe requested review from lucacome, ciarams87 and jjngx October 21, 2022 05:37
@hafe
Copy link
Contributor Author

hafe commented Oct 26, 2022

Needs some fixing/testing

@hafe
Copy link
Contributor Author

hafe commented Nov 4, 2022

Tested and works as expected!

@ciarams87
Copy link
Contributor

Looks good @hafe! Just a couple of other docs improvements I noticed, and a rebase to main, and we should be good to merge! Thanks so much for the contribution 😃

hafe and others added 2 commits November 8, 2022 19:09
Add new command line option "watch-secret-namespace" that can be used to
configure namespaces watched for secrets.

Closes nginx#3154
Copy link
Contributor

@ciarams87 ciarams87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@ciarams87 ciarams87 merged commit e0e4846 into nginx:main Nov 10, 2022
coolbry95 pushed a commit to coolbry95/kubernetes-ingress that referenced this pull request Nov 18, 2022
* Watch subset of namespaces for secrets

Add new command line option "watch-secret-namespace" that can be used to
configure namespaces watched for secrets.

Closes nginx#3154

* Apply suggestions from code review

Co-authored-by: Ciara Stacke <[email protected]>

* Update cmd/nginx-ingress/flags.go

Co-authored-by: Ciara Stacke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Pull requests/issues for documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow configuration of namespaces watched for secrets
4 participants