[bitwardenrs] Fix Ingress API version (#795)

* fix: dot context in template

Signed-off-by: Waldemar Faist <cubic@coldice.net>

* docs: regenerate

Signed-off-by: Waldemar Faist <cubic@coldice.net>

* build: bump version

Signed-off-by: Waldemar Faist <cubic@coldice.net>
This commit is contained in:
CuBiC 2021-04-16 10:58:48 +02:00 committed by GitHub
parent b4cc349fcc
commit 4976fa0801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: bitwardenrs name: bitwardenrs
description: Unofficial Bitwarden compatible server written in Rust description: Unofficial Bitwarden compatible server written in Rust
type: application type: application
version: 2.1.7 version: 2.1.8
appVersion: 1.18.0 appVersion: 1.18.0
keywords: keywords:
- bitwarden - bitwarden

View File

@ -1,6 +1,6 @@
# bitwardenrs # bitwardenrs
![Version: 2.1.5](https://img.shields.io/badge/Version-2.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.18.0](https://img.shields.io/badge/AppVersion-1.18.0-informational?style=flat-square) ![Version: 2.1.8](https://img.shields.io/badge/Version-2.1.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.18.0](https://img.shields.io/badge/AppVersion-1.18.0-informational?style=flat-square)
Unofficial Bitwarden compatible server written in Rust Unofficial Bitwarden compatible server written in Rust

View File

@ -2,9 +2,10 @@
{{- $fullName := include "bitwardenrs.fullname" . -}} {{- $fullName := include "bitwardenrs.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- $websockets := .Values.bitwardenrs.websockets -}} {{- $websockets := .Values.bitwardenrs.websockets -}}
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} {{- $apiVersion := .Capabilities.KubeVersion.GitVersion -}}
{{- if semverCompare "<1.14-0" $apiVersion -}}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
{{- else if semverCompare "<1.19-0" .Capabilities.KubeVersion.GitVersion -}} {{- else if semverCompare "<1.19-0" $apiVersion -}}
apiVersion: networking.k8s.io/v1beta1 apiVersion: networking.k8s.io/v1beta1
{{- else -}} {{- else -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@ -36,7 +37,7 @@ spec:
paths: paths:
{{- range .paths }} {{- range .paths }}
- path: {{ . }} - path: {{ . }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} {{- if semverCompare ">=1.19-0" $apiVersion }}
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
@ -51,7 +52,7 @@ spec:
{{- if $websockets.enabled }} {{- if $websockets.enabled }}
- path: {{ . | trimSuffix "/" }}/notifications/hub - path: {{ . | trimSuffix "/" }}/notifications/hub
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} {{- if semverCompare ">=1.19-0" $apiVersion }}
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
@ -63,7 +64,7 @@ spec:
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: {{ $websockets.port }} servicePort: {{ $websockets.port }}
- path: {{ . | trimSuffix "/" }}/notifications/hub/negotiate - path: {{ . | trimSuffix "/" }}/notifications/hub/negotiate
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} {{- if semverCompare ">=1.19-0" $apiVersion }}
pathType: Prefix pathType: Prefix
backend: backend:
service: service: