controllers

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

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

	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, mailSender mailsenders.MailSender, MailRecipientAddress string) BillingEntityEmailCronJob

func (*BillingEntityEmailCronJob) GetMetrics added in v0.25.0

func (*BillingEntityEmailCronJob) Run added in v0.25.0

Run lists all BillingEntity resources and sends notification emails if needed.

type BillingEntityRBACCronJob added in v0.32.0

type BillingEntityRBACCronJob struct {
	client.Client
}

BillingEntityRBACCronJob periodically checks billing entities and sends notification emails if appropriate

func NewBillingEntityRBACCronJob added in v0.32.0

func NewBillingEntityRBACCronJob(client client.Client, eventRecorder record.EventRecorder) BillingEntityRBACCronJob

func (*BillingEntityRBACCronJob) Run added in v0.32.0

Run lists all BillingEntity resources and sends notification emails if needed.

type DefaultOrganizationReconciler added in v0.33.0

type DefaultOrganizationReconciler struct {
	client.Client
	Recorder record.EventRecorder
	Scheme   *runtime.Scheme
}

DefaultOrganizationReconciler reconciles User resources to ensure they have a DefaultOrganization set if applicable.

func (*DefaultOrganizationReconciler) Reconcile added in v0.33.0

Reconcile reacts on changes of memberships and sets members' default organization if appropriate

func (*DefaultOrganizationReconciler) SetupWithManager added in v0.33.0

func (r *DefaultOrganizationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type EmailPendingMetric added in v0.23.0

type EmailPendingMetric struct {
	client.Client
}

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

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 (*InvitationEmailReconciler) Reconcile added in v0.17.0

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

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

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

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

type OrgBillingRefLinkMetric struct {
	client.Client
}

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 OrgInfoMetric added in v0.30.0

type OrgInfoMetric struct {
	client.Client
}

OrgInfoMetric is a Prometheus collector that exposes the link between an organization and a billing entity.

func (*OrgInfoMetric) Collect added in v0.30.0

func (o *OrgInfoMetric) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector. Sends a metric for each organization and its billing entity to the provided channel.

func (*OrgInfoMetric) Describe added in v0.30.0

func (o *OrgInfoMetric) 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

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 SaleOrderReconciler added in v0.30.0

type SaleOrderReconciler struct {
	client.Client

	Recorder record.EventRecorder
	Scheme   *runtime.Scheme

	SaleOrderStorage saleorder.SaleOrderStorage
}

SaleOrderReconciler reconciles invitations and adds a token to the status if required.

func (*SaleOrderReconciler) Reconcile added in v0.30.0

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

Reconcile reacts to Organizations and creates Sale Orders if necessary

func (*SaleOrderReconciler) SetupWithManager added in v0.30.0

func (r *SaleOrderReconciler) 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

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

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.

Directories

Path Synopsis
mock_saleorder
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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