Skip to content

Conversation

@j-martin
Copy link
Contributor

They are used by ArgoCD since they are passed to the chart, but they do not get rendered correctly in joy.

They are used by ArgoCD since they are passed to the chart, but
they do not get rendered correctly in joy.
@j-martin j-martin requested a review from alexstojda as a code owner October 15, 2025 18:26
@j-martin j-martin requested a review from a team October 15, 2025 18:26
@j-martin j-martin requested review from nwaller-nesto and removed request for a team, alexstojda, davidmdm, riclima and silphid October 15, 2025 18:26
Copy link

@nwaller-nesto nwaller-nesto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like a good fix and probably won't result in mass breakage

ReleaseName: params.Release.Name,
ChartPath: params.Chart.DirName(),
Values: values,
Namespace: cmp.Or(params.Release.Spec.Namespace, params.Release.Environment.Spec.Namespace, "default"),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still love cmp.Or

opts.ChartPath = strings.TrimPrefix(opts.ChartPath, "file://")

args := []string{"template", opts.ReleaseName, opts.ChartPath, "--values", "-", "--skip-tests"}
args := []string{"template", opts.ReleaseName, opts.ChartPath, "--values", "-", "--skip-tests", "--namespace", cmp.Or(opts.Namespace, "default")}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, that was an oversight. 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing is that we've been throwing everything in default, so nobody ever noticed.

@j-martin j-martin merged commit e754365 into master Oct 15, 2025
6 checks passed
@j-martin j-martin deleted the feat/PL-4041/actually-use-namespace branch October 15, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants