key

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppOperatorAppName

func AppOperatorAppName(getter LabelsGetter) string

func AppOperatorValuesResourceName

func AppOperatorValuesResourceName(getter LabelsGetter) string

func BaseDomain

func BaseDomain(getter LabelsGetter, base string) string

func ChartOperatorAppName

func ChartOperatorAppName(getter LabelsGetter) string

func ClusterCAName

func ClusterCAName(getter LabelsGetter) string

func ClusterID

func ClusterID(getter LabelsGetter) string

func ClusterValuesResourceName

func ClusterValuesResourceName(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 IsBundle added in v2.2.0

func IsBundle(appName string) bool

func IsDeleted

func IsDeleted(getter DeletionTimestampGetter) bool

func IsEKS added in v2.12.0

func IsEKS(cluster capi.Cluster) bool

IsEKS check if the cluster is EKS cluster

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsManagedByFlux added in v2.5.0

func IsManagedByFlux(app v1alpha1.App) bool

IsManagedByFlux checks if App is considered to be managed by Flux. Returns true if the flux kustomization labels are set on the App.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func KubeConfigSecretName

func KubeConfigSecretName(getter LabelsGetter) string

func PodCIDR

func PodCIDR(cr capi.Cluster) string

func ToCluster

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

Types

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