status

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package status contains all the function needed to interact properly with the resources status

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPhase

func RegisterPhase(
	ctx context.Context,
	cli client.Client,
	cluster *apiv1.Cluster,
	phase string,
	reason string,
) error

RegisterPhase update phase in the status cluster with the proper reason

func RegisterPhaseWithOrigCluster

func RegisterPhaseWithOrigCluster(
	ctx context.Context,
	cli client.Client,
	modifiedCluster *apiv1.Cluster,
	origCluster *apiv1.Cluster,
	phase string,
	reason string,
) error

RegisterPhaseWithOrigCluster update phase in the status cluster with the proper reason, it also receives an origCluster to preserve other modifications done to the status

Types

This section is empty.

Jump to

Keyboard shortcuts

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