fix snapshot tests random error (#985)

* fix snapshot tests random error

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2023-08-23 10:00:10 +08:00 committed by GitHub
parent 9c04f9e0dd
commit c3292f141c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -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 {

View File

@ -1,6 +1,6 @@
localDockerRegistry:
enabled: true
port: 5000
port: 5001
chartifyTempDir: temp2
helmfileArgs:
- template

View File

@ -1,6 +1,6 @@
repositories:
- name: myrepo
url: localhost:5000/myrepo
url: localhost:5001/myrepo
oci: true
releases:

View File

@ -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

View File

@ -1,6 +1,6 @@
localDockerRegistry:
enabled: true
port: 5000
port: 5002
chartifyTempDir: temp1
helmfileArgs:
- template

View File

@ -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

View File

@ -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