Skip to content

Conversation

@ruinan-liu
Copy link
Contributor

@ruinan-liu ruinan-liu commented Feb 4, 2026

add deletion options when calling err := c.upstreamClient.Delete(ctx, current, opts...)

Local reproduction for fix:

ruinanliu@ruinanliu-work:/playground/deletion_group$ k get crd -A --kubeconfig target-cls
NAME CREATED AT
nodenetworkconfigs.acn.azure.com 2026-02-05T17:52:04Z
overlayextensionconfigs.acn.azure.com 2026-02-05T17:52:04Z
volumesnapshotclasses.snapshot.storage.k8s.io 2026-02-05T17:52:16Z
volumesnapshotcontents.snapshot.storage.k8s.io 2026-02-05T17:52:16Z
volumesnapshots.snapshot.storage.k8s.io 2026-02-05T17:52:16Z
ruinanliu@ruinanliu-work:
/playground/deletion_group$ k get schedulerconfiguration -A --kubeconfig target-cls
Error from server (NotFound): Unable to list "aks.azure.com/v1alpha1, Resource=schedulerconfigurations": the server could not find the requested resource (get schedulerconfigurations.aks.azure.com)
ruinanliu@ruinanliu-work:/playground/deletion_group$ k get schedulerconfiguration -A --kubeconfig target-cls ^C
ruinanliu@ruinanliu-work:
/playground/deletion_group$ aksdev cluster get C --azureconfig azureconfig.yaml | grep provisioning
"provisioningState": "Succeeded",
"provisioningState": "Succeeded",

@ruinan-liu ruinan-liu marked this pull request as ready for review February 5, 2026 18:28
deletionPropagation := metav1.DeletePropagationForeground
opts = append(opts, client.PropagationPolicy(deletionPropagation))
logger.Info("deleting resource with foreground deletion")
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a test coverage?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants