Skip to content

Commit d58c939

Browse files
committed
fix: include postgresql extra dependency
Signed-off-by: Andre Nogueira <andre.nogueira@mollie.com>
1 parent 7f0ca0a commit d58c939

4 files changed

Lines changed: 22 additions & 33 deletions

File tree

kubernetes/chart/Chart.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ home: https://sourcebot.dev/
1313
sources:
1414
- https://github.com/sourcebot-dev/sourcebot
1515
- https://github.com/sourcebot-dev/sourcebot/kubernetes/chart
16+
dependencies:
17+
- name: postgresql
18+
version: 16.7.27
19+
repository: https://charts.bitnami.com/bitnami
20+
condition: postgresql.enabled

kubernetes/chart/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ The open source Sourcegraph alternative. Sourcebot gives you a powerful interfac
1111
* <https://github.com/sourcebot-dev/sourcebot>
1212
* <https://github.com/sourcebot-dev/sourcebot/kubernetes/chart>
1313

14+
## Requirements
15+
16+
| Repository | Name | Version |
17+
|------------|------|---------|
18+
| https://charts.bitnami.com/bitnami | postgresql | 16.7.27 |
19+
1420
## Values
1521

1622
| Key | Type | Default | Description |
@@ -58,6 +64,7 @@ The open source Sourcegraph alternative. Sourcebot gives you a powerful interfac
5864
| podDisruptionBudget.maxUnavailable | int | `1` | Maximum number of pods that can be unavailable. |
5965
| podDisruptionBudget.minAvailable | int | `1` | Minimum number of pods that must be available. |
6066
| podSecurityContext | object | `{}` | Set the pod-level security context. |
67+
| postgresql | object | `{"enabled":false}` | Configure the Bitnami PostgreSQL sub-chart. See: https://artifacthub.io/packages/helm/bitnami/postgresql |
6168
| priorityClassName | string | `""` | Set the priority class name for pods. See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ |
6269
| readinessProbe | object | `{"failureThreshold":5,"httpGet":{"path":"/","port":"http"},"initialDelaySeconds":10,"periodSeconds":10}` | Readiness probe to check if the container is ready to serve traffic. |
6370
| readinessProbe.failureThreshold | int | `5` | Number of consecutive failures before marking the container as not ready. |

kubernetes/chart/values.schema.json

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -420,32 +420,16 @@
420420
"priorityClassName": {
421421
"type": "string"
422422
},
423-
"storage": {
423+
"postgresql": {
424424
"type": "object",
425425
"properties": {
426426
"enabled": {
427427
"type": "boolean"
428-
},
429-
"size": {
430-
"type": "string",
431-
"pattern": "^[0-9]+Gi$"
432-
},
433-
"accessModes": {
434-
"type": "array",
435-
"items": {
436-
"type": "string",
437-
"enum": [
438-
"ReadWriteOnce",
439-
"ReadOnlyMany",
440-
"ReadWriteMany"
441-
]
442-
},
443-
"minItems": 1
444-
},
445-
"className": {
446-
"type": "string"
447428
}
448-
}
429+
},
430+
"required": [
431+
"enabled"
432+
]
449433
}
450434
},
451435
"definitions": {
@@ -493,4 +477,4 @@
493477
}
494478
}
495479
}
496-
}
480+
}

kubernetes/chart/values.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,7 @@ affinity: {}
266266
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
267267
priorityClassName: ""
268268

269-
# -- Configure persistent storage for the application (volume is mounted at /data) to use the internal database.
270-
storage:
271-
# -- Enable or disable persistent storage.
272-
enabled: true
273-
# -- Access modes for the persistent volume.
274-
accessModes:
275-
- ReadWriteOnce
276-
# -- Storage class name for the persistent volume.
277-
className: ""
278-
# -- Size of the persistent volume.
279-
size: "10Gi"
269+
# -- Configure the Bitnami PostgreSQL sub-chart.
270+
# See: https://artifacthub.io/packages/helm/bitnami/postgresql
271+
postgresql:
272+
enabled: false

0 commit comments

Comments
 (0)