Open mlubanski opened 8 months ago
We have the same behaviour
@shxdxwraze thx, worked for me. However if you describe the managed resource the external-name is still generated by crossplane.
apiVersion: rds.aws.upbound.io/v1beta2
kind: Instance
metadata:
name: aleks-test-01
spec:
providerConfigRef:
name: provider-aws
forProvider:
identifier: aleks-test-01
k get managed
NAME SYNCED READY EXTERNAL-NAME AGE
instance.rds.aws.upbound.io/aleks-test-01 True True db-IZ3A2WLOJTEG4HBTMMJJXH4ELQ 8m2s
Hi @mlubanski,
As @shxdxwraze mentioned above, you need to use the spec.forProvider.identifier
to set the "DB Identifier", not the external-name annotation. We hold the AWS generated resource ID in the external-name annotation and its purpose and syntax is different than the DB identifier's. An example is db-Q4NG7NCIVPNEPHJA6BT7LUHDHI
. Could you please try setting the DB identifier via the spec.forProvider.identifier
?
This provider repo does not have enough maintainers to address every issue. Since there has been no activity in the last 90 days it is now marked as stale
. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh
will mark this issue as not stale.
@mlubanski, is this still an issue?
I face the same issue. I've tried setting the identifier but got an error spec.forProvider.identifier: field not declared in schema Setting metadata.name also didn't help
I've added the identifier, but ArgoCD can't sync the change successfully.
In the CRD, I can see the identifier added under the 'last-applied-configuration' annotation, but it's not present under 'spec'.
Which API version are you using in your composition?
spec.forProvider.identifier
doesn't exist in v1beta1, only in v1beta2 and
v1beta3.
On Thu, Aug 15, 2024, 11:21 PM Momchi @.***> wrote:
I've added the identifier, but ArgoCD can't sync the change successfully. image.png (view on web) https://github.com/user-attachments/assets/c4992535-6ee3-495e-9309-cbb9dea144a8
In the CRD, I can see the identifier added under the 'last-applied-configuration' annotation, but it's not present under 'spec'.
— Reply to this email directly, view it on GitHub https://github.com/crossplane-contrib/provider-upjet-aws/issues/1185#issuecomment-2292893325, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH2UAJGZ4B6J6OMS6QVPATZRWLADAVCNFSM6AAAAABEBLDSK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJSHA4TGMZSGU . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>
@mbbush, I use apiVersion: rds.aws.upbound.io/v1beta2
Update:
Currently, I see the 'identifier'
under the specs in the CRD:
apiVersion: rds.aws.upbound.io/v1beta2
kind: Instance
metadata:
annotations:
...
...
spec:
forProvider:
...
...
identifier: xyz
Also, as I was renaming the DB Identifier manually via the AWS console, it was scheduling to rename the instance back to 'terraform-XXXXXXX'
during the maintenance window, but now that's not the case. Now I think that the issue is more probably related to ArgoCD, which is unable to sync the changes properly.
Is there an existing issue for this?
Affected Resource(s)
rds.aws.upbound.io/v1beta1
-Instance
Resource MRs required to reproduce the bug
Steps to Reproduce
create
Instance
ManagedResource with custom custom name set bycrossplane.io/external-name: eu1lab-eks001-default-mysql-1
annotationWhat happened?
During above MR creation in console I was able see in EXTERNAL-NAME column
mysql-1-d6msv-q7h8m
name In AWS Resource was named:terraform-20240301080146611000000001
After resource was successfully provisioned in AWS, crossplane changed value ofcrossplane.io/external-name
todb-EZPPTHUGTJANNMPS7SMQI4QGYE
(In AWS Console this value is visible asResourceID
)Relevant Error Output Snippet
No response
Crossplane Version
1.15.1
Provider Version
1.1.0
Kubernetes Version
1.27.x
Kubernetes Distribution
local/kind
Additional Info
No response