-
Notifications
You must be signed in to change notification settings - Fork 202
Add GroupChangeLog
feature gate to fix es indexing cardinality
#1361
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
Conversation
main.go
Outdated
flag.BoolVar(&esLogging, "es-logging", false, | ||
"Reduces cardinality in Elasticsearch by not using the kubernetes object as field name in logs") |
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.
Please remove this and add a feature flag called GroupedChangelog
here: internal/features/features.go, also please use this name in all code instead of EsLogging
.
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.
Updated and tested
{"level":"info","ts":"2025-02-13T12:07:31.518Z","logger":"setup","msg":"loading feature gate","GroupChangeLog":true}
internal/features/features.go
Outdated
@@ -59,6 +63,9 @@ var features = map[string]bool{ | |||
// StrictPostBuildSubstitutions | |||
// opt-in from v1.3 | |||
StrictPostBuildSubstitutions: false, | |||
// GroupChangeLog | |||
// opt-in from v2.5 |
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.
This refers to the kustomize-controller version, should be v1.5
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.
ah sorry, fixed
GroupChangeLog
feature gate to fix es indexing cardinality
@94DanielBrown can you please squash all commits into one, then I can merge. Thanks! |
@94DanielBrown can you please signoff you commit |
@94DanielBrown see here how to signoff on the commit https://github.com/fluxcd/kustomize-controller/pull/1361/checks?check_run_id=37178702532 |
Signed-off-by: Daniel Brown <[email protected]>
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
Thanks @94DanielBrown 🏅
Final step is to document the feature gate here: https://github.com/fluxcd/website/blob/main/content/en/flux/components/kustomize/options.md#feature-gates |
GroupChangeLog
feature gate to fix es indexing cardinalityGroupChangeLog
feature gate to fix es indexing cardinality
Tested in kind
FYI I got error when using flux install to test
But installing with this worked fine as crd was v1 not v1beta2
k apply -f https://github.com/fluxcd/flux2/releases/latest/download/install.yaml
example logs from applying kustomization after