controllers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperatorName              = "website-operator"
	AppNameBuildScript        = "build-script"
	AppNameRepoChecker        = "repo-checker"
	AppNameRepoCheckerService = "repo-checker-service"
	AppNameNginx              = "nginx"
	AppNameNginxService       = "nginx-service"
	ManagedByKey              = "app.kubernetes.io/managed-by"
	AppNameKey                = "app.kubernetes.io/name"
	InstanceKey               = "app.kubernetes.io/instance"
	RepoCheckerPort           = 9090
	RepoCheckerSuffix         = "-repo-checker"
	BuildScriptName           = "build"
	AfterBuildScriptName      = "after-build"
	NginxPort                 = 8080
	AnnChecksumConfig         = "checksum/config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoCheckerClient added in v0.3.0

type RepoCheckerClient struct {
}

func (RepoCheckerClient) GetLatestRevision added in v0.3.0

func (c RepoCheckerClient) GetLatestRevision(ctx context.Context, webSite *websitev1beta1.WebSite) (string, error)

type RevisionClient added in v0.3.0

type RevisionClient interface {
	GetLatestRevision(ctx context.Context, webSite *websitev1beta1.WebSite) (string, error)
}

type WebSiteReconciler

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

WebSiteReconciler reconciles a WebSite object

func NewWebSiteReconciler

func NewWebSiteReconciler(client client.Client, log logr.Logger, scheme *runtime.Scheme, nginxContainerImage string, repoCheckerContainerImage string, operatorNamespace string, revCli RevisionClient) *WebSiteReconciler

func (*WebSiteReconciler) Reconcile

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

func (*WebSiteReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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