Skip to content

Add additional volumes to pgbouncer #4240

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

Merged

Conversation

benjaminjb
Copy link
Contributor

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • New feature
  • Bug fix
  • Documentation
  • Testing enhancement
  • Other

What is the current behavior (link to any open issues here)?

Hard to attach PVCs to pgbouncer pods

What is the new behavior (if this is a feature change)?

  • Breaking change (fix or feature that would cause existing functionality to change)

Add additional volumes to pgbouncer pods

Other Information:
PGO-2557

@benjaminjb benjaminjb force-pushed the benjb/additional-volumes-pgbouncer branch from f6c5da5 to 503ac6b Compare August 13, 2025 20:13
@benjaminjb benjaminjb changed the title Benjb/additional volumes pgbouncer Add additional volumes to pgbouncer Aug 13, 2025
Copy link
Member

@cbandy cbandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to regen after 6b01868

@@ -256,3 +256,35 @@ func (meta *Metadata) GetAnnotationsOrNil() map[string]string {
}
return meta.Annotations
}

type AdditionalVolume struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 to this move. Watch out for conflict with 6b01868.

* Add additional volume for pgbouncer pods

Change the API to allow users to specify preexisting
PVCs to attach to specified containers in the pgbouncer
instance pods.

The spec allows users to specify whether to add
the volume to
- all containers (by omitting the containers list)
- no containers (by specifying an empty containers list)
- a list of named containers

If any of the named containers isn't present, we continue
to reconcile, but issue a warning event with the names
of the missing containers.

Issues: [PGO-2557]
@benjaminjb benjaminjb force-pushed the benjb/additional-volumes-pgbouncer branch from 145345a to 9c5ce98 Compare August 13, 2025 20:58
@benjaminjb benjaminjb merged commit c829c06 into CrunchyData:main Aug 13, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants