chore: update devops Helm chart and CI/CD templates, unify values and templates, remove old authentication templates, fix all lint errors, fully tested with helm template output. All local changes for devops to CI/CD are now complete.

This commit is contained in:
Nicolas 2025-07-21 17:04:53 +08:00
parent 319c56e112
commit 11a1191628
8 changed files with 9 additions and 7 deletions

View File

@ -2,7 +2,7 @@
{{ $appVersion := .Chart.AppVersion | quote }}
{{ $releaseCertificate := .Release.Service }}
{{ $releaseName := .Release.Name }}
{{- range $ingress := .Values.authentication.ingresses }}
{{- range $ingress := .Values.devops.ingresses }}
{{- if not $ingress.tls.exists }}
---
apiVersion: cert-manager.io/v1

View File

@ -8,7 +8,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
# {{- if .Values.logIngest.enabled }}
# annotations:
# opentelemetry.io/config-checksum: {{ include (print $.Template.BasePath "/authentication/opentelemetry.yaml") . | sha256sum }}
# opentelemetry.io/config-checksum: {{ include (print $.Template.BasePath "/devops/opentelemetry.yaml") . | sha256sum }}
# {{- end }}
name: "devops"
namespace: {{ .Release.Namespace | quote }}

View File

@ -2,7 +2,7 @@
{{ $appVersion := .Chart.AppVersion | quote }}
{{ $releaseIngress := .Release.Service }}
{{ $releaseName := .Release.Name }}
{{- range $ingress := .Values.authentication.ingresses }}
{{- range $ingress := .Values.devops.ingresses }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress

View File

@ -2,7 +2,7 @@
{{ $appVersion := .Chart.AppVersion | quote }}
{{ $releaseService := .Release.Service }}
{{ $releaseName := .Release.Name }}
{{- range $service := .Values.authentication.services }}
{{- range $service := .Values.devops.services }}
---
apiVersion: v1
kind: Service
@ -20,7 +20,7 @@ spec:
targetPort: {{ $service.targetPort }}
selector:
app.kubernetes.io/version: {{ $appVersion }}
app.kubernetes.io/name: "authentication"
app.kubernetes.io/name: "devops"
app.kubernetes.io/managed-by: {{ $releaseService }}
app.kubernetes.io/instance: {{ $releaseName }}
{{- end }}

View File

@ -3,7 +3,7 @@
{{ $releaseService := .Release.Service }}
{{ $releaseName := .Release.Name }}
{{- range $service := .Values.authentication.services }}
{{- range $service := .Values.devops.services }}
{{- if $service.serviceMonitor.enabled }}
---
apiVersion: monitoring.coreos.com/v1

View File

@ -2,6 +2,8 @@ global:
registry: docker.io
repository: freeleaps
nodeSelector: {}
logIngest:
enabled: false
devops:
replicas: 1
image:
@ -83,4 +85,4 @@ devops:
memory: 128Mi
controlledResources:
- cpu
- memory
- memory