MCPcopy Index your code
hub / github.com/apecloud/kubeblocks / IsCompactMode

Function IsCompactMode

pkg/common/utils.go:47–53  ·  view source on GitHub ↗

IsCompactMode tells whether there is a reconciliation compact mode key in the 'annotations'.

(annotations map[string]string)

Source from the content-addressed store, hash-verified

45
46// IsCompactMode tells whether there is a reconciliation compact mode key in the 'annotations'.
47func IsCompactMode(annotations map[string]string) bool {
48 if len(annotations) == 0 {
49 return false
50 }
51 _, ok := annotations[constant.FeatureReconciliationInCompactModeAnnotationKey]
52 return ok
53}
54
55func SafeAddInt(a, b int) int {
56 if a > 0 && b > math.MaxInt-a {

Callers 11

TransformMethod · 0.92
TransformMethod · 0.92
TransformMethod · 0.92
TransformMethod · 0.92
TransformMethod · 0.92
TransformMethod · 0.92
TransformMethod · 0.92
TransformMethod · 0.92
TransformMethod · 0.92
TransformMethod · 0.92
BuildInstanceSetFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…