eclipse-symphony / symphony

Symphony project
MIT License
34 stars 26 forks source link

ingress target provider bug #385

Open yanjiaxin534 opened 1 month ago

yanjiaxin534 commented 1 month ago

When I install ingress target provider, I need to install nginx first. However, Before nginx is ready, we call the ingress. So, there is an error:" P (Ingress Target): failed to apply ingress: Internal error occurred: failed calling webhook \"validate.nginx.ingress.kubernetes.io\": failed to call webhook: Post \"https://nginx-ingress-ingress-nginx-controller-admission.default.svc:443/networking/v1/ingresses?timeout=10s\": no endpoints available for service \"nginx-ingress-ingress-nginx-controller-admission\", traceId: 00000000000000000000000000000000" instance=symphony-api-85cf46d654-4qpkn scope=coa.runtime type=log ver=unknown" We need to use some strategy to solve this problem.

msftcoderdjw commented 1 month ago

Sometimes toolchain will report the deployment ready status earlier than the deployment is ready. We can consider to extend target provider to add a validation check.

Customized validation can be done via Campaign right now.

Or converting instance/target creation to run campaign at background.