Skip to content

Commit

Permalink
remove e2e test for helm variable overrides
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Ferguson <[email protected]>
  • Loading branch information
rjferguson21 committed Sep 5, 2024
1 parent 7d4e48c commit 36bfd2e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
5 changes: 1 addition & 4 deletions src/pkg/utils/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ func ColorPrintYAML(data any, hints map[string]string, spaceRootLists bool) {

// Inject the hints into the colorized YAML
for key, value := range hints {
// add hints to root keys
pattern := fmt.Sprintf(`(?m)^\x1b\[(.*?)m\x1b\[(.*?)m%s`, regexp.QuoteMeta(key))
re := regexp.MustCompile(pattern)
outputYAML = re.ReplaceAllString(outputYAML, value)
outputYAML = strings.Replace(outputYAML, key, value, 1)
}

if !message.ColorEnabled() {
Expand Down
4 changes: 0 additions & 4 deletions src/test/e2e/09_component_compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ func (suite *CompositionSuite) Test_1_FullComposability() {
valuesFiles:
- files/test-values.yaml
- files/test-values.yaml
variables:
- name: MY_COLOR
description: The color of the podinfo pod
path: color
- name: podinfo-compose-two
version: 6.4.0
url: oci://ghcr.io/stefanprodan/charts/podinfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ resources:
memory: 16Mi
# Add some ephemeral storage for data injections
ephemeral-storage: 16Mi

color: pink
4 changes: 0 additions & 4 deletions src/test/packages/09-composable-packages/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ components:
namespace: podinfo-override
valuesFiles:
- files/test-values.yaml
variables:
- name: MY_COLOR
description: The color of the podinfo pod
path: color
- name: podinfo-compose-two
releaseName: podinfo-compose-two
version: 6.4.0
Expand Down

0 comments on commit 36bfd2e

Please sign in to comment.