Skip to content

dump.sh and k8sres.go utilize LOGICAL_BACKUP_S3_BUCKET, even on GCP #1838

@rocket357

Description

@rocket357
  • Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.7.1
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? GCP
  • Are you running Postgres Operator in production? not yet (for GCP)
  • Type of issue? Documentation (variable name confusion)

https://github.com/zalando/postgres-operator/blob/master/pkg/cluster/k8sres.go#L2144

Generated logical backup pod config uses "LOGICAL_BACKUP_S3_BUCKET" even on GCP (also: https://github.com/zalando/postgres-operator/blob/master/docker/logical-backup/dump.sh#L113). This seems confusing, as I would expect it to utilize LOGICAL_BACKUP_GS_BUCKET (following along with WALE_GS_PREFIX/WALG_GS_PREFIX in the spilo project).

It's simple enough to use LOGICAL_BACKUP_S3_BUCKET for now, but it seems it'd make more sense to migrate that to LOGICAL_BACKUP_GS_BUCKET at some point.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions