Documentation ¶
Index ¶
- Constants
- func APIAltNames(clusterID, internalAPI string, kubeAltNames []string) []string
- func APIDomain(clusterGuestConfig v1alpha1.ClusterGuestConfig) (string, error)
- func AppUserConfigMapName(appSpec AppSpec) string
- func AppUserSecretName(appSpec AppSpec) string
- func CIDRBlock(address, prefix string) string
- func CertConfigName(clusterID string, cert certs.Cert) string
- func CertConfigVersionBundleVersion(customObject v1alpha1.CertConfig) string
- func ClusterConfigMapName(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
- func ClusterID(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
- func ClusterOrganization(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
- func CordonUntilDate() string
- func DNSIP(clusterIPRange string) (string, error)
- func DNSZone(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
- func EncryptionKeySecretName(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
- func IsDeleted(objectMeta metav1.ObjectMeta) bool
- func IsInvalidConfig(err error) bool
- func KubeConfigClusterName(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
- func KubeConfigSecretName(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
- func MasterServiceDomain(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
- func VersionBundles(clusterGuestConfig v1alpha1.ClusterGuestConfig) []versionbundle.Bundle
- type AppSpec
- type ChartSpec
Constants ¶
const (
IngressControllerConfigMapName = "ingress-controller-values"
)
Variables ¶
This section is empty.
Functions ¶
func APIAltNames ¶
APIAltNames returns the alt names for API certs.
func APIDomain ¶
func APIDomain(clusterGuestConfig v1alpha1.ClusterGuestConfig) (string, error)
APIDomain returns the API server domain for the guest cluster.
func AppUserConfigMapName ¶
AppUserConfigMapName returns the name of the user values configmap for the given app spec.
func AppUserSecretName ¶
AppUserSecretName returns the name of the user values secret for the given app spec.
func CertConfigName ¶
CertConfigName constructs a name for CertConfig CR using ClusterID and Cert.
func CertConfigVersionBundleVersion ¶
func CertConfigVersionBundleVersion(customObject v1alpha1.CertConfig) string
CertConfigVersionBundleVersion returns version bundle version for given CertConfig.
func ClusterConfigMapName ¶
func ClusterConfigMapName(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
ClusterConfigMapName returns the cluster name used in the configMap generated for this tenant cluster.
func ClusterID ¶
func ClusterID(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
ClusterID returns cluster ID for given guest cluster config.
func ClusterOrganization ¶
func ClusterOrganization(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
ClusterOrganization returns the org for given guest cluster config.
func CordonUntilDate ¶
func CordonUntilDate() string
CordonUntilDate sets the date that chartconfig CRs should be cordoned until when they are migrated to app CRs.
func DNSZone ¶
func DNSZone(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
DNSZone returns common domain for guest cluster.
func EncryptionKeySecretName ¶
func EncryptionKeySecretName(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
EncryptionKeySecretName generates name for a Kubernetes secret based on information in given v1alpha1.ClusterGuestConfig.
func IsDeleted ¶
func IsDeleted(objectMeta metav1.ObjectMeta) bool
IsDeleted returns true if the Kubernetes resource has been marked for deletion.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func KubeConfigClusterName ¶
func KubeConfigClusterName(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
KubeConfigClusterName returns the cluster name used in the kubeconfig generated for this tenant cluster.
func KubeConfigSecretName ¶
func KubeConfigSecretName(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
KubeConfigSecretName returns the name of secret resource for a tenant cluster
func MasterServiceDomain ¶
func MasterServiceDomain(clusterGuestConfig v1alpha1.ClusterGuestConfig) string
MasterServiceDomain returns the domain of the master service for the given guest cluster.
func VersionBundles ¶
func VersionBundles(clusterGuestConfig v1alpha1.ClusterGuestConfig) []versionbundle.Bundle
VersionBundles returns slice of versionbundle.Bundles for given guest cluster config.
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.
type ChartSpec ¶
type ChartSpec struct { AppName string ChartName string ConfigMapName string UserConfigMapName string }
ChartSpec is used to define chartconfig custom resources.
func CommonChartSpecs ¶
func CommonChartSpecs() []ChartSpec
CommonChartSpecs returns charts installed for all providers. Note: When adding chart specs you also need to add the chart name to the desired state tests in the chartconfig and configmap services.