-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat(controller): Add a shared index informer for ConfigMaps #6644
Conversation
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
|
||
const ConfigMapTypeLabel = "workflows.argoproj.io/configmap-type" | ||
|
||
func ConfigMapIndexFunc(obj interface{}) ([]string, error) { |
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.
👍
corev1 "k8s.io/api/core/v1" | ||
) | ||
|
||
func TestConfigMapIndexFunc(t *testing.T) { |
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.
👍
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #6644 +/- ##
==========================================
+ Coverage 48.50% 48.53% +0.02%
==========================================
Files 261 262 +1
Lines 18978 18991 +13
==========================================
+ Hits 9206 9218 +12
+ Misses 8746 8743 -3
- Partials 1026 1030 +4
Continue to review full report at Codecov.
|
@sarabala1979 this is some pre-work that @terrytangyuan is doing for one of the top voted issues. |
…rgoproj#3523, argoproj#2063 Signed-off-by: Alex Collins <alex_collins@intuit.com> mre Signed-off-by: Alex Collins <alex_collins@intuit.com> bits Signed-off-by: Alex Collins <alex_collins@intuit.com> fix(executor): Disambiguate PNS executor initialization log (argoproj#6582) Signed-off-by: Yuan Tang <terrytangyuan@gmail.com> ci: Disable builds on forks (argoproj#6589) Signed-off-by: Yuan Tang <terrytangyuan@gmail.com> fix!: Enable authentication by default on Argo Server `/metrics` endpoint. Fixes argoproj#6592 (argoproj#6595) Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> chore: Upgrade cobra to v1.2.1 (argoproj#6597) Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> docs: Document auth rate limiting. Fixes argoproj#5217 docs: Document IP address logging. Fixes argoproj#5216 fix: Fix `gosec` warnings, disable pprof by default. Fixes argoproj#6594 (argoproj#6596) Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> fix tests Signed-off-by: Alex Collins <alex_collins@intuit.com> fix/skip tests Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> o Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> docs: Fix template-defaults duplicated in docs and add missing whitespace in h1 (argoproj#6601) Signed-off-by: Michael Pöllath <mpoellath.dev@gmail.com> docs: fix continue on failure dag example (argoproj#6609) Signed-off-by: Siebren Zwerver <siebren@siebjee.nl> fix: manifests/quick-start/sso for running locally PROFILE=sso (argoproj#6503) Signed-off-by: Tetsuya Shiota <tetsuya.shiota.1231@gmail.com> chore: Run `make codegen` Signed-off-by: Alex Collins <alex_collins@intuit.com> build: disable UI by default for `make start` docs: Document argoproj#6297 breaking change (argoproj#6616) docs: Remove sym-links from docs (argoproj#6617) Signed-off-by: Alex Collins <alex_collins@intuit.com> upgrade to v0.0.9 Signed-off-by: Alex Collins <alex_collins@intuit.com> fix test Signed-off-by: Alex Collins <alex_collins@intuit.com> fix tests Signed-off-by: Alex Collins <alex_collins@intuit.com> add missing label selector Signed-off-by: Alex Collins <alex_collins@intuit.com> add transport wrappers Signed-off-by: Alex Collins <alex_collins@intuit.com> fix clean-up keys Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> fix: quay.io stuffs Signed-off-by: Alex Collins <alex_collins@intuit.com> fix: support in-cluster correctly Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> fix(controller): Initialize throttler during starting workflow-controller. Fixes: argoproj#6599 (argoproj#6608) Signed-off-by: smile-luobin <smile.luobin@gmail.com> docs: Add slack exit handler example. Resolves argoproj#4152 (argoproj#6612) Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com> fix: Argo Workflow specs link to not go to raw content (argoproj#6624) Signed-off-by: Andrey Melnikov <vafilor@gmail.com> ci: Build Docker manifest with complete dep list (argoproj#6621) Signed-off-by: Curtis Vogt <curtis.vogt@gmail.com> fix: Upgrade Dataflow to v0.0.96 (argoproj#6622) Signed-off-by: Alex Collins <alex_collins@intuit.com> ok Signed-off-by: Alex Collins <alex_collins@intuit.com> docs: Fix incorrect link to examples (argoproj#6630) Signed-off-by: Yuan Tang <terrytangyuan@gmail.com> fix: Fixed typo in clusterrole (argoproj#6626) Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com> build: Fix repository prefix (argoproj#6636) Signed-off-by: Alex Collins <alex_collins@intuit.com> feat: Upgrade dataflow to v0.0.98 (argoproj#6637) Signed-off-by: Alex Collins <alex_collins@intuit.com> docs: correct https://bit.ly/book-30m-with-argo-team URL feat(controller): Add a shared index informer for ConfigMaps (argoproj#6644) Signed-off-by: Yuan Tang <terrytangyuan@gmail.com> Fix duplicated import Signed-off-by: J.P. Zivalich <j.p.zivalich@gmail.com>
This PR adds the informer for ConfigMaps based on our discussion. Let me know if this aligns with what you had in mind.
cc @alexec @sarabala1979
Signed-off-by: Yuan Tang terrytangyuan@gmail.com