Skip to content

Commit

Permalink
Fix and cache ingress and podinfo images for test
Browse files Browse the repository at this point in the history
To reduce test time download images required for test only once

Signed-off-by: Dinar Valeev <dinar.valeev@absa.africa>
  • Loading branch information
k0da committed Mar 22, 2021
1 parent e6027b6 commit 228fe43
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/terratest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- run: |
docker pull k8s.gcr.io/ingress-nginx/controller:v0.44.0
docker pull stefanprodan/podinfo:5.1.1
- name: Create 1st k3s Cluster
uses: AbsaOSS/k3d-action@v1.3.1
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ deploy-to-AbsaOSS-k3d-action:
@echo "\n$(YELLOW)build k8gb docker and push to registry $(NC)"
docker build . -t $(REPO):$(SEMVER)

k3d image import $(REPO):$(SEMVER) -c $(CLUSTER_GSLB1)
k3d image import $(REPO):$(SEMVER) -c $(CLUSTER_GSLB2)
k3d image import $(REPO):$(SEMVER) \
k8s.gcr.io/ingress-nginx/controller:v0.44.0 \
stefanprodan/podinfo:5.1.1 -c $(CLUSTER_GSLB1)
k3d image import $(REPO):$(SEMVER) \
k8s.gcr.io/ingress-nginx/controller:v0.44.0 \
stefanprodan/podinfo:5.1.1 -c $(CLUSTER_GSLB2)


$(call deploy-local-cluster,$(CLUSTER_GSLB1),$(CLUSTER_GSLB2),$(SEMVER),)
$(call deploy-local-cluster,$(CLUSTER_GSLB2),$(CLUSTER_GSLB1),$(SEMVER),$(CLUSTER_GSLB2_HELM_ARGS))
Expand Down
2 changes: 2 additions & 0 deletions deploy/ingress/nginx-ingress-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
## Ref: https://github.com/kubernetes/ingress/blob/master/controllers/nginx/configuration.md
##
controller:
image:
tag: "v0.44.0"
hostNetwork: true

## Use host ports 80 and 443
Expand Down

0 comments on commit 228fe43

Please sign in to comment.