diff --git a/kluctl.nix b/kluctl.nix index 2f2af4a..3f11ecd 100644 --- a/kluctl.nix +++ b/kluctl.nix @@ -22,12 +22,20 @@ in default = "easykubenix"; }; preDeployScript = lib.mkOption { + type = lib.types.lines; description = '' Bash script that runs just before deploying, useful to push manifests to a binary cache. JSON manifest file is passed as first argument ''; default = ""; }; + postDeployScript = lib.mkOption { + type = lib.types.lines; + description = '' + Bash script that runs just after deploying, used by nix-csi to clean secrets from store + ''; + default = ""; + }; project = lib.mkOption { type = settingsFormat.type; description = "Anything to be rendered into .kluctl.yaml"; @@ -169,6 +177,7 @@ in --discriminator ${cfg.discriminator} \ --project-dir ${cfg.projectDir} \ $@ # --dry-run? --yes? --prune! + ${cfg.postDeployScript} ''; }; }