@@ -1291,13 +1291,12 @@ deployments:
12911291- name: deployment
12921292 helm:
12931293 componentChart: true
1294- values:
1295- containers:
1296- - image: nginx
1294+ valuesFiles:
1295+ - test.yaml
12971296profiles:
12981297- name: testprofile
12991298 patches:
1300- - path: deployments..image
1299+ - path: deployments..valuesFiles[0]
13011300 op: replace
13021301 value: $(echo ubuntu)
13031302` ,
@@ -1314,12 +1313,8 @@ profiles:
13141313 Name : "deployment" ,
13151314 Helm : & latest.HelmConfig {
13161315 ComponentChart : ptr .Bool (true ),
1317- Values : map [interface {}]interface {}{
1318- "containers" : []interface {}{
1319- map [interface {}]interface {}{
1320- "image" : "ubuntu" ,
1321- },
1322- },
1316+ ValuesFiles : []string {
1317+ "ubuntu" ,
13231318 },
13241319 },
13251320 },
@@ -1420,7 +1415,7 @@ profiles:
14201415 Values : map [interface {}]interface {}{
14211416 "containers" : []interface {}{
14221417 map [interface {}]interface {}{
1423- "image" : "ubuntu " ,
1418+ "image" : "${IMAGE_B} " ,
14241419 },
14251420 },
14261421 },
@@ -1440,18 +1435,17 @@ deployments:
14401435- name: deployment
14411436 helm:
14421437 componentChart: true
1443- values:
1444- containers:
1445- - image: nginx
1438+ valuesFiles:
1439+ - test.yaml
14461440profiles:
14471441- name: A
14481442 patches:
1449- - path: deployments..image
1443+ - path: deployments..valuesFiles[0]
14501444 op: replace
14511445 value: $(echo ${IMAGE_A})
14521446- name: B
14531447 patches:
1454- - path: deployments..image
1448+ - path: deployments..valuesFiles[0]
14551449 op: replace
14561450 value: $(echo ${IMAGE_B})
14571451` ,
@@ -1466,12 +1460,8 @@ profiles:
14661460 Name : "deployment" ,
14671461 Helm : & latest.HelmConfig {
14681462 ComponentChart : ptr .Bool (true ),
1469- Values : map [interface {}]interface {}{
1470- "containers" : []interface {}{
1471- map [interface {}]interface {}{
1472- "image" : "ubuntu" ,
1473- },
1474- },
1463+ ValuesFiles : []string {
1464+ "ubuntu" ,
14751465 },
14761466 },
14771467 },
@@ -2052,7 +2042,7 @@ profiles:
20522042- name: A
20532043 activation:
20542044 - vars:
2055- USE_A: true
2045+ USE_A: " true"
20562046 patches:
20572047 - path: deployments..image
20582048 op: replace
@@ -2104,7 +2094,7 @@ profiles:
21042094- name: A
21052095 activation:
21062096 - vars:
2107- USE_A: true
2097+ USE_A: " true"
21082098 patches:
21092099 - path: deployments..image
21102100 op: replace
0 commit comments