services

package
v0.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: UPL-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, useNodeRoleSelectors bool) ([]*corev1.Service, error)

New creates a new Service for a VMO resource. It also sets the appropriate OwnerReferences on the resource so handleObject can discover the VMO resource that 'owns' it.

func OpenSearchPodSelector added in v0.0.29

func OpenSearchPodSelector(vmoName string) string

OpenSearchPodSelector creates a pod selector like 'app in (system-es-master, system-es-data, system-es-ingest)' to select all pods in the vmi cluster

func UseNodeRoleSelector added in v0.0.29

func UseNodeRoleSelector(pods *corev1.PodList) bool

UseNodeRoleSelector verifies if all OpenSearch pods are using node role selectors. If all pods are using node role selectors, this implies service selectors can be updated to use node roles instead of service app labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL