mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #42132 from timchenxiaoyu/fixtypo
Automatic merge from submit-queue fix typo:evaluator
This commit is contained in:
commit
7f626cf836
@ -139,7 +139,7 @@ func (p *pvcEvaluator) GroupKind() schema.GroupKind {
|
|||||||
return api.Kind("PersistentVolumeClaim")
|
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 {
|
func (p *pvcEvaluator) Handles(operation admission.Operation) bool {
|
||||||
return admission.Create == operation
|
return admission.Create == operation
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ func (p *podEvaluator) GroupKind() schema.GroupKind {
|
|||||||
return api.Kind("Pod")
|
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 {
|
func (p *podEvaluator) Handles(operation admission.Operation) bool {
|
||||||
// TODO: update this if/when pods support resizing resource requirements.
|
// TODO: update this if/when pods support resizing resource requirements.
|
||||||
return admission.Create == operation
|
return admission.Create == operation
|
||||||
|
@ -92,7 +92,7 @@ func (p *serviceEvaluator) GroupKind() schema.GroupKind {
|
|||||||
return api.Kind("Service")
|
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 {
|
func (p *serviceEvaluator) Handles(operation admission.Operation) bool {
|
||||||
// We handle create and update because a service type can change.
|
// We handle create and update because a service type can change.
|
||||||
return admission.Create == operation || admission.Update == operation
|
return admission.Create == operation || admission.Update == operation
|
||||||
|
@ -84,7 +84,7 @@ start_kubelet() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# wait_kubelet retris for 10 times for kubelet to be ready by checking http://127.0.0.1:10255/healthz.
|
# wait_kubelet retries for 10 times for kubelet to be ready by checking http://127.0.0.1:10255/healthz.
|
||||||
wait_kubelet() {
|
wait_kubelet() {
|
||||||
echo "Health checking kubelet..."
|
echo "Health checking kubelet..."
|
||||||
healthCheckURL=http://127.0.0.1:10255/healthz
|
healthCheckURL=http://127.0.0.1:10255/healthz
|
||||||
|
Loading…
Reference in New Issue
Block a user