controller

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationBackendProtocol = "cloudflare-tunnel-ingress-controller.strrl.dev/backend-protocol"

AnnotationBackendProtocol is the annotation key for proxy-backend-protocol, default "http".

View Source
const AnnotationProxySSLVerify = "cloudflare-tunnel-ingress-controller.strrl.dev/proxy-ssl-verify"

AnnotationProxySSLVerify is the annotation key for proxy-ssl-verify, available values: "on" or "off", default "off".

View Source
const AnnotationProxySSLVerifyOff = "off"
View Source
const AnnotationProxySSLVerifyOn = "on"
View Source
const IngressControllerFinalizer = "strrl.dev/cloudflare-tunnel-ingress-controller-controlled"
View Source
const WellKnownIngressAnnotation = "kubernetes.io/ingress.class"

Variables

This section is empty.

Functions

func CreateControlledCloudflaredIfNotExist

func CreateControlledCloudflaredIfNotExist(
	ctx context.Context,
	kubeClient client.Client,
	tunnelClient *cloudflarecontroller.TunnelClient,
	namespace string,
) error

func FromIngressToExposure added in v0.0.4

func FromIngressToExposure(ctx context.Context, logger logr.Logger, kubeClient client.Client, ingress networkingv1.Ingress) ([]exposure.Exposure, error)

func RegisterIngressController

func RegisterIngressController(logger logr.Logger, mgr manager.Manager, options IngressControllerOptions) error

Types

type IngressController

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

func NewIngressController

func NewIngressController(logger logr.Logger, kubeClient client.Client, ingressClassName string, controllerClassName string, tunnelClient *cloudflarecontroller.TunnelClient) *IngressController

func (*IngressController) Reconcile

func (i *IngressController) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

type IngressControllerOptions

type IngressControllerOptions struct {
	IngressClassName    string
	ControllerClassName string
	CFTunnelClient      *cloudflarecontroller.TunnelClient
}

Jump to

Keyboard shortcuts

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