In order to ensure the region is correctly passed to the composition for building the RDS cache cluster, a new composition needs to be created that wraps rdscacheclusters.xdatabases.crossplane.giantswarm.io
This composition will be given all the parameters for the rdscacheclusters along with additional clusterName and clusterNamespace
The purpose of this composition will then
Block Infrastructure creation
Look up clusters.cluster.x-k8s.io
Retrieve spec.infrastructureRef
Determine if this is an AWS cluster or AWS Managed cluster
If not, abort on a composition assertion as this composition currently only supports AWS
Perform a secondary lookup to retrieve the AWSCluster or AWSManagedCluster resource
Patch region back to status.region
Feed status.region to rdscacheclusters.xdatabases.crossplane.giantswarm.io.spec.region
In order to ensure the region is correctly passed to the composition for building the RDS cache cluster, a new composition needs to be created that wraps
rdscacheclusters.xdatabases.crossplane.giantswarm.io
This composition will be given all the parameters for the
rdscacheclusters
along with additionalclusterName
andclusterNamespace
The purpose of this composition will then
clusters.cluster.x-k8s.io
spec.infrastructureRef
AWSCluster
orAWSManagedCluster
resourceregion
back tostatus.region
status.region
tordscacheclusters.xdatabases.crossplane.giantswarm.io.spec.region