Skip to content

Commit 98772be

Browse files
authored
🐛 Fix templating of cluster-addon-values.yaml (#130)
* Fix templating of cluster-addon-values.yaml Fixes #116 Signed-off-by: Roman Hros <roman.hros@dnation.cloud> --------- Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
1 parent 2182fa7 commit 98772be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func (c *CreateOptions) generateRelease() error {
284284
}
285285
} else {
286286
// Copy the cluster-addon-values.yaml config to release if old way
287-
clusterAddonData, err := os.ReadFile(filepath.Join(c.ClusterStackPath, "cluster-addon-values.yaml"))
287+
clusterAddonData, err := os.ReadFile(filepath.Join(".tmp", "cluster-addon-values.yaml"))
288288
if err != nil {
289289
return fmt.Errorf("failed to read cluster-addon-values.yaml: %w", err)
290290
}

tests/cluster-stacks/docker/ferrol/cluster-addon-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ values: |
22
metrics-server:
33
commonLabels:
44
domain: "{{ .Cluster.spec.controlPlaneEndpoint.host }}"
5-
clusterAddonVersion: "v2"
5+
clusterAddonVersion: "<< .ClusterAddonVersion >>"

0 commit comments

Comments
 (0)