Skip to content

Commit

Permalink
add labels to antivirus check deployment and pods
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchuhmacher committed Nov 9, 2023
1 parent 6ca13af commit 3ff15c6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
needs:
- build_and_push
- branch_name
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@main
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/deploy.yml@BC-5405-labels-k8s
with:
branch: ${{ needs.branch_name.outputs.branch }}
secrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
labels:
app: antivirus
antivirus: scanfile
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }}
git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }}
git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }}
spec:
replicas: {{ ANTIVIRUS_SCANFILE_REPLICAS|default("1", true) }}
strategy:
Expand All @@ -24,9 +28,13 @@ spec:
labels:
app: antivirus
antivirus: scanfile
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }}
git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }}
git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }}
annotations:
spec:
securityContext:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
Expand All @@ -53,4 +61,3 @@ spec:
volumes:
- name: shared
emptyDir: {}

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
labels:
app: antivirus
antivirus: webserver
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }}
git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }}
git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }}
spec:
replicas: {{ ANTIVIRUS_WEBSERVER_REPLICAS|default("1", true) }}
strategy:
Expand All @@ -24,9 +28,13 @@ spec:
labels:
app: antivirus
antivirus: webserver
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ ANTIVIRUS_CHECK_SERVICE_IMAGE_TAG }}
git.branch: {{ ANTIVIRUS_CHECK_SERVICE_BRANCH_NAME }}
git.repo: {{ ANTIVIRUS_CHECK_SERVICE_REPO_NAME }}
annotations:
spec:
securityContext:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
Expand Down

0 comments on commit 3ff15c6

Please sign in to comment.