Documentation ¶
Index ¶
- Constants
- func APIEndpoint(cluster apiv1alpha2.Cluster, base string) string
- func AppUserConfigMapName(appSpec AppSpec) string
- func AppUserSecretName(appSpec AppSpec) string
- func CertConfigCertOperatorVersion(cr v1alpha1.CertConfig) string
- func CertConfigName(getter LabelsGetter, name string) string
- func CertDefaultAltNames(clusterDomain string) []string
- func ClusterConfigMapName(getter LabelsGetter) string
- func ClusterID(getter LabelsGetter) string
- 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 ObjRefFromCluster(cl apiv1alpha2.Cluster) corev1.ObjectReference
- func ObjRefFromG8sControlPlane(cp infrastructurev1alpha2.G8sControlPlane) corev1.ObjectReference
- func ObjRefFromMachineDeployment(md apiv1alpha2.MachineDeployment) corev1.ObjectReference
- func ObjRefToNamespacedName(ref corev1.ObjectReference) 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 ToG8sControlPlane(v interface{}) (infrastructurev1alpha2.G8sControlPlane, 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 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 CertDefaultAltNames ¶ added in v0.23.7
CertDefaultAltNames returns default alt names for Kubernetes API certs.
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 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 ObjRefFromCluster ¶ added in v0.23.7
func ObjRefFromCluster(cl apiv1alpha2.Cluster) corev1.ObjectReference
func ObjRefFromG8sControlPlane ¶ added in v0.23.7
func ObjRefFromG8sControlPlane(cp infrastructurev1alpha2.G8sControlPlane) corev1.ObjectReference
func ObjRefFromMachineDeployment ¶ added in v0.23.7
func ObjRefFromMachineDeployment(md apiv1alpha2.MachineDeployment) corev1.ObjectReference
func ObjRefToNamespacedName ¶ added in v0.23.7
func ObjRefToNamespacedName(ref corev1.ObjectReference) 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 ToG8sControlPlane ¶ added in v0.23.7
func ToG8sControlPlane(v interface{}) (infrastructurev1alpha2.G8sControlPlane, 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.