File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ kind-export-logs:
282282.PHONY : deploy-cert-manager
283283deploy-cert-manager : # # Deploy cert-manager in the configured Kubernetes cluster in ~/.kube/config
284284 helm repo add jetstack https://charts.jetstack.io --force-update
285- helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version ${CERT_MANAGER_VERSION} --set installCRDs =true --set config.apiVersion=controller.config.cert-manager.io/v1alpha1 --set config.kind=ControllerConfiguration --set config.kubernetesAPIQPS=10000 --set config.kubernetesAPIBurst=10000 --kubeconfig=${TEST_KUBECONFIG_LOCATION}
285+ helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version ${CERT_MANAGER_VERSION} --set crds.enabled =true --set config.apiVersion=controller.config.cert-manager.io/v1alpha1 --set config.kind=ControllerConfiguration --set config.kubernetesAPIQPS=10000 --set config.kubernetesAPIBurst=10000 --kubeconfig=${TEST_KUBECONFIG_LOCATION}
286286 kubectl wait --for=condition=Available --timeout=300s apiservice v1.cert-manager.io --kubeconfig=${TEST_KUBECONFIG_LOCATION}
287287
288288.PHONY : install-local
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ delete_ca() {
7171clean_up () {
7272 set +e
7373
74+ echo " Cleaning up test resources"
75+
7476 kubectl delete -f $E2E_DIR /blog-test/test-nlb-tls-app.yaml > /dev/null 2>&1
7577
7678 kubectl delete -f $E2E_DIR /blog-test/nlb-lab-tls.yaml > /dev/null 2>&1
@@ -80,7 +82,6 @@ clean_up() {
8082 helm uninstall aws-load-balancer-controller -n kube-system > /dev/null 2>&1
8183
8284 delete_ca
83-
8485}
8586
8687install_aws_load_balancer () {
@@ -134,14 +135,17 @@ main() {
134135
135136 timeout 30s bash -c ' until kubectl get service/nlb-tls-app --output=jsonpath=' {.status.loadBalancer}' | grep "ingress"; do : ; done' 1> /dev/null || exit 1
136137
138+ echo " Creating target groups"
139+
137140 create_target_group
138141
142+ echo " Waiting for target groups"
143+
139144 timeout 600s bash -c ' until echo | openssl s_client -connect $LOAD_BALANCER_HOSTNAME:$PORT; do : ; done' || exit 1
140145
141146 echo " Blog Test Finished Successfully"
142-
143- clean_up
144-
145147}
146148
149+ trap clean_up EXIT
150+
147151main
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ spec:
107107 serviceAccountName : pod-identity-webhook
108108 containers :
109109 - name : pod-identity-webhook
110- image : public.ecr.aws/perplexed /amazon-eks-pod-identity-webhook:latest
110+ image : amazon /amazon-eks-pod-identity-webhook:latest
111111 imagePullPolicy : IfNotPresent
112112 command :
113113 - /webhook
@@ -169,7 +169,7 @@ spec:
169169 name : selfsigned-issuer
170170 kind : ClusterIssuer
171171---
172- apiVersion : admissionregistration.k8s.io/v1beta1
172+ apiVersion : admissionregistration.k8s.io/v1
173173kind : MutatingWebhookConfiguration
174174metadata :
175175 name : pod-identity-webhook
@@ -179,6 +179,8 @@ metadata:
179179webhooks :
180180 - name : pod-identity-webhook.amazonaws.com
181181 failurePolicy : Ignore
182+ sideEffects : None
183+ admissionReviewVersions : ['v1', 'v1beta']
182184 clientConfig :
183185 service :
184186 name : pod-identity-webhook
You can’t perform that action at this time.
0 commit comments