Skip to content

Commit

Permalink
refactor(listener): add listener read field and update pod select fie…
Browse files Browse the repository at this point in the history
…ld (#293)
  • Loading branch information
whg517 authored Dec 24, 2024
1 parent d210053 commit abffbcc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/authentication/v1alpha1/zz_generated.deepcopy.go

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

6 changes: 5 additions & 1 deletion pkg/apis/listeners/v1alpha1/listener_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ type ListenerSpec struct {
ClassName string `json:"className,omitempty"`

// +kubebuilder:validation:Optional
ExtraPodMatchLabels map[string]string `json:"extraPodMatchLabels,omitempty"`
ExtraPodSelectorLabels map[string]string `json:"extraPodSelectorLabels,omitempty"`

// +kubebuilder:validation:Optional
Ports []PortSpec `json:"ports,omitempty"`

// +kubebuilder:validation:Optional
// +kubebuilder:default=true
PublishNotReadyAddresses bool `json:"publishNotReadyAddresses,omitempty"`
}

type PortSpec struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/listeners/v1alpha1/zz_generated.deepcopy.go

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

0 comments on commit abffbcc

Please sign in to comment.