controllers

package
v0.0.0-...-608c61d Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(data []byte) string

Types

type EnvoyFilterObject

type EnvoyFilterObject struct {
	ApplyTo   networking.EnvoyFilter_ApplyTo
	Operation networking.EnvoyFilter_Patch_Operation
	RawConfig string
	//RawConfig             json.RawMessage
	TypeConfigObjectMatch string
	ClusterEndpoint       string
	Context               string
	Labels                map[string]string
	NameVhost             string
	Routes                []string
}

type K8sObject

type K8sObject struct {
	EnvoyFilters []*clientIstio.EnvoyFilter
	DeploymentRL appsv1.Deployment
	// contains filtered or unexported fields
}

type RateLimitReconciler

type RateLimitReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	K8sObject
	// contains filtered or unexported fields
}

RateLimitReconciler reconciles a RateLimit object

func (*RateLimitReconciler) CreateOrUpdateConfigMap

func (r *RateLimitReconciler) CreateOrUpdateConfigMap(rateLimitInstance *networkingv1alpha1.RateLimit, controllerNamespace string, baseName string, deploymentName string) error

func (*RateLimitReconciler) Reconcile

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

func (*RateLimitReconciler) SetupWithManager

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

func (*RateLimitReconciler) UpdateDeployment

func (r *RateLimitReconciler) UpdateDeployment(volumeProjectedSources []v1.VolumeProjection, volumes []v1.Volume, controllerNamespace string, deploymentName string) error

Jump to

Keyboard shortcuts

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