parent
							
								
									4d0ba2043f
								
							
						
					
					
						commit
						a75fad1baa
					
				|  | @ -224,7 +224,12 @@ func testHelmfileTemplateWithBuildCommand(t *testing.T, goccyGoYaml bool) { | ||||||
| 			t.Logf("Using HELM_CACHE_HOME=%s, HELMFILE_CACHE_HOME=%s, HELM_CONFIG_HOME=%s", helmCacheHome, helmfileCacheHome, helmConfigHome) | 			t.Logf("Using HELM_CACHE_HOME=%s, HELMFILE_CACHE_HOME=%s, HELM_CONFIG_HOME=%s", helmCacheHome, helmfileCacheHome, helmConfigHome) | ||||||
| 
 | 
 | ||||||
| 			inputFile := filepath.Join(testdataDir, name, "input.yaml.gotmpl") | 			inputFile := filepath.Join(testdataDir, name, "input.yaml.gotmpl") | ||||||
| 			outputFile := filepath.Join(testdataDir, name, "output.yaml") | 			outputFile := "" | ||||||
|  | 			if goccyGoYaml { | ||||||
|  | 				outputFile = filepath.Join(testdataDir, name, "goccy-go-yaml-output.yaml") | ||||||
|  | 			} else { | ||||||
|  | 				outputFile = filepath.Join(testdataDir, name, "gopkg.in-yaml.v3-output.yaml") | ||||||
|  | 			} | ||||||
| 
 | 
 | ||||||
| 			ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) | 			ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) | ||||||
| 			defer cancel() | 			defer cancel() | ||||||
|  |  | ||||||
|  | @ -0,0 +1,37 @@ | ||||||
|  | --- | ||||||
|  | #  Source: __workingdir__/testdata/snapshot/issue_2098_release_template_needs/input.yaml.gotmpl | ||||||
|  | 
 | ||||||
|  | filepath: input.yaml.gotmpl | ||||||
|  | helmBinary: helm | ||||||
|  | kustomizeBinary: kustomize | ||||||
|  | environments: | ||||||
|  |   default: {} | ||||||
|  | repositories: | ||||||
|  |   - name: aservo | ||||||
|  |     url: https://aservo.github.io/charts | ||||||
|  | releases: | ||||||
|  |   - chart: aservo/util | ||||||
|  |     version: 0.0.1 | ||||||
|  |     name: default-shared-resources | ||||||
|  |     namespace: default | ||||||
|  |     labels: | ||||||
|  |       chart: util | ||||||
|  |       name: default-shared-resources | ||||||
|  |       namespace: default | ||||||
|  |       service: shared-resources | ||||||
|  |   - chart: aservo/util | ||||||
|  |     version: 0.0.1 | ||||||
|  |     needs: | ||||||
|  |       - default/default-shared-resources | ||||||
|  |     name: default-release-resources | ||||||
|  |     namespace: default | ||||||
|  |     labels: | ||||||
|  |       chart: util | ||||||
|  |       name: default-release-resources | ||||||
|  |       namespace: default | ||||||
|  |       service: release-resources | ||||||
|  | templates: | ||||||
|  |   defaults: | ||||||
|  |     name: default-{{ .Release.Labels.service }} | ||||||
|  |     namespace: default | ||||||
|  | renderedvalues: {} | ||||||
		Loading…
	
		Reference in New Issue