Documentation ¶
Index ¶
- Constants
- func APIEndpoint(cluster apiv1alpha2.Cluster, base string) string
- func AppUserConfigMapName(appSpec AppSpec) string
- func AppUserSecretName(appSpec AppSpec) string
- func CertAltNames(altNames ...string) []string
- func CertConfigCertOperatorVersion(cr v1alpha1.CertConfig) string
- func CertConfigName(getter LabelsGetter, name string) string
- func ClusterConfigMapName(getter LabelsGetter) string
- func ClusterID(getter LabelsGetter) string
- func ClusterInfraRef(cluster apiv1alpha2.Cluster) types.NamespacedName
- func DNSIP(clusterIPRange string) (string, error)
- func IsDeleted(getter DeletionTimestampGetter) bool
- func IsInvalidConfig(err error) bool
- func IsNotFound(err error) bool
- func IsWrongTypeError(err error) bool
- func KubeConfigClusterName(getter LabelsGetter) string
- func KubeConfigSecretName(getter LabelsGetter) string
- func MachineDeployment(getter LabelsGetter) string
- func MachineDeploymentInfraRef(md apiv1alpha2.MachineDeployment) types.NamespacedName
- func OperatorVersion(getter LabelsGetter) string
- func OrganizationID(getter LabelsGetter) string
- func ReleaseVersion(getter LabelsGetter) string
- func TenantEndpoint(cluster apiv1alpha2.Cluster, base string) string
- func ToCluster(v interface{}) (apiv1alpha2.Cluster, error)
- func ToMachineDeployment(v interface{}) (apiv1alpha2.MachineDeployment, error)
- type AppSpec
- type DeletionTimestampGetter
- type LabelsGetter
Constants ¶
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 ¶
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 CertAltNames ¶
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 ClusterInfraRef ¶
func ClusterInfraRef(cluster apiv1alpha2.Cluster) types.NamespacedName
func IsDeleted ¶
func IsDeleted(getter DeletionTimestampGetter) bool
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsNotFound ¶ added in v0.23.7
IsNotFound asserts notFoundError.
func IsWrongTypeError ¶ added in v0.23.7
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 MachineDeploymentInfraRef ¶
func MachineDeploymentInfraRef(md apiv1alpha2.MachineDeployment) 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 AzureAppSpecs ¶
func AzureAppSpecs() []AppSpec
AzureAppSpecs returns apps installed only for Azure.
func CommonAppSpecs ¶
func CommonAppSpecs() []AppSpec
CommonAppSpecs returns apps installed for all providers.