key

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalhostIP = "127.0.0.1"
)

Variables

This section is empty.

Functions

func AWSClusterConfigName

func AWSClusterConfigName(cluster v1alpha1.Cluster) string

func CertAltNames

func CertAltNames(altNames ...string) []string

CertAltNames returns the alt names for the Kubernetes API certs.

func CertConfigName

func CertConfigName(getter LabelsGetter, name string) string

CertConfigName constructs a name for CertConfig CRs using the clusterI D and the cert name.

func ClusterAPIEndpoint

func ClusterAPIEndpoint(cluster v1alpha1.Cluster) string

func ClusterBaseDomain

func ClusterBaseDomain(cluster v1alpha1.Cluster) string

func ClusterCommonStatus

func ClusterCommonStatus(cluster cmav1alpha1.Cluster) g8sv1alpha1.CommonClusterStatus

func ClusterConfigMapName

func ClusterConfigMapName(getter LabelsGetter) string

func ClusterCredentialSecretName

func ClusterCredentialSecretName(cluster v1alpha1.Cluster) string

func ClusterCredentialSecretNamespace

func ClusterCredentialSecretNamespace(cluster v1alpha1.Cluster) string

func ClusterDNSZone

func ClusterDNSZone(cluster v1alpha1.Cluster) string

func ClusterID

func ClusterID(getter LabelsGetter) string

func ClusterMasterAZ

func ClusterMasterAZ(cluster v1alpha1.Cluster) string

func ClusterMasterInstanceType

func ClusterMasterInstanceType(cluster v1alpha1.Cluster) string

func ClusterName

func ClusterName(cluster v1alpha1.Cluster) string

func IsDeleted

func IsDeleted(getter DeletionTimestampGetter) bool

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsProviderSpecForAWS

func IsProviderSpecForAWS(cluster v1alpha1.Cluster) bool

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func KubeConfigClusterName

func KubeConfigClusterName(getter LabelsGetter) string

func KubeConfigSecretName

func KubeConfigSecretName(getter LabelsGetter) string

func MachineDeployment

func MachineDeployment(getter LabelsGetter) string

func MachineDeploymentWorkerInstanceType

func MachineDeploymentWorkerInstanceType(machineDeployment v1alpha1.MachineDeployment) string

func OperatorVersion

func OperatorVersion(getter LabelsGetter) string

func OrganizationID

func OrganizationID(getter LabelsGetter) string

func ReleaseVersion

func ReleaseVersion(getter LabelsGetter) string

func TenantBaseDomain

func TenantBaseDomain(cluster v1alpha1.Cluster) string

func ToCluster

func ToCluster(v interface{}) (v1alpha1.Cluster, error)

func ToMachineDeployment

func ToMachineDeployment(v interface{}) (v1alpha1.MachineDeployment, error)

Types

type AWSClusterStatusAccessor

type AWSClusterStatusAccessor struct{}

func (*AWSClusterStatusAccessor) GetCommonClusterStatus

func (*AWSClusterStatusAccessor) SetCommonClusterStatus

type CommonClusterStatusAccessor

type CommonClusterStatusAccessor interface {
	GetCommonClusterStatus(c cmav1alpha1.Cluster) v1alpha1.CommonClusterStatus
	SetCommonClusterStatus(c cmav1alpha1.Cluster, status v1alpha1.CommonClusterStatus) cmav1alpha1.Cluster
}

CommonClusterStatusAccessor interface provides abstracted API to manipulate provider specific types in provider independent way.

type DeletionTimestampGetter

type DeletionTimestampGetter interface {
	GetDeletionTimestamp() *metav1.Time
}

type LabelsGetter

type LabelsGetter interface {
	GetLabels() map[string]string
}

Jump to

Keyboard shortcuts

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