-
Notifications
You must be signed in to change notification settings - Fork 95
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
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Makefile
Outdated
@@ -85,6 +91,7 @@ run: generate fmt vet manifests | |||
.PHONY: deploy | |||
deploy: $(KUBECTL) $(KUSTOMIZE) | |||
$(MAKE) manifests install-cert-manager | |||
@sleep 20 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion, LGTM
There was a problem hiding this 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).
Signed-off-by: Ernest Wong <[email protected]>
Signed-off-by: Ernest Wong [email protected]