Skip to content

Bug: non-existant group in Api-Check blocks deletion #59

@fluktuid

Description

@fluktuid

When applying an api-check with a non-existant group, the check can't be deleted.
The deletion is blocked by the finalizer.

steps to reproduce:

  • apply api-check with non-existant group
    e.g.
    apiVersion: k8s.checklyhq.com/v1alpha1
    kind: ApiCheck
    metadata:
      name: operator-apicheck-sample
    spec:
      endpoint: "checklyhq.com"
      success: "200"
      muted: true # Default "false"
      group: non-existant-dummy-group
  • delete ApiCheck
    kubectl delete apicheck operator-apicheck-sample
  • look at operator logs and wait (potenially forever)

Workaround (bad practice):

  • patch operator for deletion
    this may result in a delta between checkly api and cluster-scope, so this may result in a delta between 'expected reality' and 'reality' when using gitops.
    kubectl patch apicheck operator-apicheck-sample --patch '{"metadata":{"finalizers":[]}}' --type='merge'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions