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

Ability to use preexisting postgres server with infisical-standalone helm chart #1765

Open
mpsOxygen opened this issue Apr 30, 2024 · 0 comments · May be fixed by #1766
Open

Ability to use preexisting postgres server with infisical-standalone helm chart #1765

mpsOxygen opened this issue Apr 30, 2024 · 0 comments · May be fixed by #1766

Comments

@mpsOxygen
Copy link

mpsOxygen commented Apr 30, 2024

Feature description

I would like the ability to not only disable the installation of the postgres helm chart, but also be able to specify a secret from where to get an preexisting postgres server URI.

Why would it be useful?

This would be useful when you don't want to install postgres along with infisical because you already have an existing postgres instance.

Additional context

The existing postgres values would look like this:

postgresql:
  enabled: true
  name: "postgresql"
  fullnameOverride: "postgresql"
  auth:
    username: infisical
    password: root
    database: infisicalDB
  useExistingPostgres:
    # -- When this is enabled, postgresql.enabled needs to be false
    enabled: false
    # -- The name from where to get the existing postgresql connection URI
    existingUriSecret:
      # -- The name of the secret that contains the uri
      name: ""
      # -- Secret key name that contains the uri
      key: ""

And in the Deployment and Job template you would have something like this:

          env:
          {{- if .Values.postgresql.useExistingPostgres.enabled }}
          - name: DB_CONNECTION_URI
            valueFrom:
              secretKeyRef:
                name: {{ .Values.postgresql.useExistingPostgres.existingUriSecret.name }}
                key: {{ .Values.postgresql.useExistingPostgres.existingUriSecret.key }}
          {{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant