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

Make it easier to run webhook tests locally #476

Merged
merged 16 commits into from Feb 16, 2021
Merged

Make it easier to run webhook tests locally #476

merged 16 commits into from Feb 16, 2021

Conversation

rbren
Copy link
Member

@rbren rbren commented Jan 14, 2021

You should now be able to use the included instructions to test the webhook locally.

@codecov
Copy link

codecov bot commented Jan 14, 2021

Codecov Report

Merging #476 (56c5c58) into master (c11b839) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #476   +/-   ##
=======================================
  Coverage   48.80%   48.80%           
=======================================
  Files          13       13           
  Lines         754      754           
=======================================
  Hits          368      368           
  Misses        317      317           
  Partials       69       69           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c11b839...56c5c58. Read the comment docs.

```bash
kind create cluster --wait=90s --image kindest/node:v1.15.11 --name polaris-test
docker build -t quay.io/fairwinds/polaris:debug .
docker push quay.io/fairwinds/polaris:debug .
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure the . on the end is necessary, I get "docker push" requires exactly 1 argument. when I run this

docker build -t quay.io/fairwinds/polaris:debug .
docker push quay.io/fairwinds/polaris:debug .
helm repo add jetstack https://charts.jetstack.io
helm install cert-manager jetstack/cert-manager --namespace cert-manager --version 0.16.1 --set "installCRDs=true" --wait
Copy link
Contributor

Choose a reason for hiding this comment

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

Mind adding kubectl create ns cert-manager above this line as well?

@rbren rbren requested a review from shaswa as a code owner January 15, 2021 18:11
Copy link
Contributor

@jordandoig jordandoig left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for all the edits to make the tests run on my lowly Mac. I left a few comments around edits to the instructions, but otherwise should be set!

Copy link
Contributor

@baderbuddy baderbuddy left a comment

Choose a reason for hiding this comment

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

LGTM

@rbren rbren merged commit a5852f3 into master Feb 16, 2021
@rbren rbren deleted the rb/webhook-tests branch February 16, 2021 16:48
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

3 participants