util

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: UPL-1.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, e string) bool

Contains checks if a string exists in array of strings.

func GetCohMicroRequestMemory added in v0.0.99

func GetCohMicroRequestMemory() string

GetCohMicroRequestMemory returns the Coherence micro operator memory request resource.

func GetComponentNamespace added in v0.0.42

func GetComponentNamespace(componentName string, binding *v1beta1v8o.VerrazzanoBinding) (string, error)

GetComponentNamespace finds the namespace for the component from the given binding placements.

func GetElasticsearchDataNodeRequestMemory added in v0.0.99

func GetElasticsearchDataNodeRequestMemory() string

GetElasticsearchDataNodeRequestMemory returns the Elasticsearch data memory request resource.

func GetElasticsearchIngestNodeRequestMemory added in v0.0.99

func GetElasticsearchIngestNodeRequestMemory() string

GetElasticsearchIngestNodeRequestMemory returns the Elasticsearch injest memory request resource.

func GetElasticsearchMasterNodeReplicas added in v0.0.99

func GetElasticsearchMasterNodeReplicas() int32

GetElasticsearchMasterNodeReplicas returns the Elasticsearch master replicas.

func GetElasticsearchMasterNodeRequestMemory added in v0.0.99

func GetElasticsearchMasterNodeRequestMemory() string

GetElasticsearchMasterNodeRequestMemory returns the Elasticsearch master memory request resource.

func GetFilebeatImage

func GetFilebeatImage() string

GetFilebeatImage returns the Filebeats image.

func GetFluentdImage added in v0.0.42

func GetFluentdImage() string

GetFluentdImage returns the Fluentd image.

func GetGrafanaRequestMemory added in v0.0.99

func GetGrafanaRequestMemory() string

GetGrafanaRequestMemory returns the Grafana memory request resource.

func GetHelidonMicroRequestMemory added in v0.0.99

func GetHelidonMicroRequestMemory() string

GetHelidonMicroRequestMemory returns the Helidon App micro operator memory request resource.

func GetJournalbeatImage

func GetJournalbeatImage() string

GetJournalbeatImage returns the Journabeats image.

func GetKibanaRequestMemory added in v0.0.99

func GetKibanaRequestMemory() string

GetKibanaRequestMemory returns the Kibana memory request resource.

func GetLocalBindingLabels

func GetLocalBindingLabels(binding *v1beta1v8o.VerrazzanoBinding) map[string]string

GetLocalBindingLabels returns binding labels for local cluster.

func GetManagedBindingLabels

func GetManagedBindingLabels(binding *v1beta1v8o.VerrazzanoBinding, managedClusterName string) map[string]string

GetManagedBindingLabels returns binding labels for managed cluster.

func GetManagedClusterNamespaceForSystem

func GetManagedClusterNamespaceForSystem() string

GetManagedClusterNamespaceForSystem returns the system namespace for Verrazzano.

func GetManagedClustersForVerrazzanoBinding

func GetManagedClustersForVerrazzanoBinding(mbPair *types.ModelBindingPair, availableManagedClusterConnections map[string]*ManagedClusterConnection) (
	map[string]*ManagedClusterConnection, error)

GetManagedClustersForVerrazzanoBinding returns a filtered set of only those applicable to a given VerrazzanoBinding given a map of available ManagedClusterConnections.

func GetManagedClustersNotForVerrazzanoBinding

func GetManagedClustersNotForVerrazzanoBinding(mbPair *types.ModelBindingPair, availableManagedClusterConnections map[string]*ManagedClusterConnection) map[string]*ManagedClusterConnection

GetManagedClustersNotForVerrazzanoBinding returns a filtered set of those NOT applicable to a given VerrazzanoBinding given a map of available ManagedClusterConnections.

func GetManagedLabelsNoBinding

func GetManagedLabelsNoBinding(managedClusterName string) map[string]string

GetManagedLabelsNoBinding return labels for managed cluster with no binding.

func GetManagedNamespaceForBinding

func GetManagedNamespaceForBinding(binding *v1beta1v8o.VerrazzanoBinding) string

GetManagedNamespaceForBinding return the namespace for a given binding.

func GetNodeExporterImage

func GetNodeExporterImage() string

GetNodeExporterImage returns the Node Exporter image.

func GetPrometheusRequestMemory added in v0.0.99

func GetPrometheusRequestMemory() string

GetPrometheusRequestMemory returns the Prometheus memory request resource.

func GetPromtheusPusherImage

func GetPromtheusPusherImage() string

GetPromtheusPusherImage returns the Prometheus Pusher image.

func GetServiceAccountNameForSystem

func GetServiceAccountNameForSystem() string

GetServiceAccountNameForSystem return the system service account for Verrazzano.

func GetTestWlsFrontendImage

func GetTestWlsFrontendImage() string

GetTestWlsFrontendImage returns a dummy application image for tests.

func GetVmiNameForBinding

func GetVmiNameForBinding(bindingName string) string

GetVmiNameForBinding returns a Verrazzano Monitoring Instance name.

func GetVmiURI added in v0.0.99

func GetVmiURI(bindingName string, verrazzanoURI string) string

GetVmiURI returns a Verrazzano Monitoring Instance URI.

func GetWeblogicOperatorImage

func GetWeblogicOperatorImage() string

GetWeblogicOperatorImage returns the WebLogic Kubernetes Operator image.

func GetWlsMicroRequestMemory added in v0.0.99

func GetWlsMicroRequestMemory() string

GetWlsMicroRequestMemory returns the Weblogic micro operator memory request resource.

func IsClusterInBinding

func IsClusterInBinding(clusterName string, allMbPairs map[string]*types.ModelBindingPair) bool

IsClusterInBinding checks if a cluster was found in a binding.

func New64Val

func New64Val(value int64) *int64

New64Val returns an address of an int64 value.

func NewVal

func NewVal(value int32) *int32

NewVal returns an address of an int32 value.

Types

type DeploymentHelper added in v0.0.99

type DeploymentHelper interface {
	DeleteDeployment(namespace, name string) error
}

DeploymentHelper defines an interface for deployments.

type ManagedClusterConnection

type ManagedClusterConnection struct {
	KubeClient                  kubernetes.Interface
	KubeExtClientSet            apiextensionsclient.Interface
	VerrazzanoOperatorClientSet clientset.Interface
	WlsOprClientSet             wlsoprclientset.Interface
	DomainClientSet             domclientset.Interface
	HelidonClientSet            helidonclientset.Interface
	CohOprClientSet             cohoprclientset.Interface
	CohClusterClientSet         cohcluclientset.Interface
	IstioClientSet              istioClientset.Interface
	IstioAuthClientSet          istioAuthClientset.Interface
	KubeConfig                  string
	Lock                        sync.RWMutex
	DeploymentLister            appslistersv1.DeploymentLister
	DeploymentInformer          cache.SharedIndexInformer
	PodLister                   corelistersv1.PodLister
	PodInformer                 cache.SharedIndexInformer
	ServiceAccountLister        corelistersv1.ServiceAccountLister
	ServiceAccountInformer      cache.SharedIndexInformer
	NamespaceLister             corelistersv1.NamespaceLister
	NamespaceInformer           cache.SharedIndexInformer
	SecretLister                corelistersv1.SecretLister
	SecretInformer              cache.SharedIndexInformer
	ClusterRoleLister           rbaclistersv1.ClusterRoleLister
	ClusterRoleInformer         cache.SharedIndexInformer
	ClusterRoleBindingLister    rbaclistersv1.ClusterRoleBindingLister
	ClusterRoleBindingInformer  cache.SharedIndexInformer
	WlsOperatorLister           wlsoprlister.WlsOperatorLister
	WlsOperatorInformer         cache.SharedIndexInformer
	DomainLister                domlister.DomainLister
	DomainInformer              cache.SharedIndexInformer
	HelidonLister               helidionlister.HelidonAppLister
	HelidonInformer             cache.SharedIndexInformer
	CohOperatorLister           cohoprlister.CohClusterLister
	CohOperatorInformer         cache.SharedIndexInformer
	CohClusterLister            cohclulister.CoherenceClusterLister
	CohClusterInformer          cache.SharedIndexInformer
	IstioGatewayLister          istioLister.GatewayLister
	IstioGatewayInformer        cache.SharedIndexInformer
	IstioVirtualServiceLister   istioLister.VirtualServiceLister
	IstioVirtualServiceInformer cache.SharedIndexInformer
	IstioServiceEntryLister     istioLister.ServiceEntryLister
	IstioServiceEntryInformer   cache.SharedIndexInformer
	ConfigMapLister             corelistersv1.ConfigMapLister
	ConfigMapInformer           cache.SharedIndexInformer
	DaemonSetLister             appslistersv1.DaemonSetLister
	DaemonSetInformer           cache.SharedIndexInformer
	ServiceLister               corelistersv1.ServiceLister
	ServiceInformer             cache.SharedIndexInformer
}

ManagedClusterConnection maintains the connection details to a ManagedCluster.

type Manifest

type Manifest struct {
	WlsMicroOperatorImage   string `json:"wlsMicroOperatorImage"`
	WlsMicroOperatorCrd     string `json:"wlsMicroOperatorCrd"`
	HelidonAppOperatorImage string `json:"helidonAppOperatorImage"`
	HelidonAppOperatorCrd   string `json:"helidonAppOperatorCrd"`
	CohClusterOperatorImage string `json:"cohClusterOperatorImage"`
	CohClusterOperatorCrd   string `json:"cohClusterOperatorCrd"`
}

Manifest maintains the concrete set of images for components the Verrazzano Operator launches.

func LoadManifest

func LoadManifest() (*Manifest, error)

LoadManifest loads and verifies the Verrazzano Operator Manifest.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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