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

Add capability to end-to-end test HEAD of the branch #96

Merged
merged 3 commits into from Apr 23, 2020
Merged

Conversation

ytsarev
Copy link
Member

@ytsarev ytsarev commented Apr 22, 2020

  • Deploy ephemeral local registry-v2 as a container on the same network as kind
    clusters
  • Build current HEAD and push to this local registry
  • Configure kind clusters to consume local 'insecure' registry
  • Can be enabled by export TEST_CURRENT_COMMIT=yes
  • Deploys stable version by default
  • Idea is based on https://kind.sigs.k8s.io/docs/user/local-registry/
  • Enable current commit testing in terratest pipeline

* Deploy ephemeral local registry-v2 as a container on the same network as kind
  clusters
* Build current HEAD and push to this local registry
* Configure kind clusters to consume local 'insecure' registry
* Can be enabled by `export TEST_CURRENT_COMMIT=yes`
* Deploys stable version by default
* Idea is based on https://kind.sigs.k8s.io/docs/user/local-registry/
* To avoid duplication in the pipeline
deploy-second-ohmyglb: deploy-gslb-operator deploy-local-ingress

.PHONY: deploy-full-local-setup
deploy-full-local-setup: deploy-two-local-clusters
./deploy/full.sh deploy-test-apps
ADDITIONAL_TARGETS=deploy-test-apps ./deploy/full.sh
Copy link
Collaborator

@kuritka kuritka Apr 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks very smart btw

@ytsarev ytsarev merged commit b2043d1 into master Apr 23, 2020
@ytsarev ytsarev deleted the local-registry branch April 23, 2020 07:19
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.

None yet

2 participants