Documentation ¶
Index ¶
- func ClusterURLs(logger logr.Logger, instance *toolchainv1alpha1.ToolchainStatus) map[string]string
- func CreateOrUpdateResources(ctx context.Context, client runtimeclient.Client, ...) error
- func GenerateUnreadyNotificationContent(clusterURLs map[string]string, statusMeta []*ComponentNotReadyStatus) (string, error)
- type ComponentNotReadyStatus
- type HTTPClient
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterURLs ¶
func ClusterURLs(logger logr.Logger, instance *toolchainv1alpha1.ToolchainStatus) map[string]string
func CreateOrUpdateResources ¶
func CreateOrUpdateResources(ctx context.Context, client runtimeclient.Client, namespace, toolchainStatusName string) error
CreateOrUpdateResources creates a toolchainstatus resource with the given name in the given namespace
func GenerateUnreadyNotificationContent ¶
func GenerateUnreadyNotificationContent(clusterURLs map[string]string, statusMeta []*ComponentNotReadyStatus) (string, error)
Types ¶
type ComponentNotReadyStatus ¶
type ComponentNotReadyStatus struct { ComponentType string ComponentName string Reason string Message string Details map[string]string }
func ExtractStatusMetadata ¶
func ExtractStatusMetadata(instance *toolchainv1alpha1.ToolchainStatus) []*ComponentNotReadyStatus
type Reconciler ¶
type Reconciler struct { Client runtimeclient.Client Scheme *runtime.Scheme GetMembersFunc cluster.GetMemberClustersFunc HTTPClientImpl HTTPClient Namespace string VersionCheckManager status.VersionCheckManager }
Reconciler reconciles a ToolchainStatus object
func (*Reconciler) Reconcile ¶
Reconcile reads the state of toolchain host and member cluster components and updates the ToolchainStatus resource with information useful for observation or troubleshooting
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr manager.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.