From 0b0884f1462adced0843f6a367529d0b1264d475 Mon Sep 17 00:00:00 2001 From: "Bobby (Babak) Salamat" Date: Sun, 18 Feb 2018 17:47:06 -0800 Subject: [PATCH] Changed API doc --- pkg/apis/scheduling/types.go | 4 ++-- staging/src/k8s.io/api/scheduling/v1alpha1/types.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/apis/scheduling/types.go b/pkg/apis/scheduling/types.go index 1e81eb66190..d5db894a8d0 100644 --- a/pkg/apis/scheduling/types.go +++ b/pkg/apis/scheduling/types.go @@ -46,8 +46,8 @@ type PriorityClass struct { // globalDefault specifies whether this PriorityClass should be considered as // the default priority for pods that do not have any priority class. - // Only one PriorityClass with can be marked as `globalDefault`. Due to race conditions, more than - // one PriorityClasses might be created with their `globalDefault` field set to true. In that case, + // Only one PriorityClass can be marked as `globalDefault`. However, if more than + // one PriorityClasses exists with their `globalDefault` field set to true, // the smallest value of such global default PriorityClasses will be used as the default priority. // +optional GlobalDefault bool diff --git a/staging/src/k8s.io/api/scheduling/v1alpha1/types.go b/staging/src/k8s.io/api/scheduling/v1alpha1/types.go index bba67b4df5d..21e3df0af96 100644 --- a/staging/src/k8s.io/api/scheduling/v1alpha1/types.go +++ b/staging/src/k8s.io/api/scheduling/v1alpha1/types.go @@ -39,8 +39,8 @@ type PriorityClass struct { // globalDefault specifies whether this PriorityClass should be considered as // the default priority for pods that do not have any priority class. - // Only one PriorityClass with can be marked as `globalDefault`. Due to race conditions, more than - // one PriorityClasses might be created with their `globalDefault` field set to true. In that case, + // Only one PriorityClass can be marked as `globalDefault`. However, if more than + // one PriorityClasses exists with their `globalDefault` field set to true, // the smallest value of such global default PriorityClasses will be used as the default priority. // +optional GlobalDefault bool `json:"globalDefault,omitempty" protobuf:"bytes,3,opt,name=globalDefault"`