router_controller

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IngressReady    string = "ingress-ready"
	BasicAuthReady  string = "basic-auth-ready"
	DefaultsPatched string = "patch-defaults"

	Finalizing         string = "finalizing"
	CheckHttpsCerteady string = "https-cert-ready"

	EnsuringHttpsCertsIfEnabled string = "ensuring-https-certs-if-enabled"
	SettingUpBasicAuthIfEnabled string = "setting-up-basic-auth-if-enabled"
	CreatingIngressResources    string = "creating-ingress-resources"

	CleaningUpResources string = "cleaning-up-resourcess"
)

Variables

View Source
var (
	ApplyChecklist = []rApi.CheckMeta{
		{Name: DefaultsPatched, Title: "Defaults Patched"},
		{Name: EnsuringHttpsCertsIfEnabled, Title: "Ensuring HTTPS Cert if enabled"},
		{Name: SettingUpBasicAuthIfEnabled, Title: "Setting Up Basic Auth if enabled"},
	}

	DeleteChecklist = []rApi.CheckMeta{
		{Name: CleaningUpResources, Title: "Cleaning Up Resources"},
	}
)

Functions

func FilterDomains

func FilterDomains(wildcardPatterns []string, domains []string) (wildcardDomains, nonWildcardDomains []string)

func GenNginxIngressAnnotations

func GenNginxIngressAnnotations(obj *crdsv1.Router) map[string]string

func IsHttpsCertReady

func IsHttpsCertReady(cert *certmanagerv1.Certificate) (bool, error)

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme

	Name string
	Env  *env.Env
	// contains filtered or unexported fields
}

func (*Reconciler) EnsuringHttpsCerts

func (r *Reconciler) EnsuringHttpsCerts(req *rApi.Request[*crdsv1.Router]) stepResult.Result

func (*Reconciler) GetName

func (r *Reconciler) GetName() string

func (*Reconciler) Reconcile

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

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, logger logging.Logger) error

Jump to

Keyboard shortcuts

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