key

package
v2.1.1-fix+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalhostIP = "127.0.0.1"
)

Variables

This section is empty.

Functions

func APIEndpoint added in v0.23.7

func APIEndpoint(cluster apiv1alpha2.Cluster, base string) string

func AppUserConfigMapName

func AppUserConfigMapName(appSpec AppSpec) string

AppUserConfigMapName returns the name of the user values configmap for the given app spec.

func AppUserSecretName

func AppUserSecretName(appSpec AppSpec) string

AppUserSecretName returns the name of the user values secret for the given app spec.

func CertAltNames

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

CertAltNames returns the alt names for the Kubernetes API certs.

func CertConfigCertOperatorVersion added in v0.23.7

func CertConfigCertOperatorVersion(cr v1alpha1.CertConfig) string

CertConfigCertOperatorVersion returns version bundle version for given CertConfig.

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 ClusterConfigMapName

func ClusterConfigMapName(getter LabelsGetter) string

ClusterConfigMapName returns the cluster name used in the configMap generated for this tenant cluster.

func ClusterID

func ClusterID(getter LabelsGetter) string

func DNSIP

func DNSIP(clusterIPRange string) (string, error)

DNSIP returns the IP of the DNS service given a cluster IP range.

func IsDeleted

func IsDeleted(getter DeletionTimestampGetter) bool

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound added in v0.23.7

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsWrongTypeError added in v0.23.7

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func KubeConfigClusterName

func KubeConfigClusterName(getter LabelsGetter) string

func KubeConfigSecretName

func KubeConfigSecretName(getter LabelsGetter) string

func MachineDeployment added in v0.23.7

func MachineDeployment(getter LabelsGetter) string

func ObjRefFromCluster added in v0.23.7

func ObjRefFromCluster(cl apiv1alpha2.Cluster) corev1.ObjectReference

func ObjRefFromMachineDeployment added in v0.23.7

func ObjRefFromMachineDeployment(md apiv1alpha2.MachineDeployment) corev1.ObjectReference

func ObjRefToNamespacedName added in v0.23.7

func ObjRefToNamespacedName(ref corev1.ObjectReference) types.NamespacedName

func OperatorVersion added in v0.23.7

func OperatorVersion(getter LabelsGetter) string

func OrganizationID added in v0.23.7

func OrganizationID(getter LabelsGetter) string

func ReleaseVersion added in v0.23.7

func ReleaseVersion(getter LabelsGetter) string

func TenantEndpoint added in v0.23.7

func TenantEndpoint(cluster apiv1alpha2.Cluster, base string) string

func ToCluster added in v0.23.7

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

func ToMachineDeployment added in v0.23.7

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

Types

type AppSpec

type AppSpec struct {
	App     string
	Catalog string
	Chart   string
	// Whether app is installed for clusterapi clusters only.
	ClusterAPIOnly bool
	// ConfigMapName overrides the name, otherwise the cluster values configmap
	// is used.
	ConfigMapName string
	// Whether app is installed for legacy clusters only.
	LegacyOnly      bool
	Namespace       string
	UseUpgradeForce bool
	Version         string
}

AppSpec is used to define app custom resources.

func CommonAppSpecs

func CommonAppSpecs() []AppSpec

CommonAppSpecs returns apps installed for all providers.

type DeletionTimestampGetter added in v0.23.7

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

type LabelsGetter added in v0.23.7

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