controller

package
v0.0.0-...-b75a8cd Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright 2020 Layer5, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	ErrReconcileCRCode    = "7001"
	ErrCheckHealthCode    = "7002"
	ErrCreateResourceCode = "7003"
	ErrGetResourceCode    = "7004"
	ErrUpdateResourceCode = "7005"
	ErrDeleteResourceCode = "7006"
)

Error codes

Variables

This section is empty.

Functions

func ErrCheckHealth

func ErrCheckHealth(err error) error

func ErrCreateAdapter

func ErrCreateAdapter(err error) error

func ErrDeletingAdapter

func ErrDeletingAdapter(err error) error

func ErrGetAdapter

func ErrGetAdapter(err error) error

func ErrReconcileAdapter

func ErrReconcileAdapter(err error) error

func ErrUpdateAdapter

func ErrUpdateAdapter(err error) error

Types

type AdapterReconciler

type AdapterReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

AdapterReconciler reconciles a Adapter object

func (*AdapterReconciler) Reconcile

func (r *AdapterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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.

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

func (*AdapterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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