From ecb6ab946d2b808180a9d0b71a87e24c9baada10 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 4 Nov 2020 13:23:54 +0000 Subject: [PATCH] Update manifest to IfNotPresent Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- .github/workflows/ci-only.yaml | 14 +++++--------- config/controller/controller.yaml | 1 + 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-only.yaml b/.github/workflows/ci-only.yaml index 38ae60c..89cefbd 100644 --- a/.github/workflows/ci-only.yaml +++ b/.github/workflows/ci-only.yaml @@ -30,8 +30,6 @@ jobs: outputs: "type=docker,push=false" platforms: linux/amd64 tags: ghcr.io/alexellis/registry-creds:${{ github.sha }} - - name: Image digest - run: echo ghcr.io/alexellis/registry-creds:${{ github.sha }} - name: Image digest 2 run: echo ${{ steps.local_build.outputs.digest }} - name: Setup Kubernetes @@ -39,15 +37,13 @@ jobs: with: version: "v0.9.0" image: kindest/node:v1.18.8 - - name: Show images - run: docker images - name: Load test image - run: kind load --loglevel trace docker-image ghcr.io/alexellis/registry-creds:${{ github.sha }} - - name: Apply CRD + run: kind load --loglevel trace docker-image ${{ steps.local_build.outputs.digest }} + - name: Apply manifests run: | - export TAG=${{ github.sha }} TAG=${{ github.sha }} make shrinkwrap + cat ./manifest.yaml | grep ghcr kubectl apply -f ./manifest.yaml - name: Check deployment - run: - kubectl rollout status -n registry-creds-system deploy/registry-creds-registry-creds-controller --timeout=2m || kubectl describe -n registry-creds-system deploy/registry-creds-registry-creds-controller + run: + kubectl rollout status -n registry-creds-system deploy/registry-creds-registry-creds-controller --timeout=2m || kubectl describe -n registry-creds-system deploy/registry-creds-registry-creds-controller && kubectl get events -n registry-creds-system diff --git a/config/controller/controller.yaml b/config/controller/controller.yaml index c608f80..576c6f4 100644 --- a/config/controller/controller.yaml +++ b/config/controller/controller.yaml @@ -29,6 +29,7 @@ spec: - --enable-leader-election image: ghcr.io/alexellis/registry-creds-controller:0.2.0 name: controller + imagePullPolicy: IfNotPresent resources: limits: cpu: 100m