cluster

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidID added in v0.14.0

func IsValidID(clusterID string) error

func MergeImageOverrides added in v0.14.2

func MergeImageOverrides(imageOverrides map[string]string, localImageOverrides []string) (map[string]string, error)

func SanitizeID added in v0.14.0

func SanitizeID(clusterID string) string

Types

type Info

type Info struct {
	Name             string
	RestConfig       *rest.Config
	ClientProducer   client.Producer
	Submariner       *v1alpha1.Submariner
	ServiceDiscovery *v1alpha1.ServiceDiscovery
	// contains filtered or unexported fields
}

func NewInfo

func NewInfo(clusterName string, config *rest.Config) (*Info, error)

func (*Info) GetAnyRemoteEndpoint

func (c *Info) GetAnyRemoteEndpoint() (*submarinerv1.Endpoint, error)

func (*Info) GetClusters added in v0.15.0

func (c *Info) GetClusters(namespace string) ([]submarinerv1.Cluster, error)

func (*Info) GetGateways

func (c *Info) GetGateways() ([]submarinerv1.Gateway, error)

func (*Info) GetImageRepositoryInfo

func (c *Info) GetImageRepositoryInfo(localImageOverrides ...string) (*image.RepositoryInfo, error)

func (*Info) GetLocalEndpoint

func (c *Info) GetLocalEndpoint() (*submarinerv1.Endpoint, error)

func (*Info) HasSingleNode

func (c *Info) HasSingleNode() (bool, error)

func (*Info) OperatorNamespace added in v0.14.0

func (c *Info) OperatorNamespace() string

Jump to

Keyboard shortcuts

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