Documentation
¶
Index ¶
- Variables
- func GetAccount(ctx context.Context, c client.Client, account *uptimerobotv1.Account, ...) error
- func GetApiKey(ctx context.Context, c client.Client, account *uptimerobotv1.Account) (string, error)
- func GetContact(ctx context.Context, c client.Client, contact *uptimerobotv1.Contact, ...) error
- type AccountReconciler
- type ContactReconciler
- type MonitorReconciler
Constants ¶
This section is empty.
Variables ¶
var ( ErrNoDefaultAccount = errors.New("no default account") ErrMultipleDefaultAccount = errors.New("more than 1 default account found") )
var ( ErrNoDefaultContact = errors.New("no default contact") ErrMultipleDefaultContact = errors.New("more than 1 default contact found") )
var ( ErrContactMissingID = errors.New("contact missing ID") ErrSecretMissingKey = errors.New("secret missing key") )
var ClusterResourceNamespace = "uptime-robot-system"
var ErrKeyNotFound = errors.New("secret key not found")
Functions ¶
func GetAccount ¶
func GetContact ¶
Types ¶
type AccountReconciler ¶
AccountReconciler reconciles a Account object
func (*AccountReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.2/pkg/reconcile
func (*AccountReconciler) SetupWithManager ¶
func (r *AccountReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ContactReconciler ¶
ContactReconciler reconciles a Contact object
func (*ContactReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.2/pkg/reconcile
func (*ContactReconciler) SetupWithManager ¶
func (r *ContactReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MonitorReconciler ¶
MonitorReconciler reconciles a Monitor object
func (*MonitorReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.2/pkg/reconcile
func (*MonitorReconciler) SetupWithManager ¶
func (r *MonitorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.