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

Add support for more environment variables. #846

Merged
merged 5 commits into from
Dec 6, 2021
Merged

Conversation

DimCitus
Copy link
Collaborator

@DimCitus DimCitus commented Dec 6, 2021

The parameters --replication-quorum, --candidate-priority, and --name can
now also be passed from the environment variables
PG_AUTOCTL_REPLICATION_QUORUM, PG_AUTOCTL_CANDIDATE_PRIORITY, and
PG_AUTOCTL_NODE_NAME.

This allows easier Dockerfile "control-at-a-distance" integration style,
where all the containers are the same with the same command, but the
environment is where you can inject container/node/pod specific options.

The parameters --replication-quorum, --candidate-priority, and --name can
now also be passed from the environment variables
PG_AUTOCTL_REPLICATION_QUORUM, PG_AUTOCTL_CANDIDATE_PRIORITY, and
PG_AUTOCTL_NODE_NAME.

This allows easier Dockerfile "control-at-a-distance" integration style,
where all the containers are the same with the same command, but the
environment is where you can inject container/node/pod specific options.
@DimCitus DimCitus added enhancement New feature or request Size: S Effort Estimate: Small labels Dec 6, 2021
@DimCitus DimCitus added this to the January 2022 Release milestone Dec 6, 2021
@DimCitus DimCitus self-assigned this Dec 6, 2021
Copy link
Contributor

@JelteF JelteF left a comment

Choose a reason for hiding this comment

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

code looks good, but error messages had some copy paste mistakes.

src/bin/pg_autoctl/cli_common.c Outdated Show resolved Hide resolved
src/bin/pg_autoctl/cli_common.c Outdated Show resolved Hide resolved
DimCitus and others added 3 commits December 6, 2021 13:09
Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
Co-authored-by: Jelte Fennema <github-tech@jeltef.nl>
@DimCitus DimCitus enabled auto-merge (squash) December 6, 2021 12:25
@DimCitus DimCitus merged commit a315b1e into master Dec 6, 2021
@DimCitus DimCitus deleted the feature/more-env-vars branch December 6, 2021 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Size: S Effort Estimate: Small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants