Skip to content

Operators become ready before the CRD has been installed #828

Description

@NickLarsenNZ

This leads to errors as seen in getting_started scripts (described in a slack thread):

Creating Airflow cluster
error: resource mapping not found for name: "airflow" namespace: "" from "airflow.yaml": no matches for kind "AirflowCluster" in version "airflow.stackable.tech/v1alpha1"
ensure CRDs are installed first

The workaround is to add a sleep 20

Why now

Previously, Helm installed the CRDs, and did so before deploying the operators.

Now Helm deploys the operators without CRDs (by default), and the CRDs are created after the operator pod is up. An apply of a CR that happens straight after that but before the maintainer has created the CRD will fail.

Possible solution

Add a startupProbe endpoint which only gives 200 OK when the CRD has been deployed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions