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
apiVersion: kms.aws.upbound.io/v1beta1
kind: Alias
Resource MRs required to reproduce the bug
key.kms.aws.upbound.io/v1beta1
Steps to Reproduce
Create a MR key.kms.aws.upbound.io/v1beta1
Create a MR Alias.kms.aws.upbound.io/v1beta1 and try to associate to the KMS Key created above using spec.forProvider.targetKeyIdRef
What happened?
Ideally it should be able to lookup KMSKeyId and populate Spec.ForProvider.TargetKeyID and create the MR Alias.kms.aws.upbound.io/v1beta1
Relevant Error Output Snippet
The Alias never gets created with an error message in the MR that says:
`message: 'cannot resolve references: mg.Spec.ForProvider.TargetKeyID: referenced field was empty (referenced resource may not yet be ready)' reason: ReconcileError status: "False"`
niralmehtasb1
changed the title
[Bug]: Cannot create KMS Key Alias by using selectors (Probably same as https://github.com/crossplane-contrib/provider-upjet-aws/issues/1523)
[Bug]: Cannot create KMS Key Alias by using selectors
Nov 4, 2024
Thank you, I can easily create resources with the following MRs:
apiVersion: kms.aws.upbound.io/v1beta1
kind: Alias
metadata:
annotations:
meta.upbound.io/example-id: kms/v1beta1/alias
labels:
testing.upbound.io/example-name: a
name: a
spec:
forProvider:
region: us-west-1
targetKeyIdSelector:
matchLabels:
testing.upbound.io/example-name: a
---
apiVersion: kms.aws.upbound.io/v1beta1
kind: Key
metadata:
annotations:
meta.upbound.io/example-id: kms/v1beta1/alias
labels:
testing.upbound.io/example-name: a
name: a
spec:
forProvider:
region: us-west-1
Please make sure your resources are in the same region and the label and selector match. I am closing this issue for now; if you still have problems, you can reopen the issue by sharing your MRs.
Is there an existing issue for this?
Affected Resource(s)
apiVersion: kms.aws.upbound.io/v1beta1
kind: Alias
Resource MRs required to reproduce the bug
key.kms.aws.upbound.io/v1beta1
Steps to Reproduce
key.kms.aws.upbound.io/v1beta1
Alias.kms.aws.upbound.io/v1beta1
and try to associate to the KMS Key created above usingspec.forProvider.targetKeyIdRef
What happened?
Ideally it should be able to lookup KMSKeyId and populate
Spec.ForProvider.TargetKeyID
and create the MRAlias.kms.aws.upbound.io/v1beta1
Relevant Error Output Snippet
Crossplane Version
v1.17.2
Provider Version
v1.14.0
Kubernetes Version
v1.31.0
Kubernetes Distribution
EKS
Additional Info
(Probably same as #1523)
No response
The text was updated successfully, but these errors were encountered: