You've already forked helm-gitea
The following pull request removes the `gitea` directory. With regard to maintaining act_runners in a separate git repository or helm chart, this additional directory becomes redundant. Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/958 Reviewed-by: DaanSelen <daanselen@noreply.gitea.com> Co-authored-by: Markus Pesch <markus.pesch@cryptic.systems> Co-committed-by: Markus Pesch <markus.pesch@cryptic.systems>
32 lines
856 B
YAML
32 lines
856 B
YAML
{{- if .Values.networkPolicy.enabled }}
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
{{- with (include "gitea.networkPolicy.annotations" . | fromYaml) }}
|
|
annotations:
|
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
|
{{- end }}
|
|
{{- with (include "gitea.networkPolicy.labels" . | fromYaml) }}
|
|
labels:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ include "gitea.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
{{- include "gitea.pod.selectorLabels" $ | nindent 6 }}
|
|
{{- with .Values.networkPolicy.policyTypes }}
|
|
policyTypes:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.networkPolicy.egress }}
|
|
egress:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.networkPolicy.ingress }}
|
|
ingress:
|
|
{{- toYaml . | nindent 2 }}
|
|
{{- end }}
|
|
{{- end }} |