Skip to content

HealthChecks failing with "no matches for kind..." whereas CRD is installed. #1680

Description

@zioc

Using kustomize controller v1.8.5, we have a kustomization running this healthcheck (among others):

healthChecks:
  - apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    kind: OpenStackCluster
    name: mgmt-2620952448-rke2-capo
    namespace: sylva-system

that fails to reconcile with following error (first occurence at 2026-06-22T20:09:10.247Z):

health check failed after 30.034806535s: timeout waiting for: [OpenStackCluster/sylva-system/mgmt-2620952448-rke2-capo status: 'Unknown': no matches for kind "OpenStackCluster" in group "infrastructure.cluster.x-k8s.io"]

whereas the crd is already installed by another kustomization, and has a single version:

kubectl get customresourcedefinitions.apiextensions.k8s.io openstackclusters.infrastructure.cluster.x-k8s.io -o yaml | yq -r '.metadata.creationTimestamp, .spec.versions[].name'
2026-06-22T20:06:23Z
v1beta1

and the custom resource already exists in cluster:

❯ kubectl get openstackclusters.infrastructure.cluster.x-k8s.io mgmt-2620952448-rke2-capo -o yaml | yq .metadata.creationTimestamp
2026-06-22T20:06:47Z

This looks similar to that issue fluxcd/flux2#531, but this issue is fixed in v1.8.5, and the CRD has a single version installed...

Side note: we don't have the DisableStatusPollerCache feature enabled in our kustomize controller deployments, maybe it could help fixing that issue, as it looks like a cache miss. But this shouldn't have occurred anyway...

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/upstreamBlocked by an upstream dependency or issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions