From 01c1efb20b7d8e331ba0fd17955fdbb4d332db52 Mon Sep 17 00:00:00 2001 From: xjx <371425010@qq.com> Date: Tue, 5 Dec 2023 13:00:27 +0800 Subject: [PATCH] [Addon] fluxcd support decrypt in kustomize (#735) * feat: fluxcd support decrypt in kustomize #734 Signed-off-by: lilei * feat: update fluxcd addon metadata version Signed-off-by: lilei * fix: fix decryption provider parameter Signed-off-by: lilei --------- Signed-off-by: lilei Co-authored-by: lilei --- addons/fluxcd/definitions/kustomize.cue | 16 ++++++++++++++++ addons/fluxcd/metadata.yaml | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/addons/fluxcd/definitions/kustomize.cue b/addons/fluxcd/definitions/kustomize.cue index d330c3bf7..b6f351fa3 100644 --- a/addons/fluxcd/definitions/kustomize.cue +++ b/addons/fluxcd/definitions/kustomize.cue @@ -35,6 +35,14 @@ template: { } namespace: context.namespace } + if parameter.decryption != _|_ { + decryption: { + provider: parameter.decryption.provider + secretRef: { + name: parameter.decryption.secretRef.name + } + } + } path: parameter.path suspend: parameter.suspend prune: parameter.prune @@ -243,6 +251,14 @@ template: { // +usage=The name of the source already existed sourceName?: string + decryption?: { + // +usage=Determines which decrypt method to use. Defaults to sops + provider: string + secretRef: { + // +usage=Decrypt secretRef to use + name: string + } + } git?: { // +usage=The Git reference to checkout and monitor for changes, defaults to master branch branch: string diff --git a/addons/fluxcd/metadata.yaml b/addons/fluxcd/metadata.yaml index 5fc28fef4..dd0d1b80c 100644 --- a/addons/fluxcd/metadata.yaml +++ b/addons/fluxcd/metadata.yaml @@ -1,5 +1,5 @@ name: fluxcd -version: 2.3.9 +version: 2.4.0 description: Extended workload to do continuous and progressive delivery icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/flux/horizontal/color/flux-horizontal-color.png url: https://fluxcd.io