Skip to content

Commit

Permalink
BC-8876 - set os filed for POD Templates from Deployments, CronJobs a…
Browse files Browse the repository at this point in the history
…nd Jobs (#5475)
  • Loading branch information
mamutmk5 authored Jan 30, 2025
1 parent 8c78cd2 commit 8f410ce
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/common-cartridge/templates/deployment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: common-cartridge
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
volumes:
- name: libraries-list
configMap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ spec:
git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }}
git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }}
spec:
os:
name: linux
containers:
- name: vidis-sync-cronjob
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ spec:
git.branch: {{ SCHULCLOUD_SERVER_BRANCH_NAME }}
git.repo: {{ SCHULCLOUD_SERVER_REPO_NAME }}
spec:
os:
name: linux
containers:
- name: media-metadata-sync-cronjob
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
spec:
template:
spec:
os:
name: linux
containers:
- name: moin-schule-users-deletion-queueing-cronjob
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
spec:
template:
spec:
os:
name: linux
containers:
- name: moin-schule-users-sync-cronjob
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-admin
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: amqp-files
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-files
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-fwu
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: board-collaboration
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: data-deletion-trigger-cronjob
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-migration-job
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: preview-generator
image: {{ SCHULCLOUD_SERVER_IMAGE }}:file-preview-{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-h5p
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ metadata:
spec:
template:
spec:
os:
name: linux
containers:
- name: api-init
image: quay.io/schulcloudverbund/infra-tools:latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spec:
activeDeadlineSeconds: {{ SERVER_LDAP_SYNC_FULL_CRONJOB_TIMEOUT|default("39600", true) }}
template:
spec:
os:
name: linux
containers:
- name: api-ldapsync-cronjob
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-worker
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-migration-systems
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
spec:
template:
spec:
os:
name: linux
containers:
- name: api-tsp-sync-base-cronjob
image: quay.io/schulcloudverbund/infra-tools:latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-tsp-sync-cronjob
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-tsp-sync
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ spec:
runAsGroup: 1000
fsGroup: 1000
runAsNonRoot: true
os:
name: linux
containers:
- name: api-tsp-sync-init
image: {{ SCHULCLOUD_SERVER_IMAGE }}:{{ SCHULCLOUD_SERVER_IMAGE_TAG }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
spec:
template:
spec:
os:
name: linux
containers:
- name: api-tsp-sync-school-cronjob
image: quay.io/schulcloudverbund/infra-tools:latest
Expand Down

0 comments on commit 8f410ce

Please sign in to comment.