diff --git a/revad/Chart.yaml b/revad/Chart.yaml index c3958d9..1214a46 100644 --- a/revad/Chart.yaml +++ b/revad/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: revad description: The Reva daemon (revad) helm chart type: application -version: 1.3.0 +version: 1.3.1 appVersion: v1.7.0 kubeVersion: ">= 1.14.0" icon: https://reva.link/logo.svg @@ -23,11 +23,7 @@ keywords: - sync-and-share annotations: artifacthub.io/changes: | - - "Add the ingress resource templates from sciencemesh/iop" - - "Generate the right 'apiVersion' for ingress resources when using k8s versions >= 1.19" - - "Explicitly drop support for Kubernetes versions older than 1.14" - - "Bump revad's version to v1.7.0" - - "Add maintainters to the chart" + - "Fix: check for the 'ingress' resource, rather than the API itself" artifacthub.io/images: | - name: revad image: cs3org/revad:v1.7.0 diff --git a/revad/templates/_helpers.tpl b/revad/templates/_helpers.tpl index c93d3ba..5e9b98d 100644 --- a/revad/templates/_helpers.tpl +++ b/revad/templates/_helpers.tpl @@ -55,8 +55,8 @@ app.kubernetes.io/instance: {{ .Release.Name }} {{/* Return the appropriate apiVersion for ingress. */}} -{{- define "revad.ingressapiVersion" -}} -{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }} +{{- define "revad.ingress.apiVersion" -}} +{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/ingress" }} {{- print "networking.k8s.io/v1" -}} {{- else }} {{- print "networking.k8s.io/v1beta1" -}} diff --git a/revad/templates/ingress.yaml b/revad/templates/ingress.yaml index 6beb8b8..d340bbd 100644 --- a/revad/templates/ingress.yaml +++ b/revad/templates/ingress.yaml @@ -1,6 +1,6 @@ {{- if .Values.ingress.enabled }} {{- range $service, $ingress := .Values.ingress.services }} -apiVersion: {{ template "revad.ingressapiVersion" $ }} +apiVersion: {{ template "revad.ingress.apiVersion" $ }} kind: Ingress metadata: name: {{ template "revad.fullname" $ }}-{{ $service }} @@ -17,7 +17,7 @@ spec: paths: - path: {{ $ingress.path }} backend: - {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} + {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/ingress" }} service: name: {{ template "revad.fullname" $ }} port: diff --git a/wopiserver/Chart.yaml b/wopiserver/Chart.yaml index 6aef8b7..1808ecf 100644 --- a/wopiserver/Chart.yaml +++ b/wopiserver/Chart.yaml @@ -2,12 +2,13 @@ apiVersion: v2 name: wopiserver description: A Vendor-neutral Web-application Open Platform Interface (WOPI) gateway for EFSS systems type: application -version: 0.2.3 -appVersion: 6.5.0 +version: 0.2.4 +appVersion: v6.5.0 kubeVersion: ">= 1.14.0" home: https://github.com/cs3org/wopiserver sources: - https://github.com/cs3org/wopiserver + - https://github.com/cs3org/wopibridge maintainers: - name: SamuAlfageme email: samuel.alfageme.sainz@cern.ch @@ -18,11 +19,7 @@ keywords: - efss annotations: artifacthub.io/changes: | - - "Fix WOPI Server, Bridge version in Chart.yaml" - - "Rename 'revahost' to 'revagateway' in WOPI Server config" - - "Set 'CODIMD_{INT,EXT}_URL' explicit placeholders to prevent WB CrashLoopBackOff" - - "Add 'codimd_apikey' shared Secret to the WOPI Bridge deployment" - - "Generate the right 'apiVersion' for ingress resources when using k8s versions >= 1.19" + - "Fix: check for the 'ingress' resource, rather than the API itself" artifacthub.io/images: | - name: wopiserver image: cs3org/wopiserver:v6.5.0 diff --git a/wopiserver/templates/_helpers.tpl b/wopiserver/templates/_helpers.tpl index 17aa8c0..bc418af 100644 --- a/wopiserver/templates/_helpers.tpl +++ b/wopiserver/templates/_helpers.tpl @@ -67,7 +67,7 @@ app.kubernetes.io/instance: {{ .Release.Name }} Return the appropriate apiVersion for ingress. */}} {{- define "wopiserver.ingress.apiVersion" -}} -{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }} +{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/ingress" }} {{- print "networking.k8s.io/v1" -}} {{- else }} {{- print "networking.k8s.io/v1beta1" -}} diff --git a/wopiserver/templates/ingress.yaml b/wopiserver/templates/ingress.yaml index 9959d0a..7dd477f 100644 --- a/wopiserver/templates/ingress.yaml +++ b/wopiserver/templates/ingress.yaml @@ -16,7 +16,7 @@ spec: paths: - path: {{ .Values.ingress.path }} backend: - {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} + {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/ingress" }} service: name: {{ template "wopiserver.fullname" . }} port: diff --git a/wopiserver/templates/wopibridge/ingress.yaml b/wopiserver/templates/wopibridge/ingress.yaml index 9935e79..8cb2343 100644 --- a/wopiserver/templates/wopibridge/ingress.yaml +++ b/wopiserver/templates/wopibridge/ingress.yaml @@ -17,7 +17,7 @@ spec: paths: - path: {{ .ingress.path }} backend: - {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} + {{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/ingress" }} service: name: {{ template "wopiserver.fullname" $ }}-{{ .name }} port: