toolchainstatus

package
v0.0.0-...-e809054 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

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 HTTPClient

type HTTPClient interface {
	Get(url string) (*http.Response, error)
}

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

func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL