Skip to content
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

Monitor specific namespaces for configmap/secret updates #2598

Merged
merged 1 commit into from Nov 3, 2022

Conversation

sanketsudake
Copy link
Member

@sanketsudake sanketsudake commented Nov 3, 2022

We allow functions to refer configmap/secrets. We are monitoring all namespaces for configmaps and secrets and also allow cross-namespace references.
This fix monitors configmaps/secret updates in specific namespaces. Also, we ignore cross-namespace references for configmap/secret updates.

Signed-off-by: Sanket Sudake sanketsudake@gmail.com

Description

Which issue(s) this PR fixes:

Fixes #

Testing

Checklist:

  • I ran tests as well as code linting locally to verify my changes.
  • I have done manual verification of my changes, changes working as expected.
  • I have added new tests to cover my changes.
  • My changes follow contributing guidelines of Fission.
  • I have signed all of my commits.

We all functions to refer configmap/secrets. As of now we are monitoring
all namespaces for configmap and secrets and also allow cross namespace
references.
This fix monitors configmaps/secret updates in specific namespace. Also
we ignore cross namespace references for configmap/secret updates.

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Merging #2598 (04f1388) into main (f37e9e6) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2598      +/-   ##
==========================================
- Coverage   19.78%   19.76%   -0.02%     
==========================================
  Files          62       62              
  Lines        7001     7001              
==========================================
- Hits         1385     1384       -1     
- Misses       5510     5511       +1     
  Partials      106      106              
Flag Coverage Δ
unittests 19.76% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/utils/httpserver/server.go 55.55% <0.00%> (-5.56%) ⬇️

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

@sanketsudake
Copy link
Member Author

Related to #2599

@sanketsudake sanketsudake merged commit 6af5380 into main Nov 3, 2022
@sanketsudake sanketsudake deleted the cm-secret-namespaces branch December 1, 2022 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants