admission

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddPolicy = iota
	RemovePolicy
)

Variables

This section is empty.

Functions

func IsPolicyServerNotReady

func IsPolicyServerNotReady(err error) bool

IsPolicyServerNotReady returns true when the given error is of type PolicyServerNotReadyError

Types

type AdmissionReconciler

type AdmissionReconciler struct {
	Client               client.Client
	DeploymentsNamespace string
	Log                  logr.Logger
}

func (*AdmissionReconciler) Reconcile

func (r *AdmissionReconciler) Reconcile(ctx context.Context, admissionPolicy *chimerav1alpha1.AdmissionPolicy) error

func (*AdmissionReconciler) ReconcileDeletion

func (r *AdmissionReconciler) ReconcileDeletion(ctx context.Context, admissionPolicy *chimerav1alpha1.AdmissionPolicy) error

type PolicyServerDeploymentSettings

type PolicyServerDeploymentSettings struct {
	Replicas int32
	Image    string
}

type PolicyServerNotReadyError

type PolicyServerNotReadyError struct {
	Message string
}

PolicyServerNotReadyError error is raised when the PolicyServer deployment is not yet ready

func (*PolicyServerNotReadyError) Error

func (e *PolicyServerNotReadyError) Error() string

Error returns a human description of the error

func (*PolicyServerNotReadyError) PolicyServerNotReady

func (e *PolicyServerNotReadyError) PolicyServerNotReady() bool

PolicyServerNotReady returns true if the error is a NoVersionFoundError instance

Jump to

Keyboard shortcuts

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