Skip to content

Commit

Permalink
Fix for CRD API docs generator
Browse files Browse the repository at this point in the history
Leave only one expiryVersion and one publishVersion tag.
  • Loading branch information
aLekSer committed Jul 5, 2019
1 parent f64963d commit 4c2d6a7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4,577 deletions.
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

0 comments on commit 4c2d6a7

Please sign in to comment.