controllers

package
v0.0.0-...-074db7c Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProposalObject

type ProposalObject struct {
	ID         string     `json:"id"`
	Title      string     `json:"title"`
	Abstract   string     `json:"abstract"`
	Type       string     `json:"type"`
	SpeakerID  string     `json:"speakerID"`
	Final      bool       `json:"final"`
	Submission Submission `json:"submission"`
}

ProposalObject is the object that is sent to/received from the CFP API

type ProposalReconciler

type ProposalReconciler struct {
	client.Client
	HTTPClient     *http.Client
	ControllerName string
	CfpAPI         string
}

ProposalReconciler reconciles a Proposal object

func (*ProposalReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Proposal object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile

func (*ProposalReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type SpeakerChangePredicate

type SpeakerChangePredicate struct {
	predicate.Funcs
}

func (SpeakerChangePredicate) Create

func (SpeakerChangePredicate) Delete

func (SpeakerChangePredicate) Update

type SpeakerReconciler

type SpeakerReconciler struct {
	client.Client
	HTTPClient     *http.Client
	ControllerName string
	CfpAPI         string
}

SpeakerReconciler reconciles a Speaker object

func (*SpeakerReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Speaker object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile

func (*SpeakerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Submission

type Submission struct {
	Status     string    `json:"status"`
	LastUpdate time.Time `json:"lastUpdate"`
}

Jump to

Keyboard shortcuts

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