diff --git a/.github/data/sync-csi-images-config.yaml b/.github/data/sync-csi-images-config.yaml new file mode 100644 index 0000000..6e6adce --- /dev/null +++ b/.github/data/sync-csi-images-config.yaml @@ -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" diff --git a/.github/workflows/sync-csi-images.yaml b/.github/workflows/sync-csi-images.yaml new file mode 100644 index 0000000..43df41c --- /dev/null +++ b/.github/workflows/sync-csi-images.yaml @@ -0,0 +1,21 @@ +on: + push: + branches: + - "KU-384/sync-csi-images" + schedule: + - cron: "0 0 * * *" # Runs every midnight +jobs: + publish: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Skopeo + run: | + docker run -v $GITHUB_WORKSPACE:/ quay.io/skopeo/stable:v1.15 sync \ + --src yaml \ + --dest docker \ + /.github/data/sync-csi-images-config.yaml ghcr.io/canonical/sig-storage \ + --format oci \ + --dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/deploy/charts/rawfile-csi/templates/01-controller-plugin.yaml b/deploy/charts/rawfile-csi/templates/01-controller-plugin.yaml index ff8b6c5..b021c62 100644 --- a/deploy/charts/rawfile-csi/templates/01-controller-plugin.yaml +++ b/deploy/charts/rawfile-csi/templates/01-controller-plugin.yaml @@ -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)" diff --git a/deploy/charts/rawfile-csi/templates/01-node-plugin.yaml b/deploy/charts/rawfile-csi/templates/01-node-plugin.yaml index 1ed9058..d360090 100644 --- a/deploy/charts/rawfile-csi/templates/01-node-plugin.yaml +++ b/deploy/charts/rawfile-csi/templates/01-node-plugin.yaml @@ -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) @@ -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)" @@ -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)"