-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from spring-financial-group/bug/release_names…
…_not_working_with_multiple_releases fix: added failing test data for issues weve been seeing with aliases
- Loading branch information
Showing
32 changed files
with
421 additions
and
48 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
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,3 +1,4 @@ | ||
//go:build windows | ||
// +build windows | ||
|
||
package app | ||
|
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,4 +1,5 @@ | ||
//nolint | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package app | ||
|
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,3 +1,4 @@ | ||
//go:build integration | ||
// +build integration | ||
|
||
package promote_test | ||
|
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,3 +1,4 @@ | ||
//go:build unit | ||
// +build unit | ||
|
||
package promote_test | ||
|
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
16 changes: 16 additions & 0 deletions
16
pkg/rules/factory/test_data/helmfile-double-release-name-option-reversed/helmfile.yaml
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,16 @@ | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
releases: | ||
- name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
chart: ./dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
namespace: jx |
21 changes: 21 additions & 0 deletions
21
...s/factory/test_data/helmfile-double-release-name-option-reversed/helmfile.yaml.1.expected
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,21 @@ | ||
filepath: "" | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: ./dbmigrator | ||
name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
namespace: jx | ||
templates: {} | ||
renderedvalues: {} |
21 changes: 21 additions & 0 deletions
21
...s/factory/test_data/helmfile-double-release-name-option-reversed/helmfile.yaml.2.expected
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,21 @@ | ||
filepath: "" | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: ./dbmigrator | ||
name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.4 | ||
name: myapp-beta | ||
namespace: jx | ||
templates: {} | ||
renderedvalues: {} |
2 changes: 2 additions & 0 deletions
2
pkg/rules/factory/test_data/helmfile-double-release-name-option-reversed/options.yaml
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,2 @@ | ||
# test for when running `jx promote --release myapp-beta` | ||
release: myapp-beta |
16 changes: 16 additions & 0 deletions
16
pkg/rules/factory/test_data/helmfile-double-release-name-option/helmfile.yaml
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,16 @@ | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
releases: | ||
- name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
chart: ./dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
namespace: jx |
21 changes: 21 additions & 0 deletions
21
pkg/rules/factory/test_data/helmfile-double-release-name-option/helmfile.yaml.1.expected
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,21 @@ | ||
filepath: "" | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: ./dbmigrator | ||
name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
namespace: jx | ||
templates: {} | ||
renderedvalues: {} |
21 changes: 21 additions & 0 deletions
21
pkg/rules/factory/test_data/helmfile-double-release-name-option/helmfile.yaml.2.expected
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,21 @@ | ||
filepath: "" | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: ./dbmigrator | ||
name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.4 | ||
name: myapp-beta | ||
namespace: jx | ||
templates: {} | ||
renderedvalues: {} |
2 changes: 2 additions & 0 deletions
2
pkg/rules/factory/test_data/helmfile-double-release-name-option/options.yaml
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,2 @@ | ||
# test for when running `jx promote --release myapp-beta` | ||
release: myapp-beta |
16 changes: 16 additions & 0 deletions
16
pkg/rules/factory/test_data/helmfile-double-release/helmfile.yaml
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,16 @@ | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
releases: | ||
- name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
chart: ./dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
namespace: jx |
21 changes: 21 additions & 0 deletions
21
pkg/rules/factory/test_data/helmfile-double-release/helmfile.yaml.1.expected
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,21 @@ | ||
filepath: "" | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: ./dbmigrator | ||
name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
namespace: jx | ||
templates: {} | ||
renderedvalues: {} |
21 changes: 21 additions & 0 deletions
21
pkg/rules/factory/test_data/helmfile-double-release/helmfile.yaml.2.expected
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,21 @@ | ||
filepath: "" | ||
repositories: | ||
- name: yourorg | ||
url: https://yourorg.example.com/charts | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: ./dbmigrator | ||
name: dbmigrator | ||
labels: | ||
job: dbmigrator | ||
- chart: dev/myapp | ||
version: 1.2.4 | ||
name: myapp | ||
namespace: jx | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
namespace: jx | ||
templates: {} | ||
renderedvalues: {} |
6 changes: 6 additions & 0 deletions
6
pkg/rules/factory/test_data/helmfile-nested-double-release-name-option/helmfile.yaml
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,6 @@ | ||
filepath: "" | ||
helmfiles: | ||
- path: helmfiles/nginx/helmfile.yaml | ||
- path: helmfiles/jx/helmfile.yaml | ||
templates: {} | ||
renderedvalues: {} |
6 changes: 6 additions & 0 deletions
6
...rules/factory/test_data/helmfile-nested-double-release-name-option/helmfile.yaml.expected
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,6 @@ | ||
filepath: "" | ||
helmfiles: | ||
- path: helmfiles/nginx/helmfile.yaml | ||
- path: helmfiles/jx/helmfile.yaml | ||
templates: {} | ||
renderedvalues: {} |
15 changes: 15 additions & 0 deletions
15
...s/factory/test_data/helmfile-nested-double-release-name-option/helmfiles/jx/helmfile.yaml
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,15 @@ | ||
filepath: "" | ||
namespace: jx | ||
repositories: | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
templates: {} | ||
missingFileHandler: "" | ||
renderedvalues: {} |
14 changes: 14 additions & 0 deletions
14
...est_data/helmfile-nested-double-release-name-option/helmfiles/jx/helmfile.yaml.1.expected
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,14 @@ | ||
filepath: "" | ||
namespace: jx | ||
repositories: | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
templates: {} | ||
renderedvalues: {} |
14 changes: 14 additions & 0 deletions
14
...est_data/helmfile-nested-double-release-name-option/helmfiles/jx/helmfile.yaml.2.expected
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,14 @@ | ||
filepath: "" | ||
namespace: jx | ||
repositories: | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
- chart: dev/myapp | ||
version: 1.2.4 | ||
name: myapp-beta | ||
templates: {} | ||
renderedvalues: {} |
21 changes: 21 additions & 0 deletions
21
...actory/test_data/helmfile-nested-double-release-name-option/helmfiles/nginx/helmfile.yaml
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,21 @@ | ||
filepath: "" | ||
environments: | ||
default: | ||
values: | ||
- ../../jx-values.yaml | ||
- ../../versionStream/src/fake-secrets.yaml.gotmpl | ||
namespace: nginx | ||
repositories: | ||
- name: stable | ||
url: https://charts.helm.sh/stable | ||
releases: | ||
- chart: stable/nginx-ingress | ||
version: 1.39.1 | ||
name: nginx-ingress | ||
values: | ||
- ../../versionStream/charts/stable/nginx-ingress/values.yaml.gotmpl | ||
forceNamespace: "" | ||
skipDeps: null | ||
templates: {} | ||
missingFileHandler: "" | ||
renderedvalues: {} |
2 changes: 2 additions & 0 deletions
2
pkg/rules/factory/test_data/helmfile-nested-double-release-name-option/options.yaml
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,2 @@ | ||
# test for when running `jx promote --release myapp-beta` | ||
release: myapp-beta |
6 changes: 6 additions & 0 deletions
6
pkg/rules/factory/test_data/helmfile-nested-double-release/helmfile.yaml
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,6 @@ | ||
filepath: "" | ||
helmfiles: | ||
- path: helmfiles/nginx/helmfile.yaml | ||
- path: helmfiles/jx/helmfile.yaml | ||
templates: {} | ||
renderedvalues: {} |
6 changes: 6 additions & 0 deletions
6
pkg/rules/factory/test_data/helmfile-nested-double-release/helmfile.yaml.expected
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,6 @@ | ||
filepath: "" | ||
helmfiles: | ||
- path: helmfiles/nginx/helmfile.yaml | ||
- path: helmfiles/jx/helmfile.yaml | ||
templates: {} | ||
renderedvalues: {} |
15 changes: 15 additions & 0 deletions
15
pkg/rules/factory/test_data/helmfile-nested-double-release/helmfiles/jx/helmfile.yaml
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,15 @@ | ||
namespace: jx | ||
repositories: | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
templates: {} | ||
missingFileHandler: "" | ||
renderedvalues: {} | ||
|
14 changes: 14 additions & 0 deletions
14
...es/factory/test_data/helmfile-nested-double-release/helmfiles/jx/helmfile.yaml.1.expected
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,14 @@ | ||
filepath: "" | ||
namespace: jx | ||
repositories: | ||
- name: dev | ||
url: http://chartmuseum-jx.34.78.195.22.nip.io | ||
releases: | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp | ||
- chart: dev/myapp | ||
version: 1.2.3 | ||
name: myapp-beta | ||
templates: {} | ||
renderedvalues: {} |
Oops, something went wrong.