Skip to content

Commit

Permalink
refactor(listener): add fields to crd (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
whg517 authored Dec 25, 2024
1 parent e2aa38f commit 68cfa01
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,31 @@ spec:
spec:
description: ListenerClassSpec defines the desired state of ListenerClass
properties:
preferredAddressType:
default: HostnameConservative
description: |-
When preferredAddressType is set to HostnameConservative, the controller will
attempt to use the ip only `ListenerClassSpec.ServiceType` is NodePort,
otherwise it will use the hostname.
enum:
- HostnameConservative
- Hostname
- IP
type: string
serviceAnnotations:
additionalProperties:
type: string
type: object
serviceExternalTrafficPolicy:
default: Local
description: |-
ServiceExternalTrafficPolicy describes how nodes distribute service traffic they
receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs,
and LoadBalancer IPs.
enum:
- Local
- Cluster
type: string
serviceType:
description: Service Type string describes ingress methods for a service
enum:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
properties:
className:
type: string
extraPodMatchLabels:
extraPodSelectorLabels:
additionalProperties:
type: string
type: object
Expand All @@ -63,6 +63,9 @@ spec:
- protocol
type: object
type: array
publishNotReadyAddresses:
default: true
type: boolean
required:
- className
type: object
Expand Down

0 comments on commit 68cfa01

Please sign in to comment.