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

Method SetFencing

pkg/management/postgres/instance.go:296–301  ·  view source on GitHub ↗

SetFencing marks whether the instance is fenced, if enabling, marks also any down to be tolerated

(enabled bool)

Source from the content-addressed store, hash-verified

294
295// SetFencing marks whether the instance is fenced, if enabling, marks also any down to be tolerated
296func (instance *Instance) SetFencing(enabled bool) {
297 instance.fenced.Store(enabled)
298 if enabled {
299 instance.SetMightBeUnavailable(true)
300 }
301}
302
303// SetCanCheckReadiness marks whether the instance should be checked for readiness
304func (instance *Instance) SetCanCheckReadiness(enabled bool) {

Callers 3

instance_test.goFile · 0.80
initializeMethod · 0.80

Calls 1

SetMightBeUnavailableMethod · 0.95

Tested by

no test coverage detected