Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The EventingAuth CR is not deleted even though the Kyma cluster was deleted #34

Closed
marcobebway opened this issue Jul 18, 2023 · 0 comments · Fixed by #35
Closed

The EventingAuth CR is not deleted even though the Kyma cluster was deleted #34

marcobebway opened this issue Jul 18, 2023 · 0 comments · Fixed by #35
Assignees
Labels
area/eventing Issues or PRs related to eventing kind/bug Categorizes issue or PR as related to a bug.

Comments

@marcobebway
Copy link
Contributor

Description

In some cases, the EventingAuth CR is not deleted even though the Kyma cluster was deleted.

Expected result

The EventingAuth CR is deleted and the corresponding IAS application is deleted as well.

Troubleshooting

if err := skrClient.DeleteSecret(ctx); err != nil {
return fmt.Errorf("failed to delete secret: %v", err)
}

$ kubectl get eventingauths.operator.kyma-project.io -n kcp-system 0036415c-85e9-4fc5-95e5-95bdf846c090 -oyaml

apiVersion: operator.kyma-project.io/v1alpha1
kind: EventingAuth
metadata:
  creationTimestamp: "2023-05-16T01:23:10Z"
  deletionGracePeriodSeconds: 0
  deletionTimestamp: "2023-05-16T01:23:46Z"
  finalizers:
  - eventingauth.operator.kyma-project.io/finalizer
  generation: 2
  name: 0036415c-85e9-4fc5-95e5-95bdf846c090
  namespace: kcp-system
  ownerReferences:
  - apiVersion: operator.kyma-project.io/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: Kyma
    name: 0036415c-85e9-4fc5-95e5-95bdf846c090
    uid: ab6cca76-23f7-4a88-8eb5-133bcaa84af2
  resourceVersion: "1839283908"
  uid: e18a8ca6-99ca-49c7-acc1-211f35171c79
spec: {}
status:
  conditions:
  - lastTransitionTime: "2023-05-16T01:23:10Z"
    message: failed to fetch existing applications
    reason: IASApplicationCreationFailed
    status: "False"
    type: IASApplicationReady
  state: NotReady
$ kubectl get kymas.operator.kyma-project.io -n kcp-system 0036415c-85e9-4fc5-95e5-95bdf846c090

Error from server (NotFound): kymas.operator.kyma-project.io "0036415c-85e9-4fc5-95e5-95bdf846c090" not found
@marcobebway marcobebway added kind/bug Categorizes issue or PR as related to a bug. area/eventing Issues or PRs related to eventing labels Jul 18, 2023
@muralov muralov self-assigned this Jul 20, 2023
@muralov muralov linked a pull request Jul 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/eventing Issues or PRs related to eventing kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants