Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: DocDB Cluster is missing dbSubnetGroupNameSelector #1483

Open
1 task done
excalq opened this issue Sep 6, 2024 · 0 comments
Open
1 task done

[Bug]: DocDB Cluster is missing dbSubnetGroupNameSelector #1483

excalq opened this issue Sep 6, 2024 · 0 comments
Labels
bug Something isn't working needs:triage

Comments

@excalq
Copy link

excalq commented Sep 6, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Affected Resource(s)

  • docdb.aws.upbound.io/v1beta1 - Cluster

Resource MRs required to reproduce the bug

Issue happens in compositions, which create SubnetGroups, to avoid the DocDB cluster using the unwanted "default" VPC, as happens if the Cluster's SubnetGroup is set implicitly.

Steps to Reproduce

  1. Create a composition building a DocDB database, using provider-aws-family
  2. Within the composition, create a SubnetGroup, a Cluster, and other resources such as a ClusterInstance, SecurityGroup, etc.

What happened?

  • The SubnetGroup will be named from the XR, with a suffix. Setting metadata.name seems to be ignored.
  • The Cluster has a dbSubnetGroupName parameter, but there's no way to use this with a static name due to the suffix. I suppose using status may help, but this is cumbersome to test.

Note that Cluster has a dbClusterParameterGroupNameSelector but lacks a dbSubnetGroupNameSelector. The legacy provider-aws DBCluster does have such a property. Upbound Marketplace Link

Relevant Error Output Snippet

message: 'cannot compose resources: cannot apply composed resource "db-cluster":
        failed to create typed patch object
        (/foobar--document-db-86z4d-kmnnl; docdb.aws.upbound.io/v1beta1,
        Kind=Cluster): .spec.forProvider.dbSubnetGroupNameSelector: field not
        declared in schema'


### Crossplane Version

1.15

### Provider Version

1.13.0

### Kubernetes Version

1.30

### Kubernetes Distribution

EKS

### Additional Info

_No response_
@excalq excalq added bug Something isn't working needs:triage labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

No branches or pull requests

1 participant