Documentation
¶
Index ¶
Constants ¶
View Source
const ( KindRole = "Role" KindClusterRole = "ClusterRole" KindRoleBinding = "RoleBinding" KindClusterRoleBinding = "ClusterRoleBinding" )
View Source
const ControllerName = "AccessRequest"
View Source
const RenewTokenAfterValidityPercentagePassed = 0.8
Variables ¶
View Source
var DefaultRequestedTokenValidityDuration = 30 * 24 * time.Hour // 30 days
View Source
var FakeClientMappingsForTesting = map[string]client.Client{}
This map is meant for testing purposes only. When the AdminKubeconfigRequest sent to the garden cluster returns a kubeconfig, it tries to find the raw bytes as a key in this map. If found, the corresponding client will be used instead of constructing one from the bytes.
Functions ¶
This section is empty.
Types ¶
type AccessRequestReconciler ¶
type AccessRequestReconciler struct { *shared.RuntimeConfiguration // contains filtered or unexported fields }
func NewAccessRequestReconciler ¶
func NewAccessRequestReconciler(rc *shared.RuntimeConfiguration, eventRecorder record.EventRecorder) *AccessRequestReconciler
func (*AccessRequestReconciler) SetupWithManager ¶
func (r *AccessRequestReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ReconcileResult ¶
type ReconcileResult = ctrlutils.ReconcileResult[*clustersv1alpha1.AccessRequest]
Click to show internal directories.
Click to hide internal directories.