Skip to content

Commit

Permalink
added pcp.conf and remove pcp user and pass from env of petset
Browse files Browse the repository at this point in the history
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury committed Jan 10, 2025
1 parent 9c56f57 commit 06d5bfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/kubedb/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ const (
EnvSkipPasswdEncryption = "PGPOOL_SKIP_PASSWORD_ENCRYPTION"
PgpoolConfigSecretMountPath = "/config"
PgpoolConfigVolumeName = "pgpool-config"
PgpoolPcpConfigVolumeName = "pgpool-pcp-config"
PgpoolContainerName = "pgpool"
PgpoolDefaultServicePort = 9999
PgpoolMonitoringDefaultServicePort = 9719
Expand Down
4 changes: 4 additions & 0 deletions apis/kubedb/v1alpha2/pgpool_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ func (p *Pgpool) GetAuthSecretName() string {
return meta_util.NameWithSuffix(p.OffshootName(), "auth")
}

func (p *Pgpool) GetPcpConfigSecretName() string {
return meta_util.NameWithSuffix(p.OffshootName(), "pcp-config")
}

func (p *Pgpool) SetHealthCheckerDefaults() {
if p.Spec.HealthChecker.PeriodSeconds == nil {
p.Spec.HealthChecker.PeriodSeconds = pointer.Int32P(10)
Expand Down

0 comments on commit 06d5bfa

Please sign in to comment.