Documentation
¶
Index ¶
- Variables
- func UpdateClusterMetrics(cluster *greenhousev1alpha1.Cluster)
- type BootstrapReconciler
- type KubeconfigReconciler
- type OIDCInfo
- type RemoteClusterReconciler
- func (r *RemoteClusterReconciler) EnsureCreated(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
- func (r *RemoteClusterReconciler) EnsureDeleted(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
- func (r *RemoteClusterReconciler) EnsureSuspended(_ context.Context, _ lifecycle.RuntimeObject) (ctrl.Result, error)
- func (r *RemoteClusterReconciler) GetEventRecorder() record.EventRecorder
- func (r *RemoteClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *RemoteClusterReconciler) SetupWithManager(name string, mgr ctrl.Manager) error
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"}) )
View Source
var ExposedKubeconfigConditions = []greenhousemetav1alpha1.ConditionType{ v1alpha1.KubeconfigCreatedCondition, v1alpha1.KubeconfigReconcileFailedCondition, v1alpha1.KubeconfigReadyCondition, }
Functions ¶
func UpdateClusterMetrics ¶ added in v0.6.0
func UpdateClusterMetrics(cluster *greenhousev1alpha1.Cluster)
Types ¶
type BootstrapReconciler ¶
func (*BootstrapReconciler) SetupWithManager ¶
func (r *BootstrapReconciler) SetupWithManager(name string, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KubeconfigReconciler ¶
func (*KubeconfigReconciler) SetupWithManager ¶
func (r *KubeconfigReconciler) SetupWithManager(name string, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager
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 (r *RemoteClusterReconciler) EnsureCreated(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
func (*RemoteClusterReconciler) EnsureDeleted ¶
func (r *RemoteClusterReconciler) EnsureDeleted(ctx context.Context, resource lifecycle.RuntimeObject) (ctrl.Result, lifecycle.ReconcileResult, error)
EnsureDeleted - handles the deletion / cleanup of cluster resource
func (*RemoteClusterReconciler) EnsureSuspended ¶ added in v0.7.0
func (r *RemoteClusterReconciler) EnsureSuspended(_ context.Context, _ lifecycle.RuntimeObject) (ctrl.Result, error)
func (*RemoteClusterReconciler) GetEventRecorder ¶
func (r *RemoteClusterReconciler) GetEventRecorder() record.EventRecorder
func (*RemoteClusterReconciler) SetupWithManager ¶
func (r *RemoteClusterReconciler) SetupWithManager(name string, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.