Documentation ¶
Index ¶
- Constants
- func AuthProxyMetaName() string
- func AuthProxyPort() string
- func ConvertToRegexp(pattern string) string
- func CopyImmutableEnvVars(expected, existing []corev1.Container, containerName string)
- func CreateContainerElement(vmoStorage *vmcontrollerv1.Storage, vmoResources *vmcontrollerv1.Resources, ...) corev1.Container
- func CreateOidcProxy(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, ...) ([]corev1.Volume, *corev1.Container)
- func CreateOpenSearchContainerCMD(javaOpts string, plugins []string) string
- func CreateZoneAntiAffinityElement(vmoName string, component string) *corev1.Affinity
- func DeepCopyMap(srcMap map[string]string) map[string]string
- func GetCompLabel(componentName string) string
- func GetElasticsearchInitContainer() *corev1.Container
- func GetElasticsearchMasterInitContainer() *corev1.Container
- func GetEnvVar(container *corev1.Container, name string) *corev1.EnvVar
- func GetIngressRule(ingressHost string) netv1.IngressRule
- func GetMetaLabels(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) map[string]string
- func GetMetaName(vmoName string, componentName string) string
- func GetNewRandomID(size int) (string, error)
- func GetNextStringInSequence(name string) string
- func GetOSDashboardPluginList(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) []string
- func GetOSPluginsInstallTmpl(plugins []string, osPluginInstallCmd string) string
- func GetOpenSearchDashboardsHTTPEndpoint(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) string
- func GetOpenSearchHTTPEndpoint(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) string
- func GetOpenSearchPluginList(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) []string
- func GetOwnerLabels(owner string) map[string]string
- func GetOwnerReferences(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) []metav1.OwnerReference
- func GetReplicasForComponent(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, ...) (replicas int32)
- func GetServicePort(componentDetails config.ComponentDetails) corev1.ServicePort
- func GetSpecID(vmoName string, componentName string) map[string]string
- func GetStorageElementForComponent(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, ...) (storage *vmcontrollerv1.Storage)
- func New64Val(value int64) *int64
- func NewVal(value int32) *int32
- func OidcProxyConfigName(vmo string, component string) string
- func OidcProxyIngressHost(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, ...) string
- func OidcProxyMetaName(vmoName string, component string) string
- func OidcProxyService(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, ...) *corev1.Service
- func SetEnvVar(container *corev1.Container, envVar *corev1.EnvVar)
- func SliceContains(slice []string, value string) bool
Constants ¶
const ( OpenSearchIngestCmdTmpl = `#!/usr/bin/env bash -e set -euo pipefail %s /usr/local/bin/docker-entrypoint.sh` OpenSearchDashboardCmdTmpl = `#!/usr/bin/env bash -e %s /usr/local/bin/opensearch-dashboards-docker` OSPluginsInstallTmpl = ` set -euo pipefail # Install OS plugins that are not bundled with OS %s ` OSPluginsInstallCmd = ` /usr/share/opensearch/bin/opensearch-plugin install -b %s ` OSDashboardPluginsInstallCmd = ` /usr/share/opensearch-dashboards/bin/opensearch-dashboards-plugin install %s ` )
Variables ¶
This section is empty.
Functions ¶
func AuthProxyMetaName ¶ added in v0.0.26
func AuthProxyMetaName() string
AuthProxyMetaName returns Auth Proxy service name TESTING: should be passed in from hel chart as s
func AuthProxyPort ¶ added in v0.0.26
func AuthProxyPort() string
AuthProxyMetaName returns Auth Proxy service name
func ConvertToRegexp ¶ added in v0.0.29
convertToRegexp converts index pattern to a regular expression pattern.
func CopyImmutableEnvVars ¶ added in v0.0.29
CopyImmutableEnvVars copies the initial master node environment variable from an existing container to an expected container cluster.initial_master_nodes shouldn't be changed after it's set.
func CreateContainerElement ¶
func CreateContainerElement(vmoStorage *vmcontrollerv1.Storage, vmoResources *vmcontrollerv1.Resources, componentDetails config.ComponentDetails) corev1.Container
CreateContainerElement creates a generic container element for the given component of the given VMO object.
func CreateOidcProxy ¶ added in v0.0.26
func CreateOidcProxy(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, vmoResources *vmcontrollerv1.Resources, component *config.ComponentDetails) ([]corev1.Volume, *corev1.Container)
CreateOidcProxy creates OpenID Connect (OIDC) proxy container and config Volume
func CreateOpenSearchContainerCMD ¶ added in v0.0.29
CreateOpenSearchContainerCMD creates the CMD for OpenSearch containers. The resulting CMD contains command to comment java heap settings in config/jvm/options if input javaOpts is non-empty OS plugins installation commands if OpenSearch plugins are provided and contains java min/max heap settings
func CreateZoneAntiAffinityElement ¶
CreateZoneAntiAffinityElement return an Affinity resource for a given VMO instance and component
func DeepCopyMap ¶ added in v0.0.29
DeepCopyMap performs a deepcopy of a map
func GetCompLabel ¶ added in v0.0.29
GetCompLabel returns a component value for opensearch
func GetElasticsearchInitContainer ¶
GetElasticsearchInitContainer returns an Elasticsearch Init container object
func GetElasticsearchMasterInitContainer ¶ added in v0.0.25
GetElasticsearchMasterInitContainer return an Elasticsearch Init container for the master. This changes ownership of the ES directory permissions needed to access PV volume data. Also set the max map count.
func GetIngressRule ¶ added in v0.0.30
func GetIngressRule(ingressHost string) netv1.IngressRule
getIngressRule returns the ingressRule with the provided ingress host
func GetMetaLabels ¶
func GetMetaLabels(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) map[string]string
GetMetaLabels returns k8s-app and vmo lables
func GetMetaName ¶
GetMetaName returns name
func GetNewRandomID ¶ added in v0.0.29
GetNewRandomID generates a random alphanumeric string of the format [a-z0-9]{size}
func GetNextStringInSequence ¶
GetNextStringInSequence returns the next string in the incremental sequence given a string
func GetOSDashboardPluginList ¶ added in v0.0.30
func GetOSDashboardPluginList(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) []string
GetOSDashboardPluginList retrieves the list of plugins provided in the VMI CRD for OpenSearch dashboard. GIVEN VMI CRD RETURN the list of provided OSD plugins. If there is no plugin in VMI CRD, an empty list is returned.
func GetOSPluginsInstallTmpl ¶ added in v0.0.30
GetOSPluginsInstallTmpl returns the OSPluginsInstallTmpl by updating it with the given plugins and plugins installation cmd.
func GetOpenSearchDashboardsHTTPEndpoint ¶ added in v0.0.29
func GetOpenSearchDashboardsHTTPEndpoint(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) string
func GetOpenSearchHTTPEndpoint ¶ added in v0.0.29
func GetOpenSearchHTTPEndpoint(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) string
func GetOpenSearchPluginList ¶ added in v0.0.30
func GetOpenSearchPluginList(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) []string
GetOpenSearchPluginList retrieves the list of plugins provided in the VMI CRD for OpenSearch. GIVEN VMI CRD RETURN the list of provided os plugins. If there is no plugins in VMI CRD, empty list is returned.
func GetOwnerLabels ¶ added in v0.0.29
func GetOwnerReferences ¶
func GetOwnerReferences(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance) []metav1.OwnerReference
GetOwnerReferences returns owner references
func GetReplicasForComponent ¶
func GetReplicasForComponent(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, component *config.ComponentDetails) (replicas int32)
GetReplicasForComponent returns number of replicas for a given component
func GetServicePort ¶
func GetServicePort(componentDetails config.ComponentDetails) corev1.ServicePort
GetServicePort returns service port
func GetStorageElementForComponent ¶
func GetStorageElementForComponent(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, component *config.ComponentDetails) (storage *vmcontrollerv1.Storage)
GetStorageElementForComponent returns storage for a given component
func OidcProxyConfigName ¶ added in v0.0.26
OidcProxyConfigName returns OIDC Proxy ConfigMap name of the component. ex. vmi-system-es-ingest-oidc-config
func OidcProxyIngressHost ¶ added in v0.0.26
func OidcProxyIngressHost(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, component *config.ComponentDetails) string
OidcProxyIngressHost returns OIDC Proxy ingress host.
func OidcProxyMetaName ¶ added in v0.0.26
OidcProxyMetaName returns OIDC Proxy meta name of the component. ex. vmi-system-es-ingest-oidc
func OidcProxyService ¶ added in v0.0.26
func OidcProxyService(vmo *vmcontrollerv1.VerrazzanoMonitoringInstance, component *config.ComponentDetails) *corev1.Service
OidcProxyService creates OidcProxy Service
func SetEnvVar ¶ added in v0.0.29
SetEnvVar sets a container EnvVar, overriding if it was laready present
func SliceContains ¶
SliceContains returns whether or not the given slice contains the given string
Types ¶
This section is empty.