mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-04-11 20:20:38 +00:00
Compare commits
2 Commits
f23fa6f28e
...
v0.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
| b91d297e32 | |||
| 0536d625cf |
@ -8,7 +8,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
changelog:
|
changelog:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: docker.io/thegeeklab/git-sv:2.0.5
|
container: docker.io/thegeeklab/git-sv:2.0.6
|
||||||
steps:
|
steps:
|
||||||
- name: install tools
|
- name: install tools
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -10,7 +10,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
||||||
HELM_UNITTEST_VERSION: "v1.0.1"
|
HELM_UNITTEST_VERSION: "v1.0.3"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-and-test:
|
check-and-test:
|
||||||
|
|||||||
@ -75,6 +75,7 @@ You should be good to go!
|
|||||||
| `statefulset.dind.extraVolumeMounts` | Allows mounting extra volumes in the Docker-in-Docker container | `[]` |
|
| `statefulset.dind.extraVolumeMounts` | Allows mounting extra volumes in the Docker-in-Docker container | `[]` |
|
||||||
| `statefulset.dind.extraEnvs` | Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY` | `[]` |
|
| `statefulset.dind.extraEnvs` | Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY` | `[]` |
|
||||||
| `statefulset.persistence.size` | Size for persistence to store act runner data | `1Gi` |
|
| `statefulset.persistence.size` | Size for persistence to store act runner data | `1Gi` |
|
||||||
|
| `statefulset.securityContext` | Customize the SecurityContext | `{}` |
|
||||||
| `existingSecret` | Secret that contains the token | `""` |
|
| `existingSecret` | Secret that contains the token | `""` |
|
||||||
| `existingSecretKey` | Secret key | `""` |
|
| `existingSecretKey` | Secret key | `""` |
|
||||||
| `giteaRootURL` | URL the act_runner registers and connect with | `""` |
|
| `giteaRootURL` | URL the act_runner registers and connect with | `""` |
|
||||||
|
|||||||
@ -30,6 +30,8 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.statefulset.securityContext | nindent 8 }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-gitea
|
- name: init-gitea
|
||||||
image: "{{ include "gitea.actions.init.image" . }}"
|
image: "{{ include "gitea.actions.init.image" . }}"
|
||||||
|
|||||||
@ -162,6 +162,60 @@ tests:
|
|||||||
- matchRegex:
|
- matchRegex:
|
||||||
path: spec.template.spec.containers[0].env[8].name
|
path: spec.template.spec.containers[0].env[8].name
|
||||||
pattern: "GITEA_RUNNER_NAME"
|
pattern: "GITEA_RUNNER_NAME"
|
||||||
|
- it: Has fsGroup in securityContext
|
||||||
|
template: templates/statefulset.yaml
|
||||||
|
set:
|
||||||
|
enabled: true
|
||||||
|
existingSecret: "my-secret"
|
||||||
|
existingSecretKey: "my-secret-key"
|
||||||
|
statefulset.securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
|
asserts:
|
||||||
|
- hasDocuments:
|
||||||
|
count: 1
|
||||||
|
- containsDocument:
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
name: gitea-unittests-actions-act-runner
|
||||||
|
- equal:
|
||||||
|
path: spec.template.spec.securityContext["fsGroup"]
|
||||||
|
value: 1000
|
||||||
|
- it: Has fsGroupChangePolicy in securityContext
|
||||||
|
template: templates/statefulset.yaml
|
||||||
|
set:
|
||||||
|
enabled: true
|
||||||
|
existingSecret: "my-secret"
|
||||||
|
existingSecretKey: "my-secret-key"
|
||||||
|
statefulset.securityContext:
|
||||||
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
|
asserts:
|
||||||
|
- hasDocuments:
|
||||||
|
count: 1
|
||||||
|
- containsDocument:
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
name: gitea-unittests-actions-act-runner
|
||||||
|
- equal:
|
||||||
|
path: spec.template.spec.securityContext["fsGroupChangePolicy"]
|
||||||
|
value: "OnRootMismatch"
|
||||||
|
- it: Has Always in securityContext
|
||||||
|
template: templates/statefulset.yaml
|
||||||
|
set:
|
||||||
|
enabled: true
|
||||||
|
existingSecret: "my-secret"
|
||||||
|
existingSecretKey: "my-secret-key"
|
||||||
|
statefulset.securityContext:
|
||||||
|
fsGroupChangePolicy: Always
|
||||||
|
asserts:
|
||||||
|
- hasDocuments:
|
||||||
|
count: 1
|
||||||
|
- containsDocument:
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
name: gitea-unittests-actions-act-runner
|
||||||
|
- equal:
|
||||||
|
path: spec.template.spec.securityContext["fsGroupChangePolicy"]
|
||||||
|
value: "Always"
|
||||||
- it: doesn't renders a StatefulSet by default
|
- it: doesn't renders a StatefulSet by default
|
||||||
template: templates/statefulset.yaml
|
template: templates/statefulset.yaml
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@ -31,6 +31,7 @@
|
|||||||
## @param statefulset.dind.extraVolumeMounts Allows mounting extra volumes in the Docker-in-Docker container
|
## @param statefulset.dind.extraVolumeMounts Allows mounting extra volumes in the Docker-in-Docker container
|
||||||
## @param statefulset.dind.extraEnvs Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY`
|
## @param statefulset.dind.extraEnvs Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY`
|
||||||
## @param statefulset.persistence.size Size for persistence to store act runner data
|
## @param statefulset.persistence.size Size for persistence to store act runner data
|
||||||
|
## @param statefulset.securityContext Customize the SecurityContext
|
||||||
## @param existingSecret Secret that contains the token
|
## @param existingSecret Secret that contains the token
|
||||||
## @param existingSecretKey Secret key
|
## @param existingSecretKey Secret key
|
||||||
## @param giteaRootURL URL the act_runner registers and connect with
|
## @param giteaRootURL URL the act_runner registers and connect with
|
||||||
@ -45,6 +46,7 @@ statefulset:
|
|||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
extraVolumes: []
|
extraVolumes: []
|
||||||
|
securityContext: {}
|
||||||
|
|
||||||
actRunner:
|
actRunner:
|
||||||
registry: "docker.gitea.com"
|
registry: "docker.gitea.com"
|
||||||
|
|||||||
Reference in New Issue
Block a user