Skip to content

Commit

Permalink
Merge pull request #27 from controlplaneio-fluxcd/instance-sharding
Browse files Browse the repository at this point in the history
flux-instance: Add `instance.sharding` to values
  • Loading branch information
stefanprodan authored Sep 16, 2024
2 parents 2dde873 + 4fd19fb commit d710229
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/flux-instance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ helm -n flux-system uninstall flux
| instance.components | list | `["source-controller","kustomize-controller","helm-controller","notification-controller"]` | Components https://fluxcd.control-plane.io/operator/fluxinstance/#components-configuration |
| instance.distribution | object | `{"artifact":"oci://ghcr.io/controlplaneio-fluxcd/flux-operator-manifests:latest","imagePullSecret":"","registry":"ghcr.io/fluxcd","version":"2.x"}` | Distribution https://fluxcd.control-plane.io/operator/fluxinstance/#distribution-configuration |
| instance.kustomize.patches | list | `[]` | Kustomize patches https://fluxcd.control-plane.io/operator/fluxinstance/#kustomize-patches |
| instance.sharding | object | `{"key":"sharding.fluxcd.io/key","shards":[]}` | Sharding https://fluxcd.control-plane.io/operator/fluxinstance/#sharding-configuration |
| instance.storage | object | `{"class":"","size":""}` | Storage https://fluxcd.control-plane.io/operator/fluxinstance/#storage-configuration |
| instance.sync | object | `{"kind":"GitRepository","path":"","pullSecret":"","ref":"","url":""}` | Sync https://fluxcd.control-plane.io/operator/fluxinstance/#sync-configuration |
| nameOverride | string | `""` | |
Expand Down
5 changes: 5 additions & 0 deletions charts/flux-instance/templates/instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ spec:
{{- if .Values.instance.storage.size }}
storage: {{ .Values.instance.storage | toYaml | nindent 4 }}
{{- end }}
{{- if .Values.instance.sharding.shards }}
sharding:
key: {{ .Values.instance.sharding.key }}
shards: {{ .Values.instance.sharding.shards | toYaml | nindent 4 }}
{{- end }}
14 changes: 14 additions & 0 deletions charts/flux-instance/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@
},
"type": "object"
},
"sharding": {
"properties": {
"key": {
"type": "string"
},
"shards": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"storage": {
"properties": {
"class": {
Expand Down
4 changes: 4 additions & 0 deletions charts/flux-instance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ instance:
storage: # @schema required: false
class: ""
size: ""
# -- Sharding https://fluxcd.control-plane.io/operator/fluxinstance/#sharding-configuration
sharding: # @schema required: false
key: "sharding.fluxcd.io/key"
shards: [] # @schema item: string
# -- Sync https://fluxcd.control-plane.io/operator/fluxinstance/#sync-configuration
sync: # @schema required: false
kind: "GitRepository" # @schema enum:[GitRepository,OCIRepository,Bucket]
Expand Down

0 comments on commit d710229

Please sign in to comment.