MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / ForInstance

Method ForInstance

pkg/utils/fencing.go:174–177  ·  view source on GitHub ↗

ForInstance applies the logic to the specified instance

(instanceNames ...string)

Source from the content-addressed store, hash-verified

172
173// ForInstance applies the logic to the specified instance
174func (fb *FencingMetadataExecutor) ForInstance(instanceNames ...string) *FencingMetadataExecutor {
175 fb.instanceNames = instanceNames
176 return fb
177}
178
179// Execute executes the instructions given with the fluent builder, returns any error encountered
180func (fb *FencingMetadataExecutor) Execute(ctx context.Context, key types.NamespacedName, obj client.Object) error {

Callers 6

ensurePodIsFencedMethod · 0.80
EnsurePodIsUnfencedFunction · 0.80
fencingOnFunction · 0.80
fencingOffFunction · 0.80
OnFunction · 0.80
OffFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected