Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Jul 31, 2018
1 parent 99cd36f commit 22f901f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/entity/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Pod struct {
Networks []PodNetwork `bson:"networks,omitempty" json:"networks" validate:"required,dive,required"`
RestartPolicy string `bson:"restartPolicy" json:"restartPolicy" validate:"required,eq=Always|eq=OnFailure|eq=Never`
Capability bool `bson:"capability" json:"capability" validate:"-"`
NetworkType string `bson:"networkType" json:"networkType" validate:"required,eq=Host|Cluster|Custom`
NetworkType string `bson:"networkType" json:"networkType" validate:"required,eq=host|cluster|custom`
NodeAffinity []string `bson:"nodeAffinity" json:"nodeAffinity" validate:"required"`
}

Expand Down
2 changes: 1 addition & 1 deletion src/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func CreatePod(sp *serviceprovider.Container, pod *entity.Pod) error {
nodeNames = utils.Intersection(nodeNames, tmp)
}
case entity.PodClusterNetwork:
//For cluster network, we won't set the nodeAffinity and any netwokr options.
//For cluster network, we won't set the nodeAffinity and any network options.
default:
err = fmt.Errorf("UnSupported Pod NetworkType %s", pod.NetworkType)
}
Expand Down

0 comments on commit 22f901f

Please sign in to comment.