Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: int128/gitbucket-docker
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: monami-ya/gitbucket-docker
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 6, 2024

  1. Update ingress.yaml

    Support recent `apiVersion`s.
    monaka committed Nov 6, 2024
    Copy the full SHA
    3255e13 View commit details
Showing with 16 additions and 0 deletions.
  1. +16 −0 charts/gitbucket/templates/ingress.yaml
16 changes: 16 additions & 0 deletions charts/gitbucket/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -2,7 +2,13 @@
{{- $fullName := include "gitbucket.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.Version -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.Version -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
@@ -33,7 +39,17 @@ spec:
paths:
- path: {{ $ingressPath }}
backend:
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.Version -}}
service:
name: {{ $fullName }}
port:
name: http
{{- else -}}
serviceName: {{ $fullName }}
servicePort: http
{{- end }}
{{ if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.Version -}}
pathType: ImplementationSpecific
{{- end }}
{{- end }}
{{- end }}