crossplane-contrib / provider-upjet-gcp

GCP Provider for Crossplane.
https://marketplace.upbound.io/providers/upbound/provider-family-gcp/
Apache License 2.0
69 stars 76 forks source link

[Bug]: AlloyDB cluster/instance do not populate writeConnectionSecretToRef secret #595

Closed drewwells closed 2 weeks ago

drewwells commented 4 months ago

Is there an existing issue for this?

Affected Resource(s)

No response

Resource MRs required to reproduce the bug

apiVersion: alloydb.gcp.upbound.io/v1beta2
kind: Cluster
metadata:
  annotations:
    meta.upbound.io/example-id: alloydb/v1beta1/instance
  labels:
    testing.upbound.io/example-name: alloydb-test
  name: alloydb-test
spec:
  providerConfigRef:
    name: dwells
  writeConnectionSecretToRef:
    name: alloydb-creds-cluster
    namespace: dwells
  forProvider:
    location: us-central1
---
apiVersion: alloydb.gcp.upbound.io/v1beta2
kind: Instance
metadata:
  annotations:
    meta.upbound.io/example-id: alloydb/v1beta2/instance
  labels:
    testing.upbound.io/example-name: alloydb-test
  name: alloydb-test
spec:
  providerConfigRef:
    name: dwells
  writeConnectionSecretToRef:
    name: alloydb-creds-instance
    namespace: dwells
  forProvider:
    clusterSelector:
      matchLabels:
        testing.upbound.io/example-name: alloydb-test
    instanceType: PRIMARY
    machineConfig:
      cpuCount: 2

Steps to Reproduce

kubectl apply -f {yaml from above}

Notice that cluster and instance are created in GCP A user is created in postgres alloydbsuperuser List the secrets and they are empty

❯ k -n dwells get secret                                                
NAME                                                        TYPE                                DATA   AGE
alloydb-creds-cluster                                       connection.crossplane.io/v1alpha1   0      6m7s
alloydb-creds-instance                                      connection.crossplane.io/v1alpha1   0      6m7s

What happened?

I expect that the secrets are created with hostname, user, and password as mentioned in the documentation.

Relevant Error Output Snippet

No response

Crossplane Version

1.16.0

Provider Version

1.6.0

Kubernetes Version

v1.25.4

Kubernetes Distribution

GKE

Additional Info

No response

github-actions[bot] commented 1 month ago

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.

github-actions[bot] commented 2 weeks ago

This issue is being closed since there has been no activity for 14 days since marking it as stale. If you still need help, feel free to comment or reopen the issue!