controllers

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgeFunctionReconciler

type EdgeFunctionReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

EdgeFunctionReconciler reconciles a Proxy object.

func NewEdgeFuncReconciler

func NewEdgeFuncReconciler(
	c client.Client,
	apiserverHost string,
	wasmStore manifest.Store,
	goStoreDir string,
) *EdgeFunctionReconciler

NewEdgeFuncReconciler returns a new reconcile.Reconciler.

func (*EdgeFunctionReconciler) Reconcile

func (r *EdgeFunctionReconciler) Reconcile(ctx context.Context, request reconcile.Request) (ctrl.Result, error)

Reconcile implements reconcile.Reconciler.

func (*EdgeFunctionReconciler) SetupWithManager

func (r *EdgeFunctionReconciler) SetupWithManager(
	ctx context.Context,
	mgr ctrl.Manager,
	proxyName string,
) error

SetupWithManager sets up the controller with the Controller Manager.

type Option

type Option func(*options)

Option is a functional option for ProxyReconciler.

func WithAPIServerTLSClientConfig

func WithAPIServerTLSClientConfig(tlsConfig *tls.Config) Option

WithAPIServerTLSClientConfig sets the TLS client configuration for the API server. If not set, the client will use an insecure connection.

func WithClickHouseConn

func WithClickHouseConn(chConn clickhouse.Conn) Option

WithClickHouseConn sets the ClickHouse connection for the ProxyReconciler. If not set, log shipping will be disabled.

func WithEnvoyContrib

func WithEnvoyContrib() Option

WithEnvoyContrib enables the use of Envoy contrib filters.

func WithGoPluginDir

func WithGoPluginDir(dir string) Option

WithGoPluginDir sets the directory for Go plugins.

func WithURLRelease added in v0.2.3

func WithURLRelease(url string) Option

WithURLRelease enables the use of URL release. (Default is GitHub release).

type ProxyReconciler

type ProxyReconciler struct {
	client.Client
	envoy.Runtime
	// contains filtered or unexported fields
}

ProxyReconciler reconciles a Proxy object.

func NewProxyReconciler

func NewProxyReconciler(
	c client.Client,
	proxyName string,
	replicaName string,
	apiServerAddr string,
	opts ...Option,
) *ProxyReconciler

NewProxyReconciler returns a new reconcile.Reconciler implementation for the Proxy resource.

func (*ProxyReconciler) Reconcile

func (r *ProxyReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

func (*ProxyReconciler) SetupWithManager

func (r *ProxyReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

func (*ProxyReconciler) Shutdown added in v0.3.0

func (r *ProxyReconciler) Shutdown(ctx context.Context, reason string)

Jump to

Keyboard shortcuts

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