Skip to content

Commit

Permalink
🐛 Fix templating of cluster-addon-values.yaml (#130)
Browse files Browse the repository at this point in the history
* Fix templating of cluster-addon-values.yaml

Fixes #116

Signed-off-by: Roman Hros <[email protected]>

---------

Signed-off-by: Roman Hros <[email protected]>
  • Loading branch information
chess-knight authored May 30, 2024
1 parent 2182fa7 commit 98772be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (c *CreateOptions) generateRelease() error {
}
} else {
// Copy the cluster-addon-values.yaml config to release if old way
clusterAddonData, err := os.ReadFile(filepath.Join(c.ClusterStackPath, "cluster-addon-values.yaml"))
clusterAddonData, err := os.ReadFile(filepath.Join(".tmp", "cluster-addon-values.yaml"))
if err != nil {
return fmt.Errorf("failed to read cluster-addon-values.yaml: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ values: |
metrics-server:
commonLabels:
domain: "{{ .Cluster.spec.controlPlaneEndpoint.host }}"
clusterAddonVersion: "v2"
clusterAddonVersion: "<< .ClusterAddonVersion >>"

0 comments on commit 98772be

Please sign in to comment.