Skip to content

Commit

Permalink
[Addon] fluxcd support decrypt in kustomize (#735)
Browse files Browse the repository at this point in the history
* feat: fluxcd support decrypt in kustomize #734

Signed-off-by: lilei <[email protected]>

* feat: update fluxcd addon metadata version

Signed-off-by: lilei <[email protected]>

* fix: fix decryption provider parameter

Signed-off-by: lilei <[email protected]>

---------

Signed-off-by: lilei <[email protected]>
Co-authored-by: lilei <[email protected]>
  • Loading branch information
xjxtree and lilei authored Dec 5, 2023
1 parent 6638953 commit 01c1efb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions addons/fluxcd/definitions/kustomize.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion addons/fluxcd/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 01c1efb

Please sign in to comment.