Skip to content

Commit 68cfa01

Browse files
authoredDec 25, 2024··
refactor(listener): add fields to crd (#102)
1 parent e2aa38f commit 68cfa01

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
 

‎charts/listener-operator/crds/listeners.kubedoop.dev_listenerclasses.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,31 @@ spec:
3939
spec:
4040
description: ListenerClassSpec defines the desired state of ListenerClass
4141
properties:
42+
preferredAddressType:
43+
default: HostnameConservative
44+
description: |-
45+
When preferredAddressType is set to HostnameConservative, the controller will
46+
attempt to use the ip only `ListenerClassSpec.ServiceType` is NodePort,
47+
otherwise it will use the hostname.
48+
enum:
49+
- HostnameConservative
50+
- Hostname
51+
- IP
52+
type: string
4253
serviceAnnotations:
4354
additionalProperties:
4455
type: string
4556
type: object
57+
serviceExternalTrafficPolicy:
58+
default: Local
59+
description: |-
60+
ServiceExternalTrafficPolicy describes how nodes distribute service traffic they
61+
receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs,
62+
and LoadBalancer IPs.
63+
enum:
64+
- Local
65+
- Cluster
66+
type: string
4667
serviceType:
4768
description: Service Type string describes ingress methods for a service
4869
enum:

‎charts/listener-operator/crds/listeners.kubedoop.dev_listeners.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
properties:
4242
className:
4343
type: string
44-
extraPodMatchLabels:
44+
extraPodSelectorLabels:
4545
additionalProperties:
4646
type: string
4747
type: object
@@ -63,6 +63,9 @@ spec:
6363
- protocol
6464
type: object
6565
type: array
66+
publishNotReadyAddresses:
67+
default: true
68+
type: boolean
6669
required:
6770
- className
6871
type: object

0 commit comments

Comments
 (0)
Please sign in to comment.