Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Add terminationGracePeriodSeconds and setup helm lint in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrychu committed Jun 15, 2022
1 parent b01e656 commit 5e6f102
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ jobs:
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- name: Lint helm chart
run: |
set -e
helm lint chart/${CHART_NAME}
- name: Update metadata files
run: |
set -e
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN set -xe;\
python3-pip;\
apt-get clean;\
rm -rf /var/lib/apt/lists/*;\
pip3 install ruamel.yaml requests;\
pip3 install ruamel.yaml requests ansible;\
useradd -m github;\
usermod -aG sudo github;\
echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers;\
Expand Down
3 changes: 2 additions & 1 deletion chart/gha-runner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
labels:
{{- include "gha-runner.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand All @@ -27,6 +27,7 @@ spec:
serviceAccountName: {{ include "gha-runner.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions chart/gha-runner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

replicaCount: 1

terminationGracePeriodSeconds: 600

config:
githubPersonalToken: ""
githubOwner: "szymonrychu"
Expand Down

0 comments on commit 5e6f102

Please sign in to comment.