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

Function defaultSVC

tests/utils/objectstore/objectstore.go:316–336  ·  view source on GitHub ↗

defaultSVC returns a default Service for the object storage server

(namespace string)

Source from the content-addressed store, hash-verified

314
315// defaultSVC returns a default Service for the object storage server
316func defaultSVC(namespace string) corev1.Service {
317 service := corev1.Service{
318 ObjectMeta: metav1.ObjectMeta{
319 Name: "object-store",
320 Namespace: namespace,
321 },
322 Spec: corev1.ServiceSpec{
323 Ports: []corev1.ServicePort{
324 {
325 Port: 9000,
326 TargetPort: intstr.IntOrString{
327 IntVal: 9000,
328 },
329 Protocol: corev1.ProtocolTCP,
330 },
331 },
332 Selector: map[string]string{"app": "object-store"},
333 },
334 }
335 return service
336}
337
338// defaultPVC returns a default PVC for the object storage server
339func defaultPVC(namespace string) (corev1.PersistentVolumeClaim, error) {

Callers 1

defaultSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected