feat(test): gitea registry pull secret and imagePullSecrets

This commit is contained in:
sova-ci
2026-05-28 01:03:38 +03:00
parent 11596ee01b
commit b8a039ed2d
9 changed files with 68 additions and 5 deletions
+4
View File
@@ -26,6 +26,10 @@ spec:
labels: labels:
app: adminpanel app: adminpanel
spec: spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers: containers:
- name: adminpanel - name: adminpanel
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+4
View File
@@ -6,3 +6,7 @@ runtimeEnv:
image: image:
tag: local-test tag: local-test
pullPolicy: IfNotPresent
imagePullSecrets:
- name: gitea-registry
+2
View File
@@ -5,6 +5,8 @@ image:
tag: local-test tag: local-test
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
imagePullSecrets: []
replicaCount: 1 replicaCount: 1
ingress: ingress:
+4
View File
@@ -80,6 +80,10 @@ spec:
app: backend app: backend
env: test env: test
spec: spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers: containers:
- name: php-fpm - name: php-fpm
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+4
View File
@@ -3,6 +3,10 @@ ingress:
image: image:
tag: local-test tag: local-test
pullPolicy: IfNotPresent
imagePullSecrets:
- name: gitea-registry
env: env:
API_PUBLIC_URL: http://api.test.sova.local API_PUBLIC_URL: http://api.test.sova.local
+2
View File
@@ -5,6 +5,8 @@ image:
tag: local-test tag: local-test
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
imagePullSecrets: []
nginx: nginx:
image: nginx:1.27-alpine image: nginx:1.27-alpine
+1 -1
View File
@@ -6,7 +6,7 @@ metadata:
spec: spec:
project: default project: default
source: source:
repoURL: http://git.sova.local/sova/sova-deploy.git repoURL: ${GITEA_REPO_URL}/sova/sova-deploy.git
targetRevision: main targetRevision: main
path: argocd/apps path: argocd/apps
destination: destination:
+4 -4
View File
@@ -6,7 +6,7 @@ metadata:
spec: spec:
project: sova project: sova
source: source:
repoURL: http://git.sova.local/sova/sova-deploy.git repoURL: ${GITEA_REPO_URL}/sova/sova-deploy.git
targetRevision: main targetRevision: main
path: data/test path: data/test
helm: helm:
@@ -30,7 +30,7 @@ metadata:
spec: spec:
project: sova project: sova
source: source:
repoURL: http://git.sova.local/sova/sova-mocks.git repoURL: ${GITEA_REPO_URL}/sova/sova-mocks.git
targetRevision: main targetRevision: main
path: charts/mocks path: charts/mocks
destination: destination:
@@ -51,7 +51,7 @@ metadata:
spec: spec:
project: sova project: sova
source: source:
repoURL: http://git.sova.local/sova/sova-deploy.git repoURL: ${GITEA_REPO_URL}/sova/sova-deploy.git
targetRevision: main targetRevision: main
path: apps/backend path: apps/backend
helm: helm:
@@ -76,7 +76,7 @@ metadata:
spec: spec:
project: sova project: sova
source: source:
repoURL: http://git.sova.local/sova/sova-deploy.git repoURL: ${GITEA_REPO_URL}/sova/sova-deploy.git
targetRevision: main targetRevision: main
path: apps/adminpanel path: apps/adminpanel
helm: helm:
+43
View File
@@ -0,0 +1,43 @@
# Gitea Actions runner for test contour (gitea-charts/actions)
enabled: true
giteaRootURL: http://gitea-http.gitea.svc.cluster.local:3000
existingSecret: gitea-runner-registration
existingSecretKey: runner-token
statefulset:
replicas: 1
persistence:
size: 2Gi
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: "2"
memory: 2Gi
runner:
tag: "1.0.4"
config: |
log:
level: info
cache:
enabled: true
container:
require_docker: true
docker_timeout: 600s
valid_volumes:
- /var/run/docker.sock
extraEnvs:
- name: GITEA_RUNNER_NAME
value: sova-test-k8s
- name: GITEA_RUNNER_LABELS
value: "ubuntu-latest:docker://catthehacker/ubuntu:act-22.04,ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04"
dind:
tag: 27-dind
extraEnvs:
- name: DOCKER_IPTABLES_LEGACY
value: "1"
extraArgs:
- --insecure-registry=gitea-http.gitea.svc.cluster.local:3000