Skip to content

Commit

Permalink
Merge pull request #653 from hzliangbin/master
Browse files Browse the repository at this point in the history
add a description field for GatewayClass
  • Loading branch information
k8s-ci-robot authored May 14, 2021
2 parents 0de1bfc + b121f69 commit 6917fa3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apis/v1alpha2/gatewayclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Controller",type=string,JSONPath=`.spec.controller`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
// +kubebuilder:printcolumn:name="Description",type=string,JSONPath=`.spec.description`,priority=1

// GatewayClass describes a class of Gateways available to the user
// for creating Gateway resources.
Expand Down Expand Up @@ -79,6 +80,13 @@ type GatewayClassSpec struct {
//
// +optional
ParametersRef *ParametersReference `json:"parametersRef,omitempty"`

// Description helps describe a GatewayClass with more details.
//
//
// +kubebuilder:validation:MaxLength=64
// +optional
Description *string `json:"description,omitempty"`
}

// ParametersReference identifies an API object containing controller-specific
Expand Down
5 changes: 5 additions & 0 deletions apis/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions config/crd/bases/networking.x-k8s.io_gatewayclasses.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6917fa3

Please sign in to comment.