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

Function defaultSetup

tests/utils/objectstore/objectstore.go:137–150  ·  view source on GitHub ↗

defaultSetup returns the definition for the default object storage setup

(namespace string)

Source from the content-addressed store, hash-verified

135
136// defaultSetup returns the definition for the default object storage setup
137func defaultSetup(namespace string) (Setup, error) {
138 pvc, err := defaultPVC(namespace)
139 if err != nil {
140 return Setup{}, err
141 }
142 deployment := defaultDeployment(namespace, pvc)
143 service := defaultSVC(namespace)
144 setup := Setup{
145 PersistentVolumeClaim: pvc,
146 Deployment: deployment,
147 Service: service,
148 }
149 return setup, nil
150}
151
152// defaultDeployment returns a default Deployment for the RustFS server
153func defaultDeployment(namespace string, pvc corev1.PersistentVolumeClaim) appsv1.Deployment {

Callers 1

sslSetupFunction · 0.85

Calls 3

defaultPVCFunction · 0.85
defaultDeploymentFunction · 0.85
defaultSVCFunction · 0.85

Tested by

no test coverage detected