mirror of https://github.com/k3s-io/k3s
fix typo:evaluator
parent
d7b3c62c56
commit
e3b25ed4af
|
@ -139,7 +139,7 @@ func (p *pvcEvaluator) GroupKind() schema.GroupKind {
|
|||
return api.Kind("PersistentVolumeClaim")
|
||||
}
|
||||
|
||||
// Handles returns true if the evalutor should handle the specified operation.
|
||||
// Handles returns true if the evaluator should handle the specified operation.
|
||||
func (p *pvcEvaluator) Handles(operation admission.Operation) bool {
|
||||
return admission.Create == operation
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ func (p *podEvaluator) GroupKind() schema.GroupKind {
|
|||
return api.Kind("Pod")
|
||||
}
|
||||
|
||||
// Handles returns true of the evalutor should handle the specified operation.
|
||||
// Handles returns true of the evaluator should handle the specified operation.
|
||||
func (p *podEvaluator) Handles(operation admission.Operation) bool {
|
||||
// TODO: update this if/when pods support resizing resource requirements.
|
||||
return admission.Create == operation
|
||||
|
|
|
@ -92,7 +92,7 @@ func (p *serviceEvaluator) GroupKind() schema.GroupKind {
|
|||
return api.Kind("Service")
|
||||
}
|
||||
|
||||
// Handles returns true of the evalutor should handle the specified operation.
|
||||
// Handles returns true of the evaluator should handle the specified operation.
|
||||
func (p *serviceEvaluator) Handles(operation admission.Operation) bool {
|
||||
// We handle create and update because a service type can change.
|
||||
return admission.Create == operation || admission.Update == operation
|
||||
|
|
Loading…
Reference in New Issue