Skip to content

Commit

Permalink
Make Gateway.Status a subresource
Browse files Browse the repository at this point in the history
  • Loading branch information
Fangyuan Li committed Apr 30, 2020
1 parent 917c67f commit 78af848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/gateway_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
)

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status

// Gateway represents an instantiation of a service-traffic handling infrastructure.
type Gateway struct {
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/networking.x-k8s.io_gateways.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ spec:
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
Expand Down

0 comments on commit 78af848

Please sign in to comment.