You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
The User never becomes synced. It is created but it looks like the jet gcp provider is not aware of that and tries to create it again.
$ kubectl get managed
NAME READY SYNCED EXTERNAL-NAME AGE
databaseinstance.sql.gcp.jet.crossplane.io/example12344 True True example12344 27m
NAME READY SYNCED EXTERNAL-NAME AGE
user.sql.gcp.jet.crossplane.io/example True False example12344 3m15s
User events:
Status:
At Provider:
Id: root//example12344Conditions:
Last Transition Time: 2022-04-20T09:37:05ZReason: AvailableStatus: TrueType: ReadyLast Transition Time: 2022-04-20T09:37:10ZMessage: observe failed: cannot run plan: plan failed: Instance cannot be destroyed: Resource google_sql_user.example has lifecycle.prevent_destroy set, but the plan calls for this resource to be destroyed. To avoid this error and continue with the plan, either disable lifecycle.prevent_destroy or reduce the scope of the plan using the -target flag.: File name: main.tf.jsonReason: ReconcileErrorStatus: FalseType: SyncedLast Transition Time: 2022-04-20T09:36:59ZReason: FinishedStatus: TrueType: AsyncOperationLast Transition Time: 2022-04-20T09:36:59ZReason: SuccessStatus: TrueType: LastAsyncOperationEvents:
Type Reason Age From Message---- ------ ---- ---- -------Normal CreatedExternalResource 3m20s managed/sql.gcp.jet.crossplane.io/v1alpha2, kind=user Successfully requested creation of external resourceWarning CannotObserveExternalResource 45s (x8 over 3m3s) managed/sql.gcp.jet.crossplane.io/v1alpha2, kind=user cannot run plan: plan failed: Instance cannot be destroyed: Resource google_sql_user.example has lifecycle.prevent_destroy set, but the plan calls for this resource to be destroyed. To avoid this error and continue with the plan, either disable lifecycle.prevent_destroy or reduce the scope of the plan using the -target flag.: File name: main.tf.json
How can we reproduce it?
Apply the file from the issue description. Notice that the values for the project have to be changed.
What happened?
When applying the below manifest with GCP DatabaseInstance and User resources:
The
User
never becomes synced. It is created but it looks like the jet gcp provider is not aware of that and tries to create it again.User events:
How can we reproduce it?
Apply the file from the issue description. Notice that the values for the
project
have to be changed.What environment did it happen in?
Crossplane version: v1.7.0
Provider version: v0.3.0-rc.19.g1a65335
The text was updated successfully, but these errors were encountered: