generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 148
feat: Extend the text based configuration to include feature flags and the SaturationDetector's configuration #1492
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
Open
shmuelk
wants to merge
17
commits into
kubernetes-sigs:main
Choose a base branch
from
shmuelk:extended-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
bfbe771
Extended the existing EPP text config 'CRD like' file
shmuelk 42d6db5
Extended the existing EPP config
shmuelk d1b41a6
Extended the EPP config loader with featureGAtes and the SaturationDe…
shmuelk edf802e
Updated the runner to use the new EPP config data
shmuelk 3492e4e
Updated tests due to API changes
shmuelk 7c1e383
Removed old SaturationDetector config loader code
shmuelk a2f557b
Corrected GO doc
shmuelk 8f16d98
Added documentation to the configuration guide
shmuelk e238cd4
Changed FeatureGAtes to a map[string]bool
shmuelk f8afdea
Changed FeatureGates to a map[string]bool
shmuelk 98e766d
Added registration of FeatureGates
shmuelk bc7e7b0
Updated config loading to support FeatureGates as a map[string]bool
shmuelk e39e926
Changes due FeatureGates being a map[string]bool
shmuelk 7d93f0b
Updates to tests due to API changes
shmuelk a7bffdf
FeatureGates is no longer a pointer to a map[string]bool
shmuelk 6fdca6a
Loader changes due to FeatureGates no longer being a pointer
shmuelk cd0dcdc
Test updates due to FeatureGates no longer being a pointer
shmuelk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think this is too specific and should be generalized.
we've talked in the past about having a parameters section in the config API, such that multiple structs in the code can consume. for example, I might want to consume the metricsStalenessThreshold in more places.
This approach is not future proof and we might need to add more and more fields here instead of just generalizing.
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.
Parts of the code, "just knowing" what parameters they are looking for in a pool of parameters, is as error prone as environment variables. A typo will cause a parameter to be ignored and presumably a default value will be used. I believe this will be hard to "debug" scenarios like this.
The sections need to be explicit.
As for having constants as I did or references to a parameter, that is a different issue. It does however make for a very verbose configuration. With the need for more validation code. Unless you do something like: