Repository navigation
feat(clusters): add fence and unfence actions for instances - #103
Open
MatheuslFavaretto wants to merge 1 commit into
Open
MatheuslFavaretto wants to merge 1 commit into
MatheuslFavaretto wants to merge 1 commit into
Conversation
MatheuslFavaretto
force-pushed
the
dev/100
branch
from
October 14, 2026 01:05
b606dd3 to
1b7eebb
Compare
Mirror kubectl cnpg fencing on|off through the cnpg.io/fencedInstances annotation, with an extra warning when fencing the primary. Closes cloudnative-pg#100 Signed-off-by: Matheus Favaretto <matheusfavaretto.ef@gmail.com>
MatheuslFavaretto
force-pushed
the
dev/100
branch
from
October 14, 2026 01:06
1b7eebb to
5e2c980
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Fence / Unfence actions to each instance in the cluster's Instances table,
mirroring
kubectl cnpg fencing on|offvia thecnpg.io/fencedInstancesannotation.
a tooltip for users without
patchpermission(
["*"]), as the operator refuses it toosrc/resources/fencing.test.tsTested on kind (CNPG 1.30.1, 2 instances): fencing a replica sets the
annotation and the pod becomes NotReady after ~30s; unfencing removes it and
the pod is Ready again.
lint,tsc,testandbuildpass.Closes #100