Skip to content

Commit 7da90f1

Browse files
committed
Add support for decryption
1 parent 541db92 commit 7da90f1

File tree

6 files changed

+23
-0
lines changed

6 files changed

+23
-0
lines changed

modules/flux-git-sync/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ timoni -n flux-system delete my-repo-sync
4444
| `substituteFrom:` | `[...{kind: string, name: string, optional: bool}]` | `[]` | List of ConfigMaps and Secrets to use for variable substitution |
4545
| `dependsOn:` | `[...{name: string}]` | `{}` | List of dependencies |
4646
| `patches:` | `[...{patch: {...}}]` | `{}` | Strategic merge and JSON patches, defined as inline YAML objects |
47+
| `decryption:` | `{provider: string, secretRef: { name: string}}` | `{}` | Configure [decryption](https://fluxcd.io/flux/components/kustomize/kustomizations/#decryption) |
4748
| `metadata: labels:` | `{[ string]: string}` | `{}` | Custom labels |
4849
| `metadata: annotations:` | `{[ string]: string}` | `{}` | Custom annotations |

modules/flux-git-sync/templates/config.cue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ import (
6868
version?: string
6969
}
7070
}]
71+
72+
decryption?: {
73+
provider: string
74+
secretRef?: {
75+
name: string
76+
}
77+
}
7178
}
7279

7380
// Instance takes the config values and outputs the Kubernetes objects.

modules/flux-git-sync/templates/kustomization.cue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@ import (
4343
if #config.patches != _|_ {
4444
patches: [for p in #config.patches {patch: json.Marshal(p.patch), target: p.target}]
4545
}
46+
47+
if #config.decryption != _|_ {
48+
decryption: #config.decryption
49+
}
4650
}
4751
}

modules/flux-oci-sync/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ timoni -n flux-system delete my-repo-sync
4545
| `substituteFrom:` | `[...{kind: string, name: string, optional: bool}]` | `[]` | List of ConfigMaps and Secrets to use for variable substitution |
4646
| `dependsOn:` | `[...{name: string}]` | `{}` | List of dependencies |
4747
| `patches:` | `[...{patch: {...}}]` | `{}` | Strategic merge and JSON patches, defined as inline YAML objects |
48+
| `decryption:` | `{provider: string, secretRef: { name: string}}` | `{}` | Configure [decryption](https://fluxcd.io/flux/components/kustomize/kustomizations/#decryption) |
4849
| `metadata: labels:` | `{[ string]: string}` | `{}` | Custom labels |
4950
| `metadata: annotations:` | `{[ string]: string}` | `{}` | Custom annotations |

modules/flux-oci-sync/templates/config.cue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ import (
7979
version?: string
8080
}
8181
}]
82+
83+
decryption?: {
84+
provider: string
85+
secretRef?: {
86+
name: string
87+
}
88+
}
8289
}
8390

8491
// Instance takes the config values and outputs the Kubernetes objects.

modules/flux-oci-sync/templates/kustomization.cue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ import (
3939
if #config.patches != _|_ {
4040
patches: [for p in #config.patches {patch: json.Marshal(p.patch), target: p.target}]
4141
}
42+
if #config.decryption != _|_ {
43+
decryption: #config.decryption
44+
}
4245
}
4346
}

0 commit comments

Comments
 (0)