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

Properly handle Patroni bootstrap_labels config #1093

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

hughcapet
Copy link
Member

Allow configuration of patroni.kubernetes.bootstrap_labels via Spilo

@hughcapet hughcapet added the minor label Mar 6, 2025
@hughcapet hughcapet force-pushed the patroni-bootstrap-labels branch from 8a53a6b to c624ff8 Compare March 6, 2025 15:12
@hughcapet hughcapet marked this pull request as ready for review March 6, 2025 20:14
@hughcapet hughcapet force-pushed the patroni-bootstrap-labels branch 2 times, most recently from f931584 to 928da9c Compare March 7, 2025 12:58
@hughcapet hughcapet changed the base branch from master to trigger March 7, 2025 14:42
@hughcapet hughcapet force-pushed the patroni-bootstrap-labels branch from 928da9c to 3cf6ecb Compare March 7, 2025 14:48
@idanovinda
Copy link
Member

👍

Comment on lines +798 to +802
try:
tags = json.loads(os.getenv('LOG_S3_TAGS'))
except (TypeError, ValueError) as e:
logging.warning("could not parse LOG_S3_TAGS as a JSON: %r, reverting to the default empty dict", e)
tags = {}
Copy link
Member

Choose a reason for hiding this comment

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

This is unrelated to the bootstrap-label changes, but makes a lot of sense to be more careful with parsing those strings.

@macedigital
Copy link
Member

👍

@zalando-robot
Copy link

  • Step skipped by user pbungina.

@hughcapet hughcapet merged commit bb1a86f into trigger Mar 7, 2025
6 checks passed
@hughcapet hughcapet deleted the patroni-bootstrap-labels branch March 7, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants