-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
We currently have all ListenerClass
spec fields at the top level. Most are passed through to the Service
and most are prefixed with service
while others are not.
Perhaps we should consider one of these options:
- Prefix all fields that will be passed to
Service
withservice
. - Move
Service
related fields down toserviceOverrides
- We need to consider if there are
Service
fields that should not be overridable.
- We need to consider if there are
Option 1
apiVersion: listeners.stackable.tech/v1alpha1
kind: ListenerClass
metadata:
name: aws-ec2-nlb-public
spec:
# 👇 This is not passed to the Service
preferredAddressType: HostnameConservative
serviceType: LoadBalancer
# 👇 prefix with `service`
serviceLoadBalancerClass: eks.amazonaws.com/nlb
serviceLoadBalancerAllocateNodePorts: false
# 👆
serviceExternalTrafficPolicy: Local
serviceAnotations: {}
Option 2
apiVersion: listeners.stackable.tech/v1alpha1
kind: ListenerClass
metadata:
name: aws-ec2-nlb-public
spec:
# 👇 This remains unchanged, not passed to the Service
preferredAddressType: HostnameConservative
# 👇 New
serviceOverrides:
type: LoadBalancer
loadBalancerClass: eks.amazonaws.com/nlb
loadBalancerAllocateNodePorts: false
externalTrafficPolicy: Local
annotations: {}
Metadata
Metadata
Assignees
Labels
No labels