Skip to content

Commit

Permalink
add labels to SHD deployment and pods
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchuhmacher committed Nov 9, 2023
1 parent 50d1a59 commit a25c37e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,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
10 changes: 9 additions & 1 deletion ansible/roles/superhero-dashboard/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: shd
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ SUPERHERO_DASHBOARD_IMAGE_TAG }}
git.branch: {{ SUPERHERO_DASHBOARD_BRANCH_NAME }}
git.repo: {{ SUPERHERO_DASHBOARD_REPO_NAME }}
spec:
replicas: {{ SHD_REPLICAS|default("1", true) }}
strategy:
Expand All @@ -21,9 +25,13 @@ spec:
metadata:
labels:
app: shd
app.kubernetes.io/part-of: schulcloud-verbund
app.kubernetes.io/version: {{ SUPERHERO_DASHBOARD_IMAGE_TAG }}
git.branch: {{ SUPERHERO_DASHBOARD_BRANCH_NAME }}
git.repo: {{ SUPERHERO_DASHBOARD_REPO_NAME }}
annotations:
spec:
securityContext:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
Expand Down

0 comments on commit a25c37e

Please sign in to comment.