Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for CRD API docs generator #877

Merged
merged 1 commit into from
Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/apis/stable/v1alpha1/gameserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var (
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// GameServer is the data structure for a gameserver resource
// GameServer is the data structure for a GameServer resource
type GameServer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
6 changes: 3 additions & 3 deletions pkg/apis/stable/v1alpha1/gameserverset.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
// +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/extensions/v1beta1.Scale,result=k8s.io/api/extensions/v1beta1.Scale
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// GameServerSet is the data structure a set of GameServers
// GameServerSet is the data structure for a set of GameServers.
// This matches philosophically with the relationship between
// Depoyments and ReplicaSets
type GameServerSet struct {
Expand All @@ -54,7 +54,7 @@ type GameServerSetList struct {
Items []GameServerSet `json:"items"`
}

// GameServerSetSpec the specification for
// GameServerSetSpec the specification for GameServerSet
type GameServerSetSpec struct {
// Replicas are the number of GameServers that should be in this set
Replicas int32 `json:"replicas"`
Expand Down Expand Up @@ -93,7 +93,7 @@ func (gsSet *GameServerSet) ValidateUpdate(new *GameServerSet) ([]metav1.StatusC
return causes, len(causes) == 0
}

// Validate validates when Create occur. Check the name szie
// Validate validates when Create occur. Check the name size
func (gsSet *GameServerSet) Validate() ([]metav1.StatusCause, bool) {
causes := validateName(gsSet)

Expand Down
Loading