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

Consolidate arguments to a Patroni function #4057

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

cbandy
Copy link
Member

@cbandy cbandy commented Dec 19, 2024

When called at runtime, the second argument is always derived from the first. This simplifies those call sites and clarifies the behavior in tests.

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:

  • Testing enhancement

When called at runtime, the second argument is always derived from the first.
This simplifies those call sites and clarifies the behavior in tests.
@cbandy cbandy requested a review from tjmoore4 December 19, 2024 15:59
Comment on lines 858 to +862
"postgresql": map[string]any{
"bin_name": map[string]any{"pg_rewind": string("/tmp/pg_rewind_tde.sh")},
"parameters": map[string]any{},
"bin_name": map[string]any{"pg_rewind": string("/tmp/pg_rewind_tde.sh")},
"parameters": map[string]any{
"encryption_key_command": "echo test",
},
Copy link
Member Author

Choose a reason for hiding this comment

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

📝 Here's where the expection changed.

internal/patroni/config_test.go Outdated Show resolved Hide resolved
@cbandy cbandy merged commit 612a8b0 into CrunchyData:main Dec 19, 2024
17 checks passed
@cbandy cbandy deleted the dcs-args branch December 19, 2024 18:42
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