Documentation ¶
Index ¶
- func APIAltNames(clusterID string, kubeAltNames []string) []string
- func APIDomain(clusterGuestConfig v1alpha1.ClusterGuestConfig) (string, error)
- 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 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 ChartSpec
Constants ¶
This section is empty.
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 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 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 ChartSpec ¶
type ChartSpec struct { AppName string ChannelName string ChartName string ConfigMapName string Namespace string ReleaseName string UseUpgradeForce bool 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.