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

workflow: add additional images to mirror #481

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Conversation

tormath1
Copy link
Contributor

Noticed in the calico logs:

pod_workers.go:965] "Error syncing pod, skipping" err="[failed to \"StartContainer\" for \"calico-csi\" with ImagePullBackOff: \"Back-off pulling image \\\"ghcr.io/flatcar/calico/csi:v3.26.3\\\"\", failed to \"StartContainer\" for \"csi-node-driver-registrar\" with ImagePullBackOff: \"Back-off pulling image \\\"ghcr.io/flatcar/calico/node-driver-registrar:v3.26.3\\\"\"]" pod="calico-system/csi-node-driver-gdhcm" podUID=05b7a8ec-7d12-486a-b6a2-87388a502d4a

projectcalico/calico@9d39763 might be related? But not sure since it's present since the release 3.25.0

That should help reducing the flaky tests.

Noticed in the calico logs:
```
pod_workers.go:965] "Error syncing pod, skipping" err="[failed to \"StartContainer\" for \"calico-csi\" with ImagePullBackOff: \"Back-off pulling image \\\"ghcr.io/flatcar/calico/csi:v3.26.3\\\"\", failed to \"StartContainer\" for \"csi-node-driver-registrar\" with ImagePullBackOff: \"Back-off pulling image \\\"ghcr.io/flatcar/calico/node-driver-registrar:v3.26.3\\\"\"]" pod="calico-system/csi-node-driver-gdhcm" podUID=05b7a8ec-7d12-486a-b6a2-87388a502d4a
```

projectcalico/calico@9d39763
might be related? But not sure since it's present since the release
3.25.0

Signed-off-by: Mathieu Tortuyaux <[email protected]>
@tormath1 tormath1 self-assigned this Nov 10, 2023
@tormath1 tormath1 requested a review from a team November 10, 2023 09:13
@krnowak
Copy link
Member

krnowak commented Nov 10, 2023

I think you could kick off this job after merging it.

@tormath1 tormath1 merged commit 94aca3a into flatcar-master Nov 10, 2023
2 checks passed
@tormath1 tormath1 deleted the tormath1/calico branch November 10, 2023 13:34
@tormath1
Copy link
Contributor Author

I had to hack a bit the workflow:

diff --git a/.github/workflows/sync-calico-version.yml b/.github/workflows/sync-calico-version.yml
index 0cfd0599..662c663c 100644
--- a/.github/workflows/sync-calico-version.yml
+++ b/.github/workflows/sync-calico-version.yml
@@ -35,15 +35,13 @@ jobs:
           commit-message: Update calico to ${{ steps.update-links.outputs.CALICO_VERSION }}
           delete-branch: true
       - name: Login to GitHub Container Registry (ghcr)
-        if: steps.update-links.outputs.UPDATE_NEEDED == 1
         uses: docker/login-action@v2
         with:
           registry: ghcr.io
           username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
       - name: Mirror calico images to GHCR
-        if: steps.update-links.outputs.UPDATE_NEEDED == 1
         env:
-          CALICO_VERSION: ${{ steps.update-links.outputs.CALICO_VERSION }}
+          CALICO_VERSION: v3.26.3
           GHCR_ORG: ${{ inputs.ghcr_org }}
         run: .github/workflows/mirror-calico-images.sh "${GHCR_ORG:-flatcar}" "${CALICO_VERSION}"

Otherwise the mirroring is ignored if there is no new version. Here's the resulting action:
https://github.com/flatcar/mantle/actions/runs/6825786716/job/18564359974

Images are now available: https://github.com/orgs/flatcar/packages?tab=packages&q=calico

@krnowak
Copy link
Member

krnowak commented Nov 10, 2023

That's acceptable since it was just a one-off. Thanks for doing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants