app

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerManager

func NewControllerManager(scheme *runtime.Scheme, metricsAddr OperatorMetricsAddr, healthProbeAddr OperatorHealthProbeAddr, enableLeaderElection EnableLeaderElection, log logr.Logger) (manager.Manager, error)

NewControllerManager instantiates a new controller manager.

func NewLogger

func NewLogger(enableDevModeLog EnableDevModeLog) logr.Logger

NewLogger instantiates a new logger.

Types

type DryRunRequest added in v0.9.0

type DryRunRequest struct {
	ResourceManifest interface{}        `json:"resourceManifest" binding:"required"`
	ModRules         []*v1beta1.ModRule `json:"modRules" binding:"required"`
}

DryRunRequest represents a /v1/dryrun request payload.

type DryRunResponse added in v0.9.0

type DryRunResponse struct {
	Patch      interface{} `json:"patch"`
	Diff       string      `json:"diff"`
	Rejections []string    `json:"rejections"`
}

DryRunResponse represents the resonse of a successful /v1/dryrun

type EnableDevModeLog

type EnableDevModeLog bool

type EnableLeaderElection

type EnableLeaderElection bool

type KubeModOperatorApp added in v0.9.0

type KubeModOperatorApp struct {
}

KubeModOperatorApp is the DI container of kubemod operator application state.

func InitializeKubeModOperatorApp added in v0.9.0

func InitializeKubeModOperatorApp(scheme *runtime.Scheme, metricsAddr OperatorMetricsAddr, healthProbeAddr OperatorHealthProbeAddr, clusterModRulesNamespace core.ClusterModRulesNamespace, enableLeaderElection EnableLeaderElection, log logr.Logger) (*KubeModOperatorApp, error)

func NewKubeModOperatorApp added in v0.9.0

func NewKubeModOperatorApp(
	scheme *runtime.Scheme,
	manager manager.Manager,
	modRuleReconciler *controllers.ModRuleReconciler,
	coreDragnetWebhookHandler *core.DragnetWebhookHandler,
	corePodBindingWebhookHandler *core.PodBindingWebhookHandler,
	log logr.Logger,
) (*KubeModOperatorApp, error)

NewKubeModOperatorApp instantiates a kubemod application.

type KubeModWebApp added in v0.9.0

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

KubeModWebApp is the DI container of kubemod web application state.

func InitializeKubeModWebApp added in v0.9.0

func InitializeKubeModWebApp(webAppAddr string, enableDevModeLog EnableDevModeLog, clusterModRulesNamespace core.ClusterModRulesNamespace, log logr.Logger) (*KubeModWebApp, error)

func NewKubeModWebApp added in v0.9.0

func NewKubeModWebApp(
	webAppAddr string,
	enableDevModeLog EnableDevModeLog,
	clusterModRulesNamespace core.ClusterModRulesNamespace,
	log logr.Logger,
	modRuleStoreItemFactory *core.ModRuleStoreItemFactory,
) (*KubeModWebApp, error)

NewKubeModWebApp instantiates a kubemod web application.

type OperatorHealthProbeAddr added in v0.10.0

type OperatorHealthProbeAddr string

type OperatorMetricsAddr added in v0.9.0

type OperatorMetricsAddr string

Jump to

Keyboard shortcuts

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