Documentation ¶
Index ¶
- type BillingEntityEmailCronJob
- type EmailPendingMetric
- type InvitationCleanupReconciler
- type InvitationEmailReconciler
- type InvitationRedeemReconciler
- type InvitationTokenReconciler
- type OrgBillingEntityNameCacheController
- type OrgBillingRefLinkMetric
- type OrganizationMembersReconciler
- type UserReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingEntityEmailCronJob ¶ added in v0.25.0
type BillingEntityEmailCronJob struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme MailSender mailsenders.MailSender // contains filtered or unexported fields }
BillingEntityEmailCronJob periodically checks billing entities and sends notification emails if appropriate
func NewBillingEntityEmailCronJob ¶ added in v0.25.0
func NewBillingEntityEmailCronJob(client client.Client, eventRecorder record.EventRecorder, scheme *runtime.Scheme, mailSender mailsenders.MailSender, MailRecipientAddress string) BillingEntityEmailCronJob
func (*BillingEntityEmailCronJob) GetMetrics ¶ added in v0.25.0
func (r *BillingEntityEmailCronJob) GetMetrics() prometheus.Collector
type EmailPendingMetric ¶ added in v0.23.0
EmailPendingMetric is a Prometheus collector that exposes the number of currently pending invitation e-mails
func (*EmailPendingMetric) Collect ¶ added in v0.23.0
func (e *EmailPendingMetric) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector. Sends a metric to the provided channel.
func (*EmailPendingMetric) Describe ¶ added in v0.23.0
func (e *EmailPendingMetric) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector. Sends the static description of the metric to the provided channel.
type InvitationCleanupReconciler ¶ added in v0.15.0
type InvitationCleanupReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme RedeemedInvitationTTL time.Duration }
InvitationCleanupReconciler reconciles invitations, deleting them if appropriate
func (*InvitationCleanupReconciler) Reconcile ¶ added in v0.15.0
func (r *InvitationCleanupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reacts on invitations and removes them if required
func (*InvitationCleanupReconciler) SetupWithManager ¶ added in v0.15.0
func (r *InvitationCleanupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type InvitationEmailReconciler ¶ added in v0.17.0
type InvitationEmailReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme MailSender mailsenders.MailSender BaseRetryDelay time.Duration // contains filtered or unexported fields }
InvitationEmailReconciler reconciles invitations and sends invitation emails if appropriate
func NewInvitationEmailReconciler ¶ added in v0.23.0
func NewInvitationEmailReconciler(client client.Client, eventRecorder record.EventRecorder, scheme *runtime.Scheme, mailSender mailsenders.MailSender, baseRetryDelay time.Duration) InvitationEmailReconciler
func (*InvitationEmailReconciler) GetMetrics ¶ added in v0.23.0
func (r *InvitationEmailReconciler) GetMetrics() prometheus.Collector
func (*InvitationEmailReconciler) Reconcile ¶ added in v0.17.0
func (r *InvitationEmailReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reacts to redeemed invitations and sends invitation emails to the user if needed.
func (*InvitationEmailReconciler) SetupWithManager ¶ added in v0.17.0
func (r *InvitationEmailReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type InvitationRedeemReconciler ¶ added in v0.13.0
type InvitationRedeemReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme UsernamePrefix string }
InvitationRedeemReconciler reconciles invitations and adds a token to the status if required.
func (*InvitationRedeemReconciler) Reconcile ¶ added in v0.13.0
func (r *InvitationRedeemReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reacts to redeemed invitations and adds the user to the targets listed in the invitation status.
func (*InvitationRedeemReconciler) SetupWithManager ¶ added in v0.13.0
func (r *InvitationRedeemReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type InvitationTokenReconciler ¶ added in v0.12.0
type InvitationTokenReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme TokenValidFor time.Duration }
InvitationTokenReconciler reconciles invitations and adds a token to the status if required.
func (*InvitationTokenReconciler) Reconcile ¶ added in v0.12.0
func (r *InvitationTokenReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reacts on invitations and adds a token to the status if required.
func (*InvitationTokenReconciler) SetupWithManager ¶ added in v0.12.0
func (r *InvitationTokenReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OrgBillingEntityNameCacheController ¶ added in v0.11.0
type OrgBillingEntityNameCacheController struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme RefreshInterval time.Duration RefreshJitter time.Duration }
OrgBillingEntityNameCacheController reconciles OrganizationMembers resources
func (*OrgBillingEntityNameCacheController) Reconcile ¶ added in v0.11.0
func (r *OrgBillingEntityNameCacheController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile periodically updates the organizations .status.billingEntityName field.
func (*OrgBillingEntityNameCacheController) SetupWithManager ¶ added in v0.11.0
func (r *OrgBillingEntityNameCacheController) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OrgBillingRefLinkMetric ¶ added in v0.14.0
OrgBillingRefLinkMetric is a Prometheus collector that exposes the link between an organization and a billing entity.
func (*OrgBillingRefLinkMetric) Collect ¶ added in v0.14.0
func (o *OrgBillingRefLinkMetric) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector. Sends a metric for each organization and its billing entity to the provided channel.
func (*OrgBillingRefLinkMetric) Describe ¶ added in v0.14.0
func (o *OrgBillingRefLinkMetric) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector. Sends the static description of the metric to the provided channel.
type OrganizationMembersReconciler ¶ added in v0.7.0
type OrganizationMembersReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme // UserPrefix is the prefix applied to the user in the RoleBinding.subjects.name. UserPrefix string MemberRoles []string }
OrganizationMembersReconciler reconciles OrganizationMembers resources
func (*OrganizationMembersReconciler) Reconcile ¶ added in v0.7.0
func (r *OrganizationMembersReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reacts on changes of users and mirrors these changes to Keycloak
func (*OrganizationMembersReconciler) SetupWithManager ¶ added in v0.7.0
func (r *OrganizationMembersReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type UserReconciler ¶
type UserReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme // UserPrefix is the prefix applied to the user in the ClusterRoleBinding.subjects.name. UserPrefix string // RolePrefix is the prefix applied to the cluster role and the according role binding. // Should help prevent cluster role name collisions. RolePrefix string }
UserReconciler reconciles a User object
func (*UserReconciler) Reconcile ¶
Reconcile reacts on changes of users and mirrors these changes to Keycloak
func (*UserReconciler) SetupWithManager ¶
func (r *UserReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files ¶
- billingentity_email_cronjob.go
- email_metrics.go
- invitation_cleanup_controller.go
- invitation_email_controller.go
- invitation_email_pending_metric.go
- invitation_redeem_controller.go
- invitation_token_controller.go
- org_billing_ref_link_metric.go
- org_billingentity_name_cache_controller.go
- organization_members_controller.go
- user_controller.go