config

package
v0.0.0-...-47a937c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfDetectOnly

func CheckIfDetectOnly(mode string) bool

Types

type AdmissionControllerConfig

type AdmissionControllerConfig struct {
	InScopeNamespaceSelector NamespaceSelector `json:"inScopeNamespaceSelector,omitempty"`
	Allow                    Allow             `json:"allow,omitempty"`
	SideEffect               SideEffectConfig  `json:"sideEffect,omitempty"`
	Mode                     string            `json:"mode,omitempty"`
	Options                  []string          `json:"option,omitempty"`
}

type Allow

type Allow struct {
	Kinds []metav1.GroupVersionKind `json:"kinds,omitempty"`
}

func (Allow) Match

func (allow Allow) Match(kind metav1.GroupVersionKind) bool

type NamespaceSelector

type NamespaceSelector struct {
	Include []string `json:"include,omitempty"`
	Exclude []string `json:"exclude,omitempty"`
}

func (NamespaceSelector) Match

func (ns NamespaceSelector) Match(rns string) bool

type SideEffectConfig

type SideEffectConfig struct {
	// ManifestIntegrityProfile
	UpdateMIPStatusForDeniedRequest bool `json:"updateMIPStatusForDeniedRequest"`
}

Jump to

Keyboard shortcuts

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