Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use skopeo to sync csi images to canonical org #10

Merged
merged 2 commits into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/data/sync-csi-images-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
k8s.gcr.io/sig-storage:
images-by-semver:
csi-node-driver-registrar: "= v2.10.0"
csi-provisioner: "= v3.4.1"
csi-resizer: "= v1.7.0"
csi-snapshotter: "= v6.2.1"
20 changes: 20 additions & 0 deletions .github/workflows/sync-csi-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Synchronize CSI Images

on:
schedule:
- cron: "0 0 * * *" # Runs every midnight
jobs:
synchronize:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Skopeo Sync
run: |
docker run -v ${GITHUB_WORKSPACE}:/tmp/ quay.io/skopeo/stable:v1.15 sync \
--src yaml \
--dest docker \
/tmp/.github/data/sync-csi-images-config.yaml ghcr.io/canonical/sig-storage \
--format oci \
--dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
resources:
{{- toYaml .Values.controller.resources | nindent 12 }}
- name: external-resizer
image: k8s.gcr.io/sig-storage/csi-resizer:v1.7.0
image: ghcr.io/canonical/sig-storage/csi-resizer:v1.7.0
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down
6 changes: 3 additions & 3 deletions deploy/charts/rawfile-csi/templates/01-node-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
resources:
{{- toYaml .Values.node.resources | nindent 12 }}
- name: node-driver-registrar
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.10.0
image: ghcr.io/canonical/sig-storage/csi-node-driver-registrar:v2.10.0
imagePullPolicy: IfNotPresent
args:
- --csi-address=$(ADDRESS)
Expand Down Expand Up @@ -124,7 +124,7 @@ spec:
cpu: 10m
memory: 100Mi
- name: external-provisioner
image: k8s.gcr.io/sig-storage/csi-provisioner:v3.4.1
image: ghcr.io/canonical/sig-storage/csi-provisioner:v3.4.1
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down Expand Up @@ -154,7 +154,7 @@ spec:
- name: socket-dir
mountPath: /csi
- name: external-snapshotter
image: k8s.gcr.io/sig-storage/csi-snapshotter:v6.2.1
image: ghcr.io/canonical/sig-storage/csi-snapshotter:v6.2.1
imagePullPolicy: IfNotPresent
args:
- "--csi-address=$(ADDRESS)"
Expand Down
Loading