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]: AlloyDB cluster/instance do not populate writeConnectionSecretToRef secret #595

Open
1 task done
drewwells opened this issue Jul 29, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working needs:triage stale

Comments

@drewwells
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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

@drewwells drewwells added bug Something isn't working needs:triage labels Jul 29, 2024
Copy link

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 github-actions bot added the stale label Oct 28, 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 stale
Projects
None yet
Development

No branches or pull requests

1 participant