Skip to content

Commit 7b37fb9

Browse files
committed
Move charts to standard Helm structure with charts directory
This reorganizes the chart structure as requested in issue opencloud-eu#6: - Move main chart to /charts/opencloud - Move dev chart to /charts/opencloud-dev - Update README paths - Set gateway.create to false as requested This follows standard Helm chart repository organization and makes the repository compatible with chart-testing.
1 parent 238b07e commit 7b37fb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+886
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Please ensure that your PR follows best practices and includes necessary documen
6666
To install the chart with the release name `opencloud`:
6767

6868
```bash
69-
helm install opencloud . \
69+
helm install opencloud ./charts/opencloud \
7070
--namespace opencloud \
7171
--create-namespace \
7272
--set httpRoute.gateway.name=opencloud-gateway \
@@ -669,7 +669,7 @@ https://docs.opencloud.eu/docs/admin/getting-started/docker/docker
669669
Deployment from the file system:
670670

671671
```
672-
$ helm install opencloud -n opencloud --create-namespace ./opencloud-dev --set=adminPassword="<MY-SECURE-PASSWORD>" --set=url="<PUBLIC-URL>"
672+
$ helm install opencloud -n opencloud --create-namespace ./charts/opencloud-dev --set=adminPassword="<MY-SECURE-PASSWORD>" --set=url="<PUBLIC-URL>"
673673
```
674674

675675
It is important that the public-url is reachable, and forwarded to the backend-service opencloud-service:443,
@@ -678,7 +678,7 @@ otherwise login will not be possible or the message "missing or invalid config"
678678
For testing with the default settings port-forwarding from localhost can be used:
679679

680680
```
681-
$ helm install opencloud -n opencloud --create-namespace ./opencloud-dev
681+
$ helm install opencloud -n opencloud --create-namespace ./charts/opencloud-dev
682682
683683
Release "opencloud" does not exist. Installing it now.
684684
NAME: opencloud

charts/opencloud-dev/Chart.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v2
2+
type: application
3+
name: opencloud-dev
4+
version: 0.1.0
5+
description: "DEV Deployment of the OpenCloud dockerfile. The DEV Helm chart follows the description given for starting a docker instance: https://docs.opencloud.eu/docs/admin/getting-started/docker. It is not thought for productive use"
6+
home: https://github.com/opencloud-eu/helm
7+
image: https://raw.githubusercontent.com/opencloud-eu/opencloud/refs/heads/main/opencloud_logo.png
8+
sources:
9+
- https://github.com/opencloud-eu/helm
10+
appVersion: 2.0.0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# TODO: move to ConfigMap
2+
apiVersion: v1
3+
kind: PersistentVolumeClaim
4+
metadata:
5+
name: opencloud-config-pvc
6+
labels:
7+
app: opencloud
8+
spec:
9+
accessModes:
10+
- ReadWriteOnce
11+
resources:
12+
requests:
13+
storage: 10Mi
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: opencloud-data-pvc
5+
annotations:
6+
# prevent data pvc from being uninstalled
7+
helm.sh/resource-policy: "keep"
8+
labels:
9+
app: opencloud
10+
spec:
11+
accessModes:
12+
- ReadWriteOnce
13+
resources:
14+
requests:
15+
storage: {{ .Values.pvcSize }}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: opencloud
5+
labels:
6+
app: opencloud
7+
spec:
8+
selector:
9+
matchLabels:
10+
app: opencloud
11+
replicas: 1
12+
template:
13+
metadata:
14+
labels:
15+
app: opencloud
16+
spec:
17+
containers:
18+
- name: opencloud
19+
image: "{{ .Values.image }}:{{ .Values.tag}}"
20+
env:
21+
- name: OC_INSECURE
22+
value: "{{ .Values.insecure }}"
23+
- name: PROXY_HTTP_ADDR
24+
value: "{{ .Values.proxyHttpAddr }}"
25+
- name: OC_URL
26+
value: "{{ .Values.url }}"
27+
volumeMounts:
28+
- name: opencloud-config
29+
mountPath: /etc/opencloud
30+
- name: opencloud-data
31+
mountPath: /var/lib/opencloud
32+
volumes:
33+
- name: opencloud-config
34+
persistentVolumeClaim:
35+
claimName: opencloud-config-pvc
36+
- name: opencloud-data
37+
persistentVolumeClaim:
38+
claimName: opencloud-data-pvc
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: opencloud-init
5+
annotations:
6+
# This is what defines this resource as a hook. Without this line, the
7+
# job is considered part of the release.
8+
"helm.sh/hook": post-install
9+
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
10+
spec:
11+
template:
12+
spec:
13+
containers:
14+
- name: opencloud
15+
image: "{{ .Values.image }}:{{ .Values.tag}}"
16+
env:
17+
- name: IDM_ADMIN_PASSWORD
18+
value: {{ .Values.adminPassword }}
19+
- name: OC_INSECURE
20+
value: "{{ .Values.insecure }}"
21+
volumeMounts:
22+
- name: opencloud-config
23+
mountPath: /etc/opencloud
24+
- name: opencloud-data
25+
mountPath: /var/lib/opencloud
26+
# command: ["/usr/bin/opencloud"]
27+
args: ["init"]
28+
volumes:
29+
- name: opencloud-config
30+
persistentVolumeClaim:
31+
claimName: opencloud-config-pvc
32+
- name: opencloud-data
33+
persistentVolumeClaim:
34+
claimName: opencloud-data-pvc
35+
restartPolicy: Never
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: opencloud-service
5+
labels:
6+
app: opencloud
7+
spec:
8+
selector:
9+
app: opencloud
10+
ports:
11+
- name: https
12+
port: 443
13+
protocol: TCP
14+
targetPort: 9200

charts/opencloud-dev/values.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# follow the description given for starting a docker instance
2+
# https://docs.opencloud.eu/docs/admin/getting-started/docker
3+
4+
image: opencloudeu/opencloud-rolling
5+
tag: 2.0.0
6+
7+
adminPassword: admin
8+
insecure: true
9+
proxyHttpAddr: 0.0.0.0:9200
10+
url: https://localhost:9200
11+
12+
pvcSize: 10Gi
13+
14+
File renamed without changes.

0 commit comments

Comments
 (0)