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
|
||||
// so that it can be accessed by helm and helmfile as a oci registry based chart repository.
|
||||
if config.LocalDockerRegistry.Enabled {
|
||||
containerName := "helmfile_docker_registry"
|
||||
containerName := strings.Join([]string{"helmfile_docker_registry", name}, "_")
|
||||
|
||||
hostPort := config.LocalDockerRegistry.Port
|
||||
if hostPort <= 0 {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
localDockerRegistry:
|
||||
enabled: true
|
||||
port: 5000
|
||||
port: 5001
|
||||
chartifyTempDir: temp2
|
||||
helmfileArgs:
|
||||
- template
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
repositories:
|
||||
- name: myrepo
|
||||
url: localhost:5000/myrepo
|
||||
url: localhost:5001/myrepo
|
||||
oci: true
|
||||
|
||||
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
|
||||
---
|
||||
# Source: raw/templates/resources.yaml
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
localDockerRegistry:
|
||||
enabled: true
|
||||
port: 5000
|
||||
port: 5002
|
||||
chartifyTempDir: temp1
|
||||
helmfileArgs:
|
||||
- template
|
||||
|
|
|
|||
|
|
@ -23,5 +23,5 @@ releases:
|
|||
bar: BAR
|
||||
dependencies:
|
||||
- alias: dep
|
||||
chart: oci://localhost:5000/myrepo/raw
|
||||
chart: oci://localhost:5002/myrepo/raw
|
||||
version: 0.1.0
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Building dependency release=foo, chart=$WD/temp1/foo
|
||||
Saving 1 charts
|
||||
Downloading raw from repo oci://localhost:5000/myrepo
|
||||
Downloading raw from repo oci://localhost:5002/myrepo
|
||||
Deleting outdated charts
|
||||
|
||||
Templating release=foo, chart=$WD/temp1/foo
|
||||
|
|
|
|||
Loading…
Reference in New Issue