Apply the managed resources, go to the AWS Console, manually update the AWS Secret. Wait until Crossplane reconciles again (to speed this up I added Delete to the managementPolicies). See the error.
What happened?
I'd expect because the initProvider is set to only initialize it the secretVersion to AWSCURRENT that when the version is no longer current it would ignore that change and continue reconciling and get into a good state.
Relevant Error Output Snippet
conditions:
- lastTransitionTime: "2024-06-23T17:16:18Z"
message: 'update failed: async update failed: failed to update the resource: [{0
updating Secrets Manager Secret "ARN"
Version Stage "AWSCURRENT": InvalidParameterException: The parameter RemoveFromVersionId
can''t be empty. Staging label AWSCURRENT is currently attached to version VERSION-ID,
so you must explicitly reference that version in RemoveFromVersionId. []}]'
reason: ReconcileError
status: "False"
type: Synced
- lastTransitionTime: "2024-06-23T17:15:09Z"
reason: Available
status: "True"
type: Ready
- lastTransitionTime: "2024-06-23T17:16:18Z"
message: 'async update failed: failed to update the resource: [{0 updating Secrets
Manager Secret "ARN"
Version Stage "AWSCURRENT": InvalidParameterException: The parameter RemoveFromVersionId
can''t be empty. Staging label AWSCURRENT is currently attached to version VERSION-ID,
so you must explicitly reference that version in RemoveFromVersionId. []}]'
reason: AsyncUpdateFailure
status: "False"
type: LastAsyncOperation
Is there an existing issue for this?
Affected Resource(s)
Resource MRs required to reproduce the bug
Steps to Reproduce
Apply the managed resources, go to the AWS Console, manually update the AWS Secret. Wait until Crossplane reconciles again (to speed this up I added
Delete
to themanagementPolicies
). See the error.What happened?
I'd expect because the initProvider is set to only initialize it the secretVersion to AWSCURRENT that when the version is no longer current it would ignore that change and continue reconciling and get into a good state.
Relevant Error Output Snippet
Crossplane Version
1.16.0
Provider Version
1.7.0
Kubernetes Version
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.4", GitCommit:"fa3d7990104d7c1f16943a67f11b154b71f6a132", GitTreeState:"clean", BuildDate:"2023-07-19T12:14:48Z", GoVersion:"go1.20.6", Compiler:"gc", Platform:"darwin/arm64"} Kustomize Version: v5.0.1 Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.3", GitCommit:"25b4e43193bcda6c7328a6d147b1fb73a33f1598", GitTreeState:"clean", BuildDate:"2023-06-15T00:38:14Z", GoVersion:"go1.20.5", Compiler:"gc", Platform:"linux/arm64"}
Kubernetes Distribution
Kind and EKS
Additional Info
No response