Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Change the order of checking cert-manager is ready before moving on #179

Closed
wants to merge 1 commit into from

Conversation

Waterdrips
Copy link
Contributor

@Waterdrips Waterdrips commented Jan 18, 2020

Description

We currently install cert-manager, then just install openfaas chart
then we check if cert-manager is ready. This leads to openfaas failing
to install because the webhooks for cert-manager don't exist and helm
fails if any of the endpoints are not ready. See issue:
helm/helm#6361

This has been tested by running before changing the code, and openfaas
failed to install. Then I changed the order and ran against a new cluster.
This install worked as expected.

Fixes #178
Fixes #168
Signed-off-by: Alistair Hey alistair@heyal.co.uk

How Has This Been Tested?

This has been tested by running before changing the code, and openfaas
failed to install. Then I chnged the order and ran against a new cluster.

Checklist:

I have:

  • checked my changes follow the style of the existing code / OpenFaaS repos
  • updated the documentation and/or roadmap in README.md
  • read the CONTRIBUTION guide
  • signed-off my commits with git commit -s
  • added unit tests

@alexellis
Copy link
Member

Thanks for looking into this. I have one or two questions.

This leads to openfaas failing
to install because the webhooks for cert-manager don't exist and we
rely on them in openfaas.

Can you explain how openfaas relies on cert-manager for its installation?

@Waterdrips
Copy link
Contributor Author

Thanks for looking into this. I have one or two questions.

This leads to openfaas failing
to install because the webhooks for cert-manager don't exist and we
rely on them in openfaas.

Can you explain how openfaas relies on cert-manager for its installation?

This was a misunderstanding - its actually this helm issue: helm/helm#6361

The helm client does a check on the endpoints to make sure they are all ready before continuing.
If they are not all ready helm exits.

Let me change the commit message and description

We currently install cert-manager, then just install openfaas chart
then we check if cert-manager is ready. This leads to openfaas failing
to install because the webhooks for cert-manager don't exist and helm
fails if any of the endpoints are not ready. See issue:
helm/helm#6361

This has been tested by running before changing the code, and openfaas
failed to install. Then I changed the order and ran against a new cluster.
This install worked as expected.

Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
@alexellis
Copy link
Member

So should we checking that cert-manager is ready and tightly couple to that, or check that helm is ready in some generic way between installing each component? I tend to think that the later would be more robust.

@alexellis
Copy link
Member

alexellis commented Jan 21, 2020

helm/helm#6361 (comment)

It seems like we can just check that all API-servers are "Ready" before moving on and retain the original order?

@alexellis
Copy link
Member

What are the steps I need to run to reproduce this?

Can I do it with a new k3d cluster for instance without ofc-bootstrap? Do I just install cert-manager, then immediately try to install anything else with helm?

@Waterdrips
Copy link
Contributor Author

I used anew civo cluster and ran of-cbootstrap.

You can probably run scripts/install-cert-manager.sh then scripts/install-openfaas.sh

@alexellis alexellis closed this Jan 25, 2020
@alexellis
Copy link
Member

We're going to address this via #182 instead of via changing the timing, changing the ordering / timing is likely to re-emerge as a similar issue later on.

@Waterdrips Waterdrips deleted the fix-ordering-issue branch June 2, 2020 10:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitLab support request Timing issue with cert-manager webhook
2 participants