feat(test): gitea registry pull secret and imagePullSecrets
This commit is contained in:
@@ -26,6 +26,10 @@ spec:
|
||||
labels:
|
||||
app: adminpanel
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: adminpanel
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
|
||||
@@ -6,3 +6,7 @@ runtimeEnv:
|
||||
|
||||
image:
|
||||
tag: local-test
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
|
||||
@@ -5,6 +5,8 @@ image:
|
||||
tag: local-test
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets: []
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
ingress:
|
||||
|
||||
@@ -80,6 +80,10 @@ spec:
|
||||
app: backend
|
||||
env: test
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: php-fpm
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
|
||||
@@ -3,6 +3,10 @@ ingress:
|
||||
|
||||
image:
|
||||
tag: local-test
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
|
||||
env:
|
||||
API_PUBLIC_URL: http://api.test.sova.local
|
||||
|
||||
@@ -5,6 +5,8 @@ image:
|
||||
tag: local-test
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets: []
|
||||
|
||||
nginx:
|
||||
image: nginx:1.27-alpine
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ metadata:
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: http://git.sova.local/sova/sova-deploy.git
|
||||
repoURL: ${GITEA_REPO_URL}/sova/sova-deploy.git
|
||||
targetRevision: main
|
||||
path: argocd/apps
|
||||
destination:
|
||||
|
||||
@@ -6,7 +6,7 @@ metadata:
|
||||
spec:
|
||||
project: sova
|
||||
source:
|
||||
repoURL: http://git.sova.local/sova/sova-deploy.git
|
||||
repoURL: ${GITEA_REPO_URL}/sova/sova-deploy.git
|
||||
targetRevision: main
|
||||
path: data/test
|
||||
helm:
|
||||
@@ -30,7 +30,7 @@ metadata:
|
||||
spec:
|
||||
project: sova
|
||||
source:
|
||||
repoURL: http://git.sova.local/sova/sova-mocks.git
|
||||
repoURL: ${GITEA_REPO_URL}/sova/sova-mocks.git
|
||||
targetRevision: main
|
||||
path: charts/mocks
|
||||
destination:
|
||||
@@ -51,7 +51,7 @@ metadata:
|
||||
spec:
|
||||
project: sova
|
||||
source:
|
||||
repoURL: http://git.sova.local/sova/sova-deploy.git
|
||||
repoURL: ${GITEA_REPO_URL}/sova/sova-deploy.git
|
||||
targetRevision: main
|
||||
path: apps/backend
|
||||
helm:
|
||||
@@ -76,7 +76,7 @@ metadata:
|
||||
spec:
|
||||
project: sova
|
||||
source:
|
||||
repoURL: http://git.sova.local/sova/sova-deploy.git
|
||||
repoURL: ${GITEA_REPO_URL}/sova/sova-deploy.git
|
||||
targetRevision: main
|
||||
path: apps/adminpanel
|
||||
helm:
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user