File tree 3 files changed +24
-0
lines changed
crates/stackable-operator
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
5
5
## [ Unreleased]
6
6
7
+ ### Added
8
+
9
+ - Added ` ListenerClass.spec.loadBalancerClass ` and ` .loadBalancerAllocateNodePorts ` fields ([ #986 ] ).
10
+
7
11
### Changed
8
12
9
13
- BREAKING: Version common CRD structs and enums ([ #968 ] ).
@@ -18,6 +22,7 @@ All notable changes to this project will be documented in this file.
18
22
- Re-export versioned common CRD enums ([ #1029 ] ).
19
23
20
24
[ #968 ] : https://github.com/stackabletech/operator-rs/pull/968
25
+ [ #986 ] : https://github.com/stackabletech/operator-rs/pull/986
21
26
[ #1025 ] : https://github.com/stackabletech/operator-rs/pull/1025
22
27
[ #1029 ] : https://github.com/stackabletech/operator-rs/pull/1029
23
28
Original file line number Diff line number Diff line change @@ -31,6 +31,21 @@ pub mod versioned {
31
31
pub struct ListenerClassSpec {
32
32
pub service_type : core_v1alpha1:: ServiceType ,
33
33
34
+ /// Configures whether a LoadBalancer service should also allocate node ports (like NodePort).
35
+ ///
36
+ /// Ignored unless serviceType is LoadBalancer.
37
+ // TODO: v1alpha2: Move into ServiceType::LoadBalancer
38
+ #[ serde( default = "ListenerClassSpec::default_load_balancer_allocate_node_ports" ) ]
39
+ pub load_balancer_allocate_node_ports : bool ,
40
+
41
+ /// Configures a custom Service loadBalancerClass, which can be used to access secondary
42
+ /// load balancer controllers that are installed in the cluster, or to provision
43
+ /// custom addresses manually.
44
+ ///
45
+ /// Ignored unless serviceType is LoadBalancer.
46
+ // TODO: v1alpha2: Move into ServiceType::LoadBalancer
47
+ pub load_balancer_class : Option < String > ,
48
+
34
49
/// Annotations that should be added to the Service object.
35
50
#[ serde( default ) ]
36
51
pub service_annotations : BTreeMap < String , String > ,
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ impl ListenerClassSpec {
12
12
PreferredAddressType :: HostnameConservative
13
13
}
14
14
15
+ pub ( super ) const fn default_load_balancer_allocate_node_ports ( ) -> bool {
16
+ true
17
+ }
18
+
15
19
/// Resolves [`Self::preferred_address_type`]'s "smart" modes depending on the rest of `self`.
16
20
pub fn resolve_preferred_address_type ( & self ) -> AddressType {
17
21
self . preferred_address_type . resolve ( self )
You can’t perform that action at this time.
0 commit comments