...

Source file src/k8s.io/kubernetes/plugin/pkg/admission/podtolerationrestriction/doc.go

Documentation: k8s.io/kubernetes/plugin/pkg/admission/podtolerationrestriction

     1  /*
     2  Copyright 2018 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Package podtolerationrestriction is a plugin that first verifies
    18  // any conflict between a pod's tolerations and its namespace's
    19  // tolerations, and rejects the pod if there's a conflict.  If there's
    20  // no conflict, the pod's tolerations are merged with its namespace's
    21  // toleration. Resulting pod's tolerations are verified against its
    22  // namespace's whitelist of tolerations. If the verification is
    23  // successful, the pod is admitted otherwise rejected. If a namespace
    24  // does not have associated default or whitelist of tolerations, then
    25  // cluster level default or whitelist of tolerations are used instead
    26  // if specified. Tolerations to a namespace are assigned via
    27  // scheduler.alpha.kubernetes.io/defaultTolerations and
    28  // scheduler.alpha.kubernetes.io/tolerationsWhitelist annotations
    29  // keys.
    30  package podtolerationrestriction // import "k8s.io/kubernetes/plugin/pkg/admission/podtolerationrestriction"
    31  

View as plain text