-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Better merging of operator & custom values so we can allow nested operators * different merge approach * changelog * codegen * codegen * change merge strategy to be compatible with yaml comments * Was not handling nil values * codegen
- Loading branch information
1 parent
feb141e
commit 49a2745
Showing
9 changed files
with
199 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
changelog: | ||
- type: NON_USER_FACING | ||
description: Helm gen enhancements to support new gloo-platform-chart. | ||
issueLink: https://github.com/solo-io/skv2/issues/407 | ||
|
This file contains 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
[[- $values := .BuildChartValues ]] | ||
|
||
[[- if $values.CustomValues ]] | ||
[[- toYaml $values.CustomValues ]] | ||
[[- end ]] | ||
|
||
[[ range $_, $operator := $values.Operators ]] | ||
[[ lower_camel $operator.Name ]]: | ||
[[ toYaml $operator.Values | indent 2]] | ||
[[- if $operator.CustomValues ]] | ||
[[ toYaml $operator.CustomValues | indent 2 ]] | ||
[[- end ]] | ||
[[- $customValues := toNode $values.CustomValues ]] | ||
[[- range $_, $operator := $values.Operators ]] | ||
[[- $customValues = mergeNodes $customValues (get_operator_values $operator) (get_operator_custom_values $operator) ]] | ||
[[- end ]] | ||
[[- fromNode $customValues ]] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
# Code generated by skv2. DO NOT EDIT. | ||
|
||
|
||
|
||
|
||
painter: | ||
enabled: true | ||
env: | ||
- name: FOO | ||
value: BAR | ||
floatingUserId: false | ||
image: | ||
pullPolicy: IfNotPresent | ||
registry: quay.io/solo-io | ||
repository: painter | ||
tag: v0.0.0 | ||
ports: {} | ||
runAsUser: 10101 | ||
serviceType: "" | ||
sidecars: | ||
palette: | ||
env: null | ||
image: | ||
enabled: true | ||
env: | ||
- name: FOO | ||
value: BAR | ||
floatingUserId: false | ||
image: | ||
pullPolicy: IfNotPresent | ||
registry: quay.io/solo-io | ||
repository: palette | ||
repository: painter | ||
tag: v0.0.0 | ||
ports: {} | ||
runAsUser: 10101 | ||
serviceType: "" | ||
sidecars: | ||
palette: | ||
env: null | ||
image: | ||
pullPolicy: IfNotPresent | ||
registry: quay.io/solo-io | ||
repository: palette | ||
tag: v0.0.0 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
# Code generated by skv2. DO NOT EDIT. | ||
|
||
|
||
|
||
|
||
painter: | ||
enabled: true | ||
env: | ||
- name: FOO | ||
value: BAR | ||
floatingUserId: false | ||
image: | ||
pullPolicy: IfNotPresent | ||
registry: quay.io/solo-io | ||
repository: painter | ||
tag: v0.0.0 | ||
ports: {} | ||
runAsUser: 10101 | ||
serviceType: "" | ||
sidecars: | ||
palette: | ||
env: null | ||
image: | ||
enabled: true | ||
env: | ||
- name: FOO | ||
value: BAR | ||
floatingUserId: false | ||
image: | ||
pullPolicy: IfNotPresent | ||
registry: quay.io/solo-io | ||
repository: palette | ||
repository: painter | ||
tag: v0.0.0 | ||
ports: {} | ||
runAsUser: 10101 | ||
serviceType: "" | ||
sidecars: | ||
palette: | ||
env: null | ||
image: | ||
pullPolicy: IfNotPresent | ||
registry: quay.io/solo-io | ||
repository: palette | ||
tag: v0.0.0 | ||
|
This file contains 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