Skip to content

Commit 5cb9f2a

Browse files
authored
Merge pull request #52 from controlplaneio-fluxcd/add-sync-provider
flux-instance: Add sync provider option
2 parents c4c5271 + 3bc958e commit 5cb9f2a

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

charts/flux-instance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ helm -n flux-system uninstall flux
4444
| instance.kustomize.patches | list | `[]` | Kustomize patches https://fluxcd.control-plane.io/operator/fluxinstance/#kustomize-patches |
4545
| instance.sharding | object | `{"key":"sharding.fluxcd.io/key","shards":[]}` | Sharding https://fluxcd.control-plane.io/operator/fluxinstance/#sharding-configuration |
4646
| instance.storage | object | `{"class":"","size":""}` | Storage https://fluxcd.control-plane.io/operator/fluxinstance/#storage-configuration |
47-
| instance.sync | object | `{"interval":"1m","kind":"GitRepository","name":"","path":"","pullSecret":"","ref":"","url":""}` | Sync https://fluxcd.control-plane.io/operator/fluxinstance/#sync-configuration |
47+
| instance.sync | object | `{"interval":"1m","kind":"GitRepository","name":"","path":"","provider":"","pullSecret":"","ref":"","url":""}` | Sync https://fluxcd.control-plane.io/operator/fluxinstance/#sync-configuration |
4848
| nameOverride | string | `""` | |
4949

5050
## Source Code

charts/flux-instance/templates/instance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ spec:
4747
{{- if .Values.instance.sync.name }}
4848
name: {{ .Values.instance.sync.name }}
4949
{{- end }}
50+
{{- if .Values.instance.sync.provider }}
51+
provider: {{ .Values.instance.sync.provider }}
52+
{{- end }}
5053
{{- if .Values.instance.sync.pullSecret }}
5154
pullSecret: {{ .Values.instance.sync.pullSecret }}
5255
{{- end }}

charts/flux-instance/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@
148148
"path": {
149149
"type": "string"
150150
},
151+
"provider": {
152+
"type": "string"
153+
},
151154
"pullSecret": {
152155
"type": "string"
153156
},

charts/flux-instance/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ instance:
4545
path: ""
4646
pullSecret: ""
4747
name: ""
48+
provider: ""
4849
kustomize: # @schema required: false
4950
# -- Kustomize patches https://fluxcd.control-plane.io/operator/fluxinstance/#kustomize-patches
5051
patches: [] # @schema item: object

charts/flux-operator/values.schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@
9494
},
9595
"image": {
9696
"properties": {
97+
"imagePullPolicy": {
98+
"enum": [
99+
"IfNotPresent",
100+
"Always",
101+
"Never"
102+
],
103+
"type": "string"
104+
},
97105
"pullSecrets": {
98106
"items": {
99107
"type": "object"

0 commit comments

Comments
 (0)