Skip to content

Commit 338cd68

Browse files
committed
Fixed some typos.
1 parent 1f6d2f2 commit 338cd68

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/apis/stable/v1alpha1/types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ type GameServer struct {
8787

8888
// GameServerSpec is the spec for a GameServer resource
8989
type GameServerSpec struct {
90-
// Container specifies which Pod container is the game server. Only required if there is more than once
90+
// Container specifies which Pod container is the game server. Only required if there is more than one
9191
// container defined
9292
Container string `json:"container,omitempty"`
93-
// PortPolicy defined the policy for how the HostPort is populated.
93+
// PortPolicy defines the policy for how the HostPort is populated.
9494
// Dynamic port will allocate a HostPort within the selected MIN_PORT and MAX_PORT range passed to the controller
9595
// at installation time.
9696
// When `static` is the policy specified, `HostPort` is required, to specify the port that game clients will
@@ -195,7 +195,7 @@ func (gs *GameServer) Validate() (bool, []metav1.StatusCause) {
195195
causes = append(causes, metav1.StatusCause{
196196
Type: metav1.CauseTypeFieldValueInvalid,
197197
Field: "container",
198-
Message: "Container is required when using multiple containers in the pod templace",
198+
Message: "Container is required when using multiple containers in the pod template",
199199
})
200200
}
201201

@@ -235,7 +235,7 @@ func (gs *GameServer) FindGameServerContainer() (int, corev1.Container, error) {
235235
}
236236

237237
// Pod creates a new Pod from the PodTemplateSpec
238-
// attached for the
238+
// attached to the GameServer resource
239239
func (gs *GameServer) Pod(sidecars ...corev1.Container) (*corev1.Pod, error) {
240240
pod := &corev1.Pod{
241241
ObjectMeta: *gs.Spec.Template.ObjectMeta.DeepCopy(),

0 commit comments

Comments
 (0)