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

Function getAzuriteService

tests/utils/backups/azurite.go:241–262  ·  view source on GitHub ↗

getAzuriteService get the service for Azurite

(namespace string)

Source from the content-addressed store, hash-verified

239
240// getAzuriteService get the service for Azurite
241func getAzuriteService(namespace string) corev1.Service {
242 azuriteService := corev1.Service{
243 ObjectMeta: metav1.ObjectMeta{
244 Name: "azurite",
245 Labels: map[string]string{"app": "azurite"},
246 Namespace: namespace,
247 },
248 Spec: corev1.ServiceSpec{
249 Ports: []corev1.ServicePort{
250 {
251 Port: 10000,
252 Protocol: "TCP",
253 TargetPort: intstr.IntOrString{
254 IntVal: 10000,
255 },
256 },
257 },
258 Selector: map[string]string{"app": "azurite"},
259 },
260 }
261 return azuriteService
262}
263
264// getAzuriteDeployment get the deployment for Azurite
265func getAzuriteDeployment(namespace string) appsv1.Deployment {

Callers 1

InstallAzuriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected