conf

package
v1.5.2-1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdmissionControllerPrefix = "admissionController."
	WebHookPrefix             = AdmissionControllerPrefix + "webHook."
	FilteringPrefix           = AdmissionControllerPrefix + "filtering."
	AccessControlPrefix       = AdmissionControllerPrefix + "accessControl."

	// webhook configuration
	AMWebHookAMServiceName           = WebHookPrefix + "amServiceName"
	AMWebHookSchedulerServiceAddress = WebHookPrefix + "schedulerServiceAddress"

	// filtering configuration
	AMFilteringProcessNamespaces    = FilteringPrefix + "processNamespaces"
	AMFilteringBypassNamespaces     = FilteringPrefix + "bypassNamespaces"
	AMFilteringLabelNamespaces      = FilteringPrefix + "labelNamespaces"
	AMFilteringNoLabelNamespaces    = FilteringPrefix + "noLabelNamespaces"
	AMFilteringGenerateUniqueAppIds = FilteringPrefix + "generateUniqueAppId"

	// access control configuration
	AMAccessControlBypassAuth       = AccessControlPrefix + "bypassAuth"
	AMAccessControlTrustControllers = AccessControlPrefix + "trustControllers"
	AMAccessControlSystemUsers      = AccessControlPrefix + "systemUsers"
	AMAccessControlExternalUsers    = AccessControlPrefix + "externalUsers"
	AMAccessControlExternalGroups   = AccessControlPrefix + "externalGroups"
)
View Source
const (
	// webhook defaults
	DefaultWebHookAmServiceName           = "yunikorn-admission-controller-service"
	DefaultWebHookSchedulerServiceAddress = "yunikorn-service:9080"

	// filtering defaults
	DefaultFilteringProcessNamespaces    = ""
	DefaultFilteringBypassNamespaces     = "^kube-system$"
	DefaultFilteringLabelNamespaces      = ""
	DefaultFilteringNoLabelNamespaces    = ""
	DefaultFilteringGenerateUniqueAppIds = false

	// access control defaults
	DefaultAccessControlBypassAuth       = false
	DefaultAccessControlTrustControllers = true
	DefaultAccessControlSystemUsers      = "^system:serviceaccount:kube-system:"
	DefaultAccessControlExternalUsers    = ""
	DefaultAccessControlExternalGroups   = ""
)

Variables

This section is empty.

Functions

func GetPendingPolicyGroup

func GetPendingPolicyGroup(configs map[string]string) string

Types

type AdmissionControllerConf

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

func NewAdmissionControllerConf

func NewAdmissionControllerConf(configMaps []*v1.ConfigMap) *AdmissionControllerConf

func (*AdmissionControllerConf) DumpConfiguration

func (acc *AdmissionControllerConf) DumpConfiguration()

func (*AdmissionControllerConf) GetAmServiceName

func (acc *AdmissionControllerConf) GetAmServiceName() string

func (*AdmissionControllerConf) GetBypassAuth

func (acc *AdmissionControllerConf) GetBypassAuth() bool

func (*AdmissionControllerConf) GetBypassNamespaces

func (acc *AdmissionControllerConf) GetBypassNamespaces() []*regexp.Regexp

func (*AdmissionControllerConf) GetConfigMaps

func (acc *AdmissionControllerConf) GetConfigMaps() []*v1.ConfigMap

func (*AdmissionControllerConf) GetEnableConfigHotRefresh

func (acc *AdmissionControllerConf) GetEnableConfigHotRefresh() bool

func (*AdmissionControllerConf) GetExternalGroups

func (acc *AdmissionControllerConf) GetExternalGroups() []*regexp.Regexp

func (*AdmissionControllerConf) GetExternalUsers

func (acc *AdmissionControllerConf) GetExternalUsers() []*regexp.Regexp

func (*AdmissionControllerConf) GetGenerateUniqueAppIds added in v1.3.0

func (acc *AdmissionControllerConf) GetGenerateUniqueAppIds() bool

func (*AdmissionControllerConf) GetKubeConfig

func (acc *AdmissionControllerConf) GetKubeConfig() string

func (*AdmissionControllerConf) GetLabelNamespaces

func (acc *AdmissionControllerConf) GetLabelNamespaces() []*regexp.Regexp

func (*AdmissionControllerConf) GetNamespace

func (acc *AdmissionControllerConf) GetNamespace() string

func (*AdmissionControllerConf) GetNoLabelNamespaces

func (acc *AdmissionControllerConf) GetNoLabelNamespaces() []*regexp.Regexp

func (*AdmissionControllerConf) GetPolicyGroup

func (acc *AdmissionControllerConf) GetPolicyGroup() string

func (*AdmissionControllerConf) GetProcessNamespaces

func (acc *AdmissionControllerConf) GetProcessNamespaces() []*regexp.Regexp

func (*AdmissionControllerConf) GetSchedulerServiceAddress

func (acc *AdmissionControllerConf) GetSchedulerServiceAddress() string

func (*AdmissionControllerConf) GetSystemUsers

func (acc *AdmissionControllerConf) GetSystemUsers() []*regexp.Regexp

func (*AdmissionControllerConf) GetTrustControllers

func (acc *AdmissionControllerConf) GetTrustControllers() bool

func (*AdmissionControllerConf) RegisterHandlers

func (acc *AdmissionControllerConf) RegisterHandlers(configMaps informersv1.ConfigMapInformer)

Jump to

Keyboard shortcuts

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