MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / NewGate

Function NewGate

internal/feature/features.go:101–120  ·  view source on GitHub ↗

NewGate returns a MutableGate with the Features defined in this package.

()

Source from the content-addressed store, hash-verified

99
100// NewGate returns a MutableGate with the Features defined in this package.
101func NewGate() MutableGate {
102 gate := featuregate.NewFeatureGate()
103
104 if err := gate.Add(map[Feature]featuregate.FeatureSpec{
105 AppendCustomQueries: {Default: false, PreRelease: featuregate.Alpha},
106 AutoCreateUserSchema: {Default: true, PreRelease: featuregate.Beta},
107 AutoGrowVolumes: {Default: true, PreRelease: featuregate.Alpha},
108 InstanceSidecars: {Default: true, PreRelease: featuregate.Alpha},
109 OpenTelemetryLogs: {Default: false, PreRelease: featuregate.Alpha},
110 OpenTelemetryMetrics: {Default: false, PreRelease: featuregate.Alpha},
111 PGBouncerSidecars: {Default: false, PreRelease: featuregate.Alpha},
112 PGUpgradeCPUConcurrency: {Default: true, PreRelease: featuregate.Beta},
113 TablespaceVolumes: {Default: false, PreRelease: featuregate.Alpha},
114 VolumeSnapshots: {Default: false, PreRelease: featuregate.Alpha},
115 }); err != nil {
116 panic(err)
117 }
118
119 return gate
120}
121
122type contextKey struct{}
123

Calls 1

AddMethod · 0.45