fix snapshot tests random error (#985)
* fix snapshot tests random error Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
9c04f9e0dd
commit
c3292f141c
|
|
@ -172,7 +172,7 @@ func testHelmfileTemplateWithBuildCommand(t *testing.T, goccyGoYaml bool) {
|
||||||
// run the docker registry v2 and push the test charts to the registry
|
// run the docker registry v2 and push the test charts to the registry
|
||||||
// so that it can be accessed by helm and helmfile as a oci registry based chart repository.
|
// so that it can be accessed by helm and helmfile as a oci registry based chart repository.
|
||||||
if config.LocalDockerRegistry.Enabled {
|
if config.LocalDockerRegistry.Enabled {
|
||||||
containerName := "helmfile_docker_registry"
|
containerName := strings.Join([]string{"helmfile_docker_registry", name}, "_")
|
||||||
|
|
||||||
hostPort := config.LocalDockerRegistry.Port
|
hostPort := config.LocalDockerRegistry.Port
|
||||||
if hostPort <= 0 {
|
if hostPort <= 0 {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
localDockerRegistry:
|
localDockerRegistry:
|
||||||
enabled: true
|
enabled: true
|
||||||
port: 5000
|
port: 5001
|
||||||
chartifyTempDir: temp2
|
chartifyTempDir: temp2
|
||||||
helmfileArgs:
|
helmfileArgs:
|
||||||
- template
|
- template
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
repositories:
|
repositories:
|
||||||
- name: myrepo
|
- name: myrepo
|
||||||
url: localhost:5000/myrepo
|
url: localhost:5001/myrepo
|
||||||
oci: true
|
oci: true
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
Pulling localhost:5000/myrepo/raw:0.1.0
|
Pulling localhost:5001/myrepo/raw:0.1.0
|
||||||
Templating release=foo, chart=$TMP/foo/raw/0.1.0/raw
|
Templating release=foo, chart=$TMP/foo/raw/0.1.0/raw
|
||||||
---
|
---
|
||||||
# Source: raw/templates/resources.yaml
|
# Source: raw/templates/resources.yaml
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
localDockerRegistry:
|
localDockerRegistry:
|
||||||
enabled: true
|
enabled: true
|
||||||
port: 5000
|
port: 5002
|
||||||
chartifyTempDir: temp1
|
chartifyTempDir: temp1
|
||||||
helmfileArgs:
|
helmfileArgs:
|
||||||
- template
|
- template
|
||||||
|
|
|
||||||
|
|
@ -23,5 +23,5 @@ releases:
|
||||||
bar: BAR
|
bar: BAR
|
||||||
dependencies:
|
dependencies:
|
||||||
- alias: dep
|
- alias: dep
|
||||||
chart: oci://localhost:5000/myrepo/raw
|
chart: oci://localhost:5002/myrepo/raw
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
Building dependency release=foo, chart=$WD/temp1/foo
|
Building dependency release=foo, chart=$WD/temp1/foo
|
||||||
Saving 1 charts
|
Saving 1 charts
|
||||||
Downloading raw from repo oci://localhost:5000/myrepo
|
Downloading raw from repo oci://localhost:5002/myrepo
|
||||||
Deleting outdated charts
|
Deleting outdated charts
|
||||||
|
|
||||||
Templating release=foo, chart=$WD/temp1/foo
|
Templating release=foo, chart=$WD/temp1/foo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue