Skip to content

Commit

Permalink
sync script for Kokkos (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackgalbreath authored Oct 17, 2024
1 parent 0a6af86 commit e1d109c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 3 deletions.
11 changes: 8 additions & 3 deletions k8s/production/custom/gh-gl-sync/sealed-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ metadata:
spec:
encryptedData:
# This token must have repo:status permissions
github-access-token: AgC+PFXWgEdlev7cGlCl5t4jnrnOG94UJrIWURHBR/ioI+N/R/pNRyxhJIoWmH295u0lLdcsRkcICSuJWtV51kFDlYIUWgD06yld29jS4NhSobd97GEC0VBN53GB6iivQYUfazzwTy1nA6/bCcIaawB+0sseu2npIl9tDEI/JTVuyiupAG0OV1rCLka2Ua0OQuDhOURldmTqUI+WPRinYCnDJ49HPF97LZZupIrmbCeLGvHg5OD5KYVkOdZsgT6SmJFZZU3CKS8fA4GgtFRThcuZTlFawQSy6ixC6O7/BB7yS5I72YqS2x+gBq7HtzM+2smSmeeUaKUne3w+ExiTTlNpcif4kbobbR8xtb/lHgT70Aif7PI2mFF79BH7OVus+yC9F449Qr5LeKyoKAFLR1YYan90kBxXKa32ZNKruzguAsddW9KT8DCIdLDuUyM8KyPi8u1X1XEKuTSd/MKcjfzjRQuILMhu20oPeyk7WJjbGDKF1k1Dvjh7AUC6BtOuuX4WKFdckV47kQOC/03WImSulqKlpZWUX8xjP2HZbjzzMOdYyPld6K7ETaiZk/WGlSGxnzbw5P4L9hz/Q0MlA5zuTl4Rd8psTDxvL5dPQ7GbL1GOfViL1fz+GQPeoRPIPRYIGDiWYwuqfaPYtR5TEWGvEh4h0bekO31ahpZdgyGcn2/kAXXtILv5w1eCtk0B3ZIoQxZCPo/C9CXoCV+LgsPW3bJnTHwUah7cy7odrsyEeeX5C5arAY4s
gitlab-ssh-key: AgBOg3sj4PYdQRvGEISHOUQVRa1FSEX+oiILWWrvGGUZ5jKrcCX+7vN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bSgUZlo1Fjl5s/UNUl73geDk1VX7/h6urqey3B67zfoQiLeUkrv0VT0k2CF6snTJuh9IgohAE6A/iVhYql1X9OiVZNC99AesK3SHNnnn+lnt0vva6lTb0S7RrCaJy9rV2SP/u135JNsUgs7QJVlNlENuZQRCmF5XIrcMHfKk6TM73HYJBkcYMYxlgaaCaiBpj3EixDkLfyR9vwpTd05HNdF2AbNvyTIcS1pvdHEfeRX6sjpAyeQpfgfaryFXAsVo2h4NUklAk9tLRFeQyrAnvWmtgI07UVQ3IH9hszIfPLJyDlkuNXKYpCtEa/kLt+8kGnF+6PEuBZSi7mAtikNXlL3aq3zzkBVDm0OSwh4Mi06uKmovDo0s0tg8IaHQJ+sVMLmEmM+59DfhpJrSzg8+Id7pW7gkNAMJguUm2cEJ4sRfZucVG+O6cf1G3Qv8AdGcMsRFDJx4IigTF5+X56lIbLeBPQnkp9odnIa7odIuaeH0ngyvnh0mf7mjJNHYV6hONtUWfVyMhShBJIg8hUmA7rKWihaXNK9Vitv
template:
metadata:
annotations:
Expand Down
47 changes: 47 additions & 0 deletions k8s/production/custom/kokkos-sync/cron-jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: kokkos-sync
namespace: custom
spec:
schedule: "*/5 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
activeDeadlineSeconds: 1200 # terminate any running job after 20 minutes
backoffLimit: 0
template:
spec:
restartPolicy: Never
containers:
- name: sync
image: ghcr.io/spack/ci-bridge:0.0.43
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 500m
memory: 500M
env:
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: gh-gl-sync
key: kokkos-github-access-token
# This secret is double base64 encoded
- name: GITLAB_SSH_KEY_BASE64
valueFrom:
secretKeyRef:
name: gh-gl-sync
key: gitlab-ssh-key
envFrom:
- configMapRef:
name: gh-gl-sync-sentry-config
args:
- "kokkos/kokkos"
- "ssh://[email protected]/kokkos/kokkos"
- "https://gitlab.spack.io"
- "kokkos/kokkos"

nodeSelector:
spack.io/node-pool: base

0 comments on commit e1d109c

Please sign in to comment.