namespace

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotAnnotatedForSidecarInjection is used when an object is expected to have sidecar injection annotation but it does not.
	ErrNotAnnotatedForSidecarInjection = errors.New("not annotated for sidecar injection")

	// ErrNotMonitoredByOSMController is used when namespace is expected to be monitored by OSM but is not.
	ErrNotMonitoredByOSMController = errors.New("not monitored by OSM controller")

	// ErrNamespacesNotInSameMesh is used when two given namespaces are not in the same mesh
	ErrNamespacesNotInSameMesh = errors.New("namespaces not monitored by the same mesh")
)

Functions

This section is empty.

Types

type MonitoredCheck

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

MonitoredCheck implements common.Runnable

func NewMonitoredCheck

func NewMonitoredCheck(client kubernetes.Interface, namespace string, meshName common.MeshName) MonitoredCheck

NewMonitoredCheck creates a MonitoredCheck which checks whether a namespace is monitored by certain OSM Controller.

func (MonitoredCheck) Description

func (check MonitoredCheck) Description() string

Description implements common.Runnable

func (MonitoredCheck) FixIt

func (check MonitoredCheck) FixIt() error

FixIt implements common.Runnable

func (MonitoredCheck) Run

func (check MonitoredCheck) Run() outcomes.Outcome

Run implements common.Runnable

func (MonitoredCheck) Suggestion

func (check MonitoredCheck) Suggestion() string

Suggestion implements common.Runnable

type NamespacesInSameMeshCheck

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

NamespacesInSameMeshCheck implements common.Runnable

func NewNamespacesInSameMeshCheck

func NewNamespacesInSameMeshCheck(client kubernetes.Interface, namespaceA string, namespaceB string) NamespacesInSameMeshCheck

NewNamespacesInSameMeshCheck creates a SidecarInjectionCheck which checks whether two pods are in the same mesh

func (NamespacesInSameMeshCheck) Description

func (check NamespacesInSameMeshCheck) Description() string

Description implements common.Runnable

func (NamespacesInSameMeshCheck) FixIt

func (check NamespacesInSameMeshCheck) FixIt() error

FixIt implements common.Runnable

func (NamespacesInSameMeshCheck) Run

Run implements common.Runnable

func (NamespacesInSameMeshCheck) Suggestion

func (check NamespacesInSameMeshCheck) Suggestion() string

Suggestion implements common.Runnable

type SidecarInjectionCheck

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

SidecarInjectionCheck implements common.Runnable

func NewSidecarInjectionCheck

func NewSidecarInjectionCheck(client kubernetes.Interface, namespace string) SidecarInjectionCheck

NewSidecarInjectionCheck creates a SidecarInjectionCheck which checks whether a namespace is enabled for sidecar injection.

func (SidecarInjectionCheck) Description

func (check SidecarInjectionCheck) Description() string

Description implements common.Runnable

func (SidecarInjectionCheck) FixIt

func (check SidecarInjectionCheck) FixIt() error

FixIt implements common.Runnable

func (SidecarInjectionCheck) Run

Run implements common.Runnable

func (SidecarInjectionCheck) Suggestion

func (check SidecarInjectionCheck) Suggestion() string

Suggestion implements common.Runnable

Jump to

Keyboard shortcuts

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