-
Notifications
You must be signed in to change notification settings - Fork 56
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
K8SPG-648 add PG17 support #921
base: main
Are you sure you want to change the base?
Conversation
commit: c3fe538 |
@@ -161,6 +166,8 @@ func (r *PGClusterReconciler) watchSecrets() handler.TypedFuncs[*corev1.Secret, | |||
// +kubebuilder:rbac:groups=apps,resources=replicasets,verbs=create;delete;get;list;patch;watch | |||
// +kubebuilder:rbac:groups=pgv2.percona.com,resources=perconapgclusters/finalizers,verbs=update | |||
// +kubebuilder:rbac:groups=batch,resources=jobs,verbs=create;list;update | |||
// +kubebuilder:rbac:groups=pgv2.percona.com,resources=pods,verbs=create;delete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have pods resource in this api group?
} | ||
|
||
if err := r.Client.Create(ctx, p); err != nil { | ||
return errors.Wrap(err, "failed to create pod to check patrni version") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return errors.Wrap(err, "failed to create pod to check patrni version") | |
return errors.Wrap(err, "failed to create pod to check patroni version") |
@@ -39,13 +39,17 @@ var _ API = Executor(nil) | |||
// waits up to two "loop_wait" or until an error occurs. When Patroni is paused, | |||
// next cannot be blank. Similar to the "POST /switchover" REST endpoint. | |||
func (exec Executor) ChangePrimaryAndWait( | |||
ctx context.Context, current, next string, | |||
ctx context.Context, current, next string, ver4 bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would name this patroniVer4
to be more clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
Config/Logging/Testability