Documentation ¶
Index ¶
- Variables
- func IsAdmissionPluginActivated(name string, config io.Reader) bool
- func NewAdmissionChains(options configapi.MasterConfig, ...) (admission.Interface, error)
- func NewPluginInitializer(options configapi.MasterConfig, privilegedLoopbackConfig *rest.Config, ...) (admission.PluginInitializer, error)
- func RegisterAllAdmissionPlugins(plugins *admission.Plugins)
- type DefaultInformerAccess
- func (i *DefaultInformerAccess) GetInternalKubernetesInformers() kinternalinformers.SharedInformerFactory
- func (i *DefaultInformerAccess) GetInternalOpenshiftImageInformers() imageinformer.SharedInformerFactory
- func (i *DefaultInformerAccess) GetInternalOpenshiftQuotaInformers() quotainformer.SharedInformerFactory
- func (i *DefaultInformerAccess) GetInternalOpenshiftSecurityInformers() securityinformer.SharedInformerFactory
- func (i *DefaultInformerAccess) GetKubernetesInformers() kexternalinformers.SharedInformerFactory
- func (i *DefaultInformerAccess) GetOpenshiftUserInformers() userinformer.SharedInformerFactory
- type InformerAccess
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // these are admission plugins that cannot be applied until after the kubeapiserver starts. // TODO if nothing comes to mind in 3.10, kill this SkipRunLevelZeroPlugins = sets.NewString() // these are admission plugins that cannot be applied until after the openshiftapiserver apiserver starts. SkipRunLevelOnePlugins = sets.NewString( "ProjectRequestLimit", "openshift.io/RestrictSubjectBindings", "openshift.io/ClusterResourceQuota", imagepolicy.PluginName, overrideapi.PluginName, "OriginPodNodeEnvironment", "RunOnceDuration", sccadmission.PluginName, "SCCExecRestrictions", ) )
View Source
var ( DefaultOnPlugins = sets.NewString( "openshift.io/JenkinsBootstrapper", "openshift.io/BuildConfigSecretInjector", "BuildByStrategy", storageclassdefaultadmission.PluginName, imageadmission.PluginName, lifecycle.PluginName, "OriginPodNodeEnvironment", "PodNodeSelector", "Priority", serviceadmit.ExternalIPPluginName, serviceadmit.RestrictedEndpointsPluginName, "LimitRanger", "ServiceAccount", noderestriction.PluginName, securityadmission.PluginName, "StorageObjectInUseProtection", "SCCExecRestrictions", "PersistentVolumeLabel", "DefaultStorageClass", "OwnerReferencesPermissionEnforcement", "PodTolerationRestriction", "ResourceQuota", "openshift.io/ClusterResourceQuota", "openshift.io/IngressAdmission", ) // DefaultOffPlugins includes plugins which require explicit configuration to run // if you wire them incorrectly, they may prevent the server from starting DefaultOffPlugins = sets.NewString( "ProjectRequestLimit", "RunOnceDuration", "PodNodeConstraints", overrideapi.PluginName, imagepolicyapi.PluginName, "AlwaysPullImages", "ImagePolicyWebhook", "openshift.io/RestrictSubjectBindings", "LimitPodHardAntiAffinityTopology", "DefaultTolerationSeconds", "PodPreset", "EventRateLimit", "PodSecurityPolicy", "Initializers", "ValidatingAdmissionWebhook", "MutatingAdmissionWebhook", "ExtendedResourceToleration", expandpvcadmission.PluginName, "AlwaysAdmit", "AlwaysDeny", "DenyEscalatingExec", "DenyExecOnPrivileged", "NamespaceAutoProvision", "NamespaceExists", "SecurityContextDeny", ) )
View Source
var OriginAdmissionPlugins = admission.NewPlugins()
TODO register this per apiserver or at least per process
Functions ¶
func NewAdmissionChains ¶
func NewAdmissionChains( options configapi.MasterConfig, admissionInitializer admission.PluginInitializer, admissionDecorator admission.Decorator, ) (admission.Interface, error)
func NewPluginInitializer ¶
func NewPluginInitializer( options configapi.MasterConfig, privilegedLoopbackConfig *rest.Config, informers InformerAccess, authorizer authorizer.Authorizer, projectCache *projectcache.ProjectCache, restMapper meta.RESTMapper, clusterQuotaMappingController *clusterquotamapping.ClusterQuotaMappingController, ) (admission.PluginInitializer, error)
func RegisterAllAdmissionPlugins ¶
RegisterAllAdmissionPlugins registers all admission plugins
Types ¶
type DefaultInformerAccess ¶
type DefaultInformerAccess struct { InternalKubernetesInformers kinternalinformers.SharedInformerFactory KubernetesInformers kexternalinformers.SharedInformerFactory InternalOpenshiftImageInformers imageinformer.SharedInformerFactory InternalOpenshiftQuotaInformers quotainformer.SharedInformerFactory InternalOpenshiftSecurityInformers securityinformer.SharedInformerFactory OpenshiftUserInformers userinformer.SharedInformerFactory }
func (*DefaultInformerAccess) GetInternalKubernetesInformers ¶
func (i *DefaultInformerAccess) GetInternalKubernetesInformers() kinternalinformers.SharedInformerFactory
func (*DefaultInformerAccess) GetInternalOpenshiftImageInformers ¶
func (i *DefaultInformerAccess) GetInternalOpenshiftImageInformers() imageinformer.SharedInformerFactory
func (*DefaultInformerAccess) GetInternalOpenshiftQuotaInformers ¶
func (i *DefaultInformerAccess) GetInternalOpenshiftQuotaInformers() quotainformer.SharedInformerFactory
func (*DefaultInformerAccess) GetInternalOpenshiftSecurityInformers ¶
func (i *DefaultInformerAccess) GetInternalOpenshiftSecurityInformers() securityinformer.SharedInformerFactory
func (*DefaultInformerAccess) GetKubernetesInformers ¶
func (i *DefaultInformerAccess) GetKubernetesInformers() kexternalinformers.SharedInformerFactory
func (*DefaultInformerAccess) GetOpenshiftUserInformers ¶
func (i *DefaultInformerAccess) GetOpenshiftUserInformers() userinformer.SharedInformerFactory
type InformerAccess ¶
type InformerAccess interface { GetInternalKubernetesInformers() kinternalinformers.SharedInformerFactory GetKubernetesInformers() kexternalinformers.SharedInformerFactory GetInternalOpenshiftImageInformers() imageinformer.SharedInformerFactory GetInternalOpenshiftQuotaInformers() quotainformer.SharedInformerFactory GetInternalOpenshiftSecurityInformers() securityinformer.SharedInformerFactory GetOpenshiftUserInformers() userinformer.SharedInformerFactory }
Click to show internal directories.
Click to hide internal directories.