forked from cs3org/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cs3org#17 from SamuAlfageme/wopibridge_integration
Charts look fine and bring important changes and additions, so merging this PR now
- Loading branch information
Showing
8 changed files
with
221 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{- with .Values.wopibridge }} | ||
{{- if .enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "wopiserver.fullname" $ }}-{{ .name }} | ||
labels: | ||
{{- include "wopibridge.labels" $ | nindent 4 }} | ||
spec: | ||
replicas: {{ .replicaCount }} | ||
selector: | ||
matchLabels: | ||
{{- include "wopibridge.selectorLabels" $ | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "wopibridge.selectorLabels" $ | nindent 8 }} | ||
spec: | ||
containers: | ||
- name: {{ .name }} | ||
image: "{{ .image.repository }}:{{ .image.tag }}" | ||
imagePullPolicy: {{ .image.pullPolicy }} | ||
ports: | ||
- name: http | ||
containerPort: 8000 | ||
protocol: TCP | ||
{{- if .extraVolumeMounts }} | ||
volumeMounts: | ||
{{- toYaml .extraVolumeMounts | nindent 12 }} | ||
{{- end }} | ||
env: | ||
- name: "WOPIBRIDGE_URL" | ||
value: {{ template "wopibridge.url" $ }} | ||
{{- if .env }} | ||
{{- range $name, $value := .env }} | ||
- name: "{{ $name }}" | ||
value: "{{ $value }}" | ||
{{- end }} | ||
{{- end }} | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
readinessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
{{- if .extraVolumes }} | ||
volumes: | ||
{{- toYaml .extraVolumes | nindent 6 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{- with .Values.wopibridge }} | ||
{{- if and .enabled .ingress.enabled }} | ||
apiVersion: networking.k8s.io/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ template "wopiserver.fullname" $ }}-{{ .name }} | ||
labels: {{- include "wopibridge.labels" $ | nindent 4 }} | ||
annotations: | ||
{{- if .ingress.annotations }} | ||
{{ toYaml .ingress.annotations | indent 4 }} | ||
{{- end }} | ||
spec: | ||
rules: | ||
{{- if .ingress.hostname }} | ||
- host: {{ .ingress.hostname }} | ||
http: | ||
paths: | ||
- path: {{ .ingress.path }} | ||
backend: | ||
serviceName: {{ template "wopiserver.fullname" $ }}-{{ .name }} | ||
servicePort: http | ||
{{- end }} | ||
{{- if .ingress.tls }} | ||
tls: | ||
{{- toYaml .ingress.tls | indent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- with .Values.wopibridge }} | ||
{{- if .enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "wopiserver.fullname" $ }}-{{ .name }} | ||
labels: | ||
{{- include "wopibridge.labels" $ | nindent 4 }} | ||
spec: | ||
type: {{ .service.type }} | ||
ports: | ||
- port: {{ .service.port }} | ||
targetPort: http | ||
protocol: TCP | ||
name: http | ||
selector: | ||
{{- include "wopibridge.selectorLabels" $ | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters