controllers

package
v0.0.0-...-81d1f5a Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IstioVersion   string = "1.16.1"
	IstioImageBase string = "distroless"
)

Variables

View Source
var (
	ConfigFlags types.Flags
	SetFlags    types.Flags
)
View Source
var IstioTag = fmt.Sprintf("%s-%s", IstioVersion, IstioImageBase)

Functions

func TemplateRateLimiter

func TemplateRateLimiter(failureBaseDelay time.Duration, failureMaxDelay time.Duration,
	frequency int, burst int,
) ratelimiter.RateLimiter

TemplateRateLimiter implements a rate limiter for a client-go.workqueue. It has both an overall (token bucket) and per-item (exponential) rate limiting.

Types

type IstioReconciler

type IstioReconciler struct {
	declarative.ManifestReconciler // declarative reconciler override
	*rest.Config                   // required to pass rest config to the declarative library
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

IstioReconciler reconciles a Istio object

func NewReconciler

func NewReconciler(mgr manager.Manager) *IstioReconciler

func (*IstioReconciler) Reconcile

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

func (*IstioReconciler) SetupWithManager

func (r *IstioReconciler) SetupWithManager(mgr ctrl.Manager, rateLimiter RateLimiter) error

+kubebuilder:rbac:groups=operator.kyma-project.io,resources=istios,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=operator.kyma-project.io,resources=istios/status,verbs=get;update;patch +kubebuilder:rbac:groups=operator.kyma-project.io,resources=istios/finalizers,verbs=update +kubebuilder:rbac:groups="",resources=namespaces,verbs=get;create;update;patch

type ManifestResolver

type ManifestResolver struct {
	// contains filtered or unexported fields
}

ManifestResolver represents the chart information for the passed Istio resource.

func (*ManifestResolver) Get

Get returns the chart information to be processed.

type RateLimiter

type RateLimiter struct {
	Burst           int
	Frequency       int
	BaseDelay       time.Duration
	FailureMaxDelay time.Duration
}

Jump to

Keyboard shortcuts

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