Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/oc config #36

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
6 changes: 3 additions & 3 deletions revad/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: revad
description: The Reva daemon (revad) helm chart
type: application
version: 1.4.0
appVersion: v1.18.0
appVersion: v1.19.0
kubeVersion: ">= 1.19.0"
icon: https://reva.link/logo.svg
home: https://reva.link
Expand All @@ -23,7 +23,7 @@ keywords:
- sync-and-share
annotations:
artifacthub.io/changes: |
- "Update revad image to v1.18.0"
- "Update revad image to v1.19.0"
artifacthub.io/images: |
- name: revad
image: cs3org/revad:v1.18.0
image: cs3org/revad:v1.19.0
9 changes: 9 additions & 0 deletions revad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ To install the chart with the release name `my-reva`:
```console
$ helm install my-reva cs3org/revad
```
Also, you can use `--set EFSS=OWNCLOUD` to config Reva for communication with OpenCloud Mesh

**Below parameters can be provided when you are trying start reva communicate with OpenCloud Mesh**
| Parameter | Default value | Description |
|---|---|---|
|OCURL|oc.docker|The URL of OpenCloud mesh provider|
|SharedSecret|123456| The secret that is shared with sciencemesh application|
|CertFile|revaoc1.crt| Name of ssl certificate file|
|CertKey|revaoc1.key| Name of ssl certificate key file|

## Uninstalling the Chart

Expand Down
8 changes: 7 additions & 1 deletion revad/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ metadata:
labels:
{{- include "revad.labels" . | nindent 4 }}
data:
{{- $host := .Values.HostURL }}
{{- $ocHost := .Values.OCURL }}
{{- $secret := .Values.SharedSecret }}
{{- $port := toString .Values.HostPort }}
{{- $serviceName := include "revad.fullname" . }}
{{- $hostDomain := toString .Values.HostDomain }}
{{- range $filename, $fileContents := .Values.configFiles }}
{{ $filename }}: |-
{{ $fileContents | indent 4 }}
{{ $fileContents | replace "OC_URL" $ocHost | replace "SHARED_SECRET" $secret | replace "SERVICE_NAME" $serviceName | replace "HOST_DOMAIN" $hostDomain | indent 4 }}
{{- end }}
{{- end }}
6 changes: 5 additions & 1 deletion revad/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ spec:
- /usr/bin/revad
args:
- "-c"
- "/etc/revad/revad.toml"
- {{ if eq .Values.EFSS "OWNCLOUD" }}
{{- "/etc/revad/oc.revad.toml" }}
{{ else }}
{{- "/etc/revad/revad.toml" }}
{{ end }}
- "-p"
- "/var/run/revad.pid"
volumeMounts:
Expand Down
Loading