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

test: enable e2e on kind clusters and shellcheck #24

Merged
merged 1 commit into from
May 11, 2021
Merged

test: enable e2e on kind clusters and shellcheck #24

merged 1 commit into from
May 11, 2021

Conversation

chewong
Copy link
Contributor

@chewong chewong commented May 11, 2021

Signed-off-by: Ernest Wong [email protected]

@chewong
Copy link
Contributor Author

chewong commented May 11, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chewong chewong changed the title test: enable e2e on kind clusters test: enable e2e on kind clusters and shellcheck May 11, 2021
@chewong chewong marked this pull request as ready for review May 11, 2021 20:52
@chewong chewong requested review from aramase and sozercan May 11, 2021 20:52
Makefile Outdated
@@ -85,6 +91,7 @@ run: generate fmt vet manifests
.PHONY: deploy
deploy: $(KUBECTL) $(KUSTOMIZE)
$(MAKE) manifests install-cert-manager
@sleep 20
Copy link
Member

Choose a reason for hiding this comment

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

can we wait instead of sleep

Copy link
Contributor Author

@chewong chewong May 11, 2021

Choose a reason for hiding this comment

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

We already have some wait statement in https://github.com/Azure/aad-pod-managed-identity/blob/main/Makefile#L155-L157 and the sleep was added on top of it due to the following error:

mutatingwebhookconfiguration.admissionregistration.k8s.io/aad-pi-webhook-mutating-webhook-configuration created
Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post "https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s": dial tcp 10.96.71.140:443: connect: connection refused
Error from server (InternalError): error when creating "STDIN": Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post "https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s": dial tcp 10.96.71.140:443: connect: connection refused

I only had this error when running kind on Mac but I don't see it when running it in our Linux agent. Removed the sleep for now but I will re-visit this in the future

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

Minor suggestion, LGTM

Copy link
Member

@aramase aramase left a comment

Choose a reason for hiding this comment

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

small nit, but otherwise lgtm!

I'm planning to remove the dependency on azure.json in PR, so it's easier for users to deploy the webhook in any k8s cluster (azure/non-azure).

Makefile Outdated Show resolved Hide resolved
@chewong
Copy link
Contributor Author

chewong commented May 11, 2021

@aramase feel free to remove any azure.json-related change introduced in this PR in #25

@chewong chewong merged commit 5fd7ae2 into Azure:main May 11, 2021
@chewong chewong deleted the kind-e2e branch May 11, 2021 22:34
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.

Create a test matrix for different K8s/kind version
3 participants