helmfile:在发行版安装/卸载之前/之后运行prepare / cleanup脚本

时间:2020-11-05 15:45:03

标签: kubernetes-helm helmfile

我正在使用helmfile部署带有postsync挂钩的发行版。 例如:

  hooks:
  - events: ["postsync"]
    showlogs: true
    command: "./create_namespace.sh"
    args: ['{{`{{.Release.Namespace}}`}}', '{{`{{ .Values.kubeContext}}`}}']

但是我现在遇到的问题是,此挂钩在安装后以及卸载后都执行,我想实现的是:

  • 安装后,运行脚本,例如:post_install.sh
  • 卸载后,运行脚本,例如:cleanup.sh

0 个答案:

没有答案