A big progress
A big progress
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
{{- if .Values.virtualservice.enabled -}}
|
||||
{{- $fullName := include "vaultwarden.fullname" . -}}
|
||||
{{- $svcPort := .Values.service.port -}}
|
||||
{{- if $.Capabilities.APIVersions.Has "networking.istio.io/v1beta1" }}
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtalService
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
labels:
|
||||
{{- include "vaultwarden.labels" . | nindent 4 }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
gateways:
|
||||
- {{ .Values.virtaulservice.gatewayRef }}
|
||||
hosts:
|
||||
- ci.badhouseplants.ne
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: woodpecker-ci-server
|
||||
port:
|
||||
number: 80
|
||||
{{- end }}
|
||||
{{- end }}
|
13
examples/one-config/patches/vaultwarden/values-test.yaml
Normal file
13
examples/one-config/patches/vaultwarden/values-test.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
name: Replace image in default values
|
||||
targets:
|
||||
- ./templates/deployment.yaml
|
||||
- ./templates/pvc.yaml
|
||||
- ./templates/secret.yaml
|
||||
- ./templates/service.yaml
|
||||
before: |-
|
||||
..labels:
|
||||
after: |-
|
||||
labels:
|
||||
"giantswarm.io/team": honeybudger
|
||||
|
8
examples/one-config/patches/vaultwarden/values-vs.yaml
Normal file
8
examples/one-config/patches/vaultwarden/values-vs.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
name: Replace image in default values
|
||||
targets:
|
||||
- values.yaml
|
||||
after: |-
|
||||
virtualservice:
|
||||
enables: false
|
||||
|
17
examples/one-config/patches/vaultwarden/values.yaml
Normal file
17
examples/one-config/patches/vaultwarden/values.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
name: Replace image in default values
|
||||
targets:
|
||||
- values.yaml
|
||||
before: |-
|
||||
image:
|
||||
repository: registry.hub.docker.com/vaultwarden/server
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
after: |-
|
||||
image:
|
||||
repository: registry.hub.docker.com/vaultwarden/server
|
||||
pullPolicy: Always
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
|
Reference in New Issue
Block a user