Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

WriteConnectionSecretToRef on database instance #50

Open
devops-smsaojudas opened this issue Mar 15, 2022 · 3 comments
Open

WriteConnectionSecretToRef on database instance #50

devops-smsaojudas opened this issue Mar 15, 2022 · 3 comments

Comments

@devops-smsaojudas
Copy link

WriteConnectionSecretToRef is not filled with secrets username, password and endpoint when created database instance.

apiVersion: sql.gcp.jet.crossplane.io/v1alpha2
kind: DatabaseInstance
metadata:
  name: database-mysql-test
spec:
  providerConfigRef:
    name: gcp-jet
  forProvider:
    databaseVersion: "MYSQL_5_7"
    region: us-central1
    settings:
      - diskSize: 10
        diskType: PD_SSD
        ipConfiguration:
          - privateNetwork: "projects/test-project/global/networks/test-vpc"
            ipv4Enabled: false
        tier: db-f1-micro
        userLabels:
          app: database-mysql-test
  writeConnectionSecretToRef:
    namespace: crossplane-system
    name: database-mysql-test

There some error in my configuration? Or I get wrong understanding about WriteConnectionSecretToRef?

Thank you

@turkenh
Copy link
Collaborator

turkenh commented Mar 15, 2022

What is the provider version you're using? I guess you would need this PR which is not included in a release yet: #48

You may consider using latest version from master to see if it helps:
crossplane/provider-jet-gcp:v0.3.0-rc.6.g48f0deb

@devops-smsaojudas
Copy link
Author

Hi @turkenh i'm using v0.2.0, I will try this RC version.

Thank you

@devops-smsaojudas
Copy link
Author

@turkenh yes, works like a charm, thank you, do you have idea when this version will be released?

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants