Merge pull request #54043 from x1957/fix_comment

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix the bad code comment 

**What this PR does / why we need it**:
fix the bad code comment in scheduler

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
None
```
This commit is contained in:
Kubernetes Submit Queue 2017-10-17 23:50:06 -07:00 committed by GitHub
commit d462bac780
2 changed files with 14 additions and 14 deletions

View File

@ -70,7 +70,7 @@ type PriorityPolicy struct {
Argument *PriorityArgument Argument *PriorityArgument
} }
// Represents the arguments that the different types of predicates take // PredicateArgument represents the arguments to configure predicate functions in scheduler policy configuration.
// Only one of its members may be specified // Only one of its members may be specified
type PredicateArgument struct { type PredicateArgument struct {
// The predicate that provides affinity for pods belonging to a service // The predicate that provides affinity for pods belonging to a service
@ -81,7 +81,7 @@ type PredicateArgument struct {
LabelsPresence *LabelsPresence LabelsPresence *LabelsPresence
} }
// Represents the arguments that the different types of priorities take. // PriorityArgument represents the arguments to configure priority functions in scheduler policy configuration.
// Only one of its members may be specified // Only one of its members may be specified
type PriorityArgument struct { type PriorityArgument struct {
// The priority function that ensures a good spread (anti-affinity) for pods belonging to a service // The priority function that ensures a good spread (anti-affinity) for pods belonging to a service
@ -92,14 +92,14 @@ type PriorityArgument struct {
LabelPreference *LabelPreference LabelPreference *LabelPreference
} }
// Holds the parameters that are used to configure the corresponding predicate // ServiceAffinity holds the parameters that are used to configure the corresponding predicate in scheduler policy configuration.
type ServiceAffinity struct { type ServiceAffinity struct {
// The list of labels that identify node "groups" // The list of labels that identify node "groups"
// All of the labels should match for the node to be considered a fit for hosting the pod // All of the labels should match for the node to be considered a fit for hosting the pod
Labels []string Labels []string
} }
// Holds the parameters that are used to configure the corresponding predicate // LabelsPresence holds the parameters that are used to configure the corresponding predicate in scheduler policy configuration.
type LabelsPresence struct { type LabelsPresence struct {
// The list of labels that identify node "groups" // The list of labels that identify node "groups"
// All of the labels should be either present (or absent) for the node to be considered a fit for hosting the pod // All of the labels should be either present (or absent) for the node to be considered a fit for hosting the pod
@ -108,13 +108,13 @@ type LabelsPresence struct {
Presence bool Presence bool
} }
// Holds the parameters that are used to configure the corresponding priority function // ServiceAntiAffinity holds the parameters that are used to configure the corresponding priority function
type ServiceAntiAffinity struct { type ServiceAntiAffinity struct {
// Used to identify node "groups" // Used to identify node "groups"
Label string Label string
} }
// Holds the parameters that are used to configure the corresponding priority function // LabelPreference holds the parameters that are used to configure the corresponding priority function
type LabelPreference struct { type LabelPreference struct {
// Used to identify node "groups" // Used to identify node "groups"
Label string Label string
@ -124,7 +124,7 @@ type LabelPreference struct {
Presence bool Presence bool
} }
// Holds the parameters used to communicate with the extender. If a verb is unspecified/empty, // ExtenderConfig holds the parameters used to communicate with the extender. If a verb is unspecified/empty,
// it is assumed that the extender chose not to provide that extension. // it is assumed that the extender chose not to provide that extension.
type ExtenderConfig struct { type ExtenderConfig struct {
// URLPrefix at which the extender is available // URLPrefix at which the extender is available

View File

@ -62,7 +62,7 @@ type PriorityPolicy struct {
Argument *PriorityArgument `json:"argument"` Argument *PriorityArgument `json:"argument"`
} }
// Represents the arguments that the different types of predicates take // PredicateArgument represents the arguments to configure predicate functions in scheduler policy configuration.
// Only one of its members may be specified // Only one of its members may be specified
type PredicateArgument struct { type PredicateArgument struct {
// The predicate that provides affinity for pods belonging to a service // The predicate that provides affinity for pods belonging to a service
@ -73,7 +73,7 @@ type PredicateArgument struct {
LabelsPresence *LabelsPresence `json:"labelsPresence"` LabelsPresence *LabelsPresence `json:"labelsPresence"`
} }
// Represents the arguments that the different types of priorities take. // PriorityArgument represents the arguments to configure priority functions in scheduler policy configuration.
// Only one of its members may be specified // Only one of its members may be specified
type PriorityArgument struct { type PriorityArgument struct {
// The priority function that ensures a good spread (anti-affinity) for pods belonging to a service // The priority function that ensures a good spread (anti-affinity) for pods belonging to a service
@ -84,14 +84,14 @@ type PriorityArgument struct {
LabelPreference *LabelPreference `json:"labelPreference"` LabelPreference *LabelPreference `json:"labelPreference"`
} }
// Holds the parameters that are used to configure the corresponding predicate // ServiceAffinity holds the parameters that are used to configure the corresponding predicate in scheduler policy configuration.
type ServiceAffinity struct { type ServiceAffinity struct {
// The list of labels that identify node "groups" // The list of labels that identify node "groups"
// All of the labels should match for the node to be considered a fit for hosting the pod // All of the labels should match for the node to be considered a fit for hosting the pod
Labels []string `json:"labels"` Labels []string `json:"labels"`
} }
// Holds the parameters that are used to configure the corresponding predicate // LabelsPresence holds the parameters that are used to configure the corresponding predicate in scheduler policy configuration.
type LabelsPresence struct { type LabelsPresence struct {
// The list of labels that identify node "groups" // The list of labels that identify node "groups"
// All of the labels should be either present (or absent) for the node to be considered a fit for hosting the pod // All of the labels should be either present (or absent) for the node to be considered a fit for hosting the pod
@ -100,13 +100,13 @@ type LabelsPresence struct {
Presence bool `json:"presence"` Presence bool `json:"presence"`
} }
// Holds the parameters that are used to configure the corresponding priority function // ServiceAntiAffinity holds the parameters that are used to configure the corresponding priority function
type ServiceAntiAffinity struct { type ServiceAntiAffinity struct {
// Used to identify node "groups" // Used to identify node "groups"
Label string `json:"label"` Label string `json:"label"`
} }
// Holds the parameters that are used to configure the corresponding priority function // LabelPreference holds the parameters that are used to configure the corresponding priority function
type LabelPreference struct { type LabelPreference struct {
// Used to identify node "groups" // Used to identify node "groups"
Label string `json:"label"` Label string `json:"label"`
@ -116,7 +116,7 @@ type LabelPreference struct {
Presence bool `json:"presence"` Presence bool `json:"presence"`
} }
// Holds the parameters used to communicate with the extender. If a verb is unspecified/empty, // ExtenderConfig holds the parameters used to communicate with the extender. If a verb is unspecified/empty,
// it is assumed that the extender chose not to provide that extension. // it is assumed that the extender chose not to provide that extension.
type ExtenderConfig struct { type ExtenderConfig struct {
// URLPrefix at which the extender is available // URLPrefix at which the extender is available