Documentation
¶
Index ¶
- Constants
- Variables
- type BootstrapReconciler
- type KubeConfigHelper
- 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) 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 ¶
View Source
const ( CRoleKind = "ClusterRole" CRoleRef = "cluster-admin" )
Variables ¶
View Source
var ExposedKubeconfigConditions = []v1alpha1.ConditionType{ v1alpha1.KubeconfigCreatedCondition, v1alpha1.KubeconfigReconcileFailedCondition, v1alpha1.KubeconfigReadyCondition, }
Functions ¶
This section is empty.
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 KubeConfigHelper ¶
type KubeConfigHelper struct {
Host string
CAData []byte
BearerToken string
Username string
Namespace string
TLSServerName string
ProxyURL string
ClientCertData []byte
ClientKeyData []byte
}
func (*KubeConfigHelper) RestConfigToAPIConfig ¶
func (kubeconfig *KubeConfigHelper) RestConfigToAPIConfig(clusterName string) clientcmdapi.Config
RestConfigToAPIConfig converts a rest config to a clientcmdapi.Config
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) 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.
Click to show internal directories.
Click to hide internal directories.