Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean: optimize post-render code #577

Merged
merged 1 commit into from
Dec 14, 2022
Merged

clean: optimize post-render code #577

merged 1 commit into from
Dec 14, 2022

Conversation

yxxhero
Copy link
Member

@yxxhero yxxhero commented Dec 14, 2022

clean: optimize post-render code

Signed-off-by: yxxhero <aiopsclub@163.com>
pkg/state/helmx.go Show resolved Hide resolved
@yxxhero yxxhero merged commit ecc8988 into main Dec 14, 2022
@yxxhero yxxhero deleted the add-postrender-test branch December 14, 2022 14:06
@@ -258,10 +258,6 @@ func (helm *execer) SyncRelease(context HelmContext, name, chart string, flags .
env["HELM_TILLER_HISTORY_MAX"] = strconv.Itoa(context.HistoryMax)
}

if helm.IsHelm3() && helm.postRenderer != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably we remove the postRenderer field out of the helmExec struct now as unused?

if helm.IsHelm3() {
switch {
// helm.GetPostRenderer() comes from cmd flag.
case helm.GetPostRenderer() != "":
Copy link
Member Author

Choose a reason for hiding this comment

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

@mumoshu helm.GetPostRenderer() != "" will get postRenderer of HelmExec.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah gotcha! Thanks for clarifying

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants