parent
4bfbb48dd3
commit
b3d1068082
5 changed files with 5 additions and 5 deletions
|
@ -1228,6 +1228,7 @@ Forgejo v9 is now EOL.
|
||||||
|
|
||||||
ClusterIP is now emtpy instead of `None` for http and ssh service.
|
ClusterIP is now emtpy instead of `None` for http and ssh service.
|
||||||
Unsupported api versions for `Ingress` and `PodDisruptionBudget` are removed.
|
Unsupported api versions for `Ingress` and `PodDisruptionBudget` are removed.
|
||||||
|
`Ingress` and `Service` are now using named ports.
|
||||||
|
|
||||||
### To v10
|
### To v10
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,6 @@ spec:
|
||||||
{{- if .Values.service.http.nodePort }}
|
{{- if .Values.service.http.nodePort }}
|
||||||
nodePort: {{ .Values.service.http.nodePort }}
|
nodePort: {{ .Values.service.http.nodePort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
targetPort: {{ .Values.gitea.config.server.HTTP_PORT }}
|
targetPort: http
|
||||||
selector:
|
selector:
|
||||||
{{- include "gitea.selectorLabels" . | nindent 4 }}
|
{{- include "gitea.selectorLabels" . | nindent 4 }}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "gitea.fullname" . -}}
|
{{- $fullName := include "gitea.fullname" . -}}
|
||||||
{{- $httpPort := .Values.service.http.port -}}
|
|
||||||
apiVersion: networking.k8s.io/v1/Ingress
|
apiVersion: networking.k8s.io/v1/Ingress
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -40,7 +39,7 @@ spec:
|
||||||
service:
|
service:
|
||||||
name: {{ $fullName }}-http
|
name: {{ $fullName }}-http
|
||||||
port:
|
port:
|
||||||
number: {{ $httpPort }}
|
name: http
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -47,7 +47,7 @@ spec:
|
||||||
- name: ssh
|
- name: ssh
|
||||||
port: {{ .Values.service.ssh.port }}
|
port: {{ .Values.service.ssh.port }}
|
||||||
{{- if .Values.gitea.config.server.SSH_LISTEN_PORT }}
|
{{- if .Values.gitea.config.server.SSH_LISTEN_PORT }}
|
||||||
targetPort: {{ .Values.gitea.config.server.SSH_LISTEN_PORT }}
|
targetPort: ssh
|
||||||
{{- end }}
|
{{- end }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- if .Values.service.ssh.nodePort }}
|
{{- if .Values.service.ssh.nodePort }}
|
||||||
|
|
|
@ -58,7 +58,7 @@ tests:
|
||||||
value: 22
|
value: 22
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.ports[0].targetPort
|
path: spec.ports[0].targetPort
|
||||||
value: 2222
|
value: ssh
|
||||||
|
|
||||||
- it: render service.ssh.loadBalancerClass if set and type is LoadBalancer
|
- it: render service.ssh.loadBalancerClass if set and type is LoadBalancer
|
||||||
template: templates/gitea/ssh-svc.yaml
|
template: templates/gitea/ssh-svc.yaml
|
||||||
|
|
Loading…
Reference in a new issue