Closed simwak closed 5 months ago
A dashboard that was first successfully created with a valid JSON cannot be deleted after it has been updated with an invalid JSON.
apiVersion: oss.grafana.crossplane.io/v1alpha1 kind: Dashboard metadata: name: test-dashboard spec: forProvider: configJson: | { "title": "Crossplane Test!", "uid": "crossplane" } providerConfigRef: name: default
apiVersion: oss.grafana.crossplane.io/v1alpha1 kind: Dashboard metadata: name: test-dashboard spec: forProvider: configJson: | { "title": "Crossplane Test!", "uid": "crossplane" providerConfigRef: name: default
kubectl delete dashboard test-dashboard
The deletion is stuck until it is updated again with valid JSON. I would expect it to use the referenced dashboard that was last successfully applied (status.atProvider.id) and delete it.
status.atProvider.id
Seems to be fixed in the latest release!
A dashboard that was first successfully created with a valid JSON cannot be deleted after it has been updated with an invalid JSON.
Steps to reproduce
kubectl delete dashboard test-dashboard
The deletion is stuck until it is updated again with valid JSON. I would expect it to use the referenced dashboard that was last successfully applied (
status.atProvider.id
) and delete it.