cluster

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterReadyGauge = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "greenhouse_cluster_ready",
			Help: "Indicates whether the cluster is ready",
		},
		[]string{"cluster", "namespace", "owned_by"})

	KubernetesVersionsGauge = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "greenhouse_cluster_k8s_versions_total",
		},
		[]string{"cluster", "namespace", "version", "owned_by"})

	SecondsToTokenExpiryGauge = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "greenhouse_cluster_kubeconfig_validity_seconds",
		},
		[]string{"cluster", "namespace", "owned_by"})
)

Functions

func UpdateClusterMetrics added in v0.6.0

func UpdateClusterMetrics(cluster *greenhousev1alpha1.Cluster)

Types

type BootstrapReconciler

type BootstrapReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

func (*BootstrapReconciler) Reconcile

func (r *BootstrapReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*BootstrapReconciler) SetupWithManager

func (r *BootstrapReconciler) SetupWithManager(name string, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KubeconfigReconciler

type KubeconfigReconciler struct {
	client.Client
}

func (*KubeconfigReconciler) Reconcile

func (r *KubeconfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*KubeconfigReconciler) SetupWithManager

func (r *KubeconfigReconciler) SetupWithManager(name string, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager

type OIDCInfo

type OIDCInfo struct {
	ClientID     string
	ClientSecret string
	IssuerURL    string
}

type RemoteClusterReconciler

type RemoteClusterReconciler struct {
	client.Client

	RemoteClusterBearerTokenValidity   time.Duration
	RenewRemoteClusterBearerTokenAfter time.Duration
	// contains filtered or unexported fields
}

RemoteClusterReconciler reconciles a Cluster object with accessMode=direct set.

func (*RemoteClusterReconciler) EnsureCreated

func (*RemoteClusterReconciler) EnsureDeleted

EnsureDeleted - handles the deletion / cleanup of cluster resource

func (*RemoteClusterReconciler) EnsureSuspended added in v0.7.0

func (*RemoteClusterReconciler) GetEventRecorder

func (r *RemoteClusterReconciler) GetEventRecorder() record.EventRecorder

func (*RemoteClusterReconciler) Reconcile

func (r *RemoteClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*RemoteClusterReconciler) SetupWithManager

func (r *RemoteClusterReconciler) SetupWithManager(name string, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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