-
Notifications
You must be signed in to change notification settings - Fork 550
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
Enforce parity between Jsonnet and Helm #2067
Conversation
b176096
to
328d307
Compare
0368970
to
6778644
Compare
1346d82
to
535f176
Compare
7ae9392
to
e9eba30
Compare
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.
that's how far i got today
operations/compare-helm-with-jsonnet/plugins/resolve-config/full-input.yaml
Outdated
Show resolved
Hide resolved
b3733ce
to
8806d5f
Compare
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, it's a hefty piece of work
operations/compare-helm-with-jsonnet/helm/03-set-namespace/kustomization.yaml
Outdated
Show resolved
Hide resolved
operations/compare-helm-with-jsonnet/helm/06-services/kustomization.yaml
Outdated
Show resolved
Hide resolved
metadata: | ||
name: mimir-config | ||
|
||
# TODO(logiraptor): Helm adds a grpc port to the overrides exporter, Jsonnet does not. |
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.
Are you calling dibs on all the TODOs? /s
operations/compare-helm-with-jsonnet/plugins/resolve-config/main.go
Outdated
Show resolved
Hide resolved
flagSet.Bool("config.expand-env", false, "") | ||
flagSet.Int("mem-ballast-size-bytes", 0, "") |
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.
Why are these two needed?
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.
Added a comment to help explain. It's a little hacky tbh. Basically these are the only two used in either jsonnet or helm that aren't defined in the configuration struct.
operations/compare-helm-with-jsonnet/plugins/resolve-config/main_test.go
Outdated
Show resolved
Hide resolved
ce8860e
to
6e100d8
Compare
trivial rebase |
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.
Some nits and a question about the Makefile
operations/compare-helm-with-jsonnet/helm/06-pods/kustomization.yaml
Outdated
Show resolved
Hide resolved
operations/compare-helm-with-jsonnet/helm/06-pods/kustomization.yaml
Outdated
Show resolved
Hide resolved
operations/compare-helm-with-jsonnet/helm/06-pods/kustomization.yaml
Outdated
Show resolved
Hide resolved
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Helm <> Jsonnet Diff 🎉 No differences where detected between Helm and Jsonnet 🎉 |
What this PR does
Use kustomize to compare Jsonnet with Helm automatically.
See the section in docs for more information.
Which issue(s) this PR fixes or relates to
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]