key

package
v5.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IRSAAppName    = "aws-pod-identity-webhook"
	IRSAAppCatalog = "default"
	IRSAAppVersion = "0.3.1"
)
View Source
const (
	LocalhostIP = "127.0.0.1"
)
View Source
const (

	// UniqueOperatorVersion This is a special version used to indicate that the App CR
	// should be reconciled by the workload cluster app-operator.
	UniqueOperatorVersion = "0.0.0"
)

Variables

This section is empty.

Functions

func APIEndpoint

func APIEndpoint(getter LabelsGetter, base string) string

func APISecretName

func APISecretName(getter LabelsGetter) string

func AWSOperatorReleaseVersion added in v5.8.0

func AWSOperatorReleaseVersion(getter LabelsGetter) 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 CertConfigCertOperatorVersion

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 CertDefaultAltNames

func CertDefaultAltNames(clusterDomain string) []string

CertDefaultAltNames returns default alt names for Kubernetes API certs.

func CiliumEniModeEnabled added in v5.8.0

func CiliumEniModeEnabled(cluster apiv1beta1.Cluster) bool

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 ForceDisableCiliumKubeProxyReplacement added in v5.2.0

func ForceDisableCiliumKubeProxyReplacement(cluster apiv1beta1.Cluster) bool

func G8sControlPlaneReplicas

func G8sControlPlaneReplicas(cr infrastructurev1alpha3.G8sControlPlane) int

func IRSAEnabled added in v5.3.0

func IRSAEnabled(awsCluster *v1alpha3.AWSCluster) bool

func IsAWS added in v5.8.0

func IsAWS(provider string) bool

func IsAWSChina added in v5.9.0

func IsAWSChina(region string) bool

func IsBundle added in v5.1.0

func IsBundle(appName string) bool

func IsDeleted

func IsDeleted(getter DeletionTimestampGetter) bool

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsPSSRelease added in v5.10.0

func IsPSSRelease(getter LabelsGetter) (bool, error)

func IsUnknownRelease added in v5.10.0

func IsUnknownRelease(err error) bool

IsUnknownRelease asserts unknownReleaseError.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func KubeConfigClusterName

func KubeConfigClusterName(getter LabelsGetter) string

func KubeConfigEndpoint

func KubeConfigEndpoint(getter LabelsGetter, base string) string

func KubeConfigSecretName

func KubeConfigSecretName(getter LabelsGetter) string

func MachineDeployment

func MachineDeployment(getter LabelsGetter) string

func ObjRefFromCluster

func ObjRefFromCluster(cl apiv1beta1.Cluster) corev1.ObjectReference

func ObjRefToNamespacedName

func ObjRefToNamespacedName(ref corev1.ObjectReference) types.NamespacedName

func OperatorVersion

func OperatorVersion(getter LabelsGetter) string

func OrganizationID

func OrganizationID(getter LabelsGetter) string

func ReleaseName

func ReleaseName(releaseVersion string) string

func ReleaseVersion

func ReleaseVersion(getter LabelsGetter) string

func TenantEndpoint

func TenantEndpoint(getter LabelsGetter, base string) string

func ToCluster

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

func ToG8sControlPlane

func ToG8sControlPlane(v interface{}) (infrastructurev1alpha3.G8sControlPlane, error)

func ToMachineDeployment

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

Types

type AppSpec

type AppSpec struct {
	App     string
	AppName 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
	// DependsOn list of dependencies of this app.
	DependsOn []string
	// InCluster determines if the app CR should use in cluster. Otherwise the
	// cluster kubeconfig is specified.
	InCluster bool
	// Whether app is installed for legacy clusters only.
	LegacyOnly      bool
	Namespace       string
	UseUpgradeForce bool
	Version         string
}

AppSpec is used to define app custom resources.

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