99metadata:
1010 name: {{ cluster }}
1111networking:
12- {% if not dualstack_baremetal |bool %}
13- machineCIDR: {{ extcidrnet }}
14- {% endif %}
1512 networkType: {{ network_type }}
16- {% if ipv 6_enabled |bool and not (ipv 4_baremetal |bool or dualstack_baremetal |bool ) %}
17- clusterNetwork:
18- - cidr: fd01::/48
19- hostPrefix: 64
20- serviceNetwork:
21- - fd02::/112
22- {% endif %}
23- {% if ipv 6_enabled |bool and dualstack_baremetal |bool %}
13+ {% if ((release_version .split ('.' )[0]|int == 4) and (release_version .split ('.' )[1]|int >= 12)) %}
2414 machineNetwork:
15+ {% if dualstack_baremetal |bool or ipv 4_baremetal |bool or not ipv 6_enabled |bool %}
2516 - cidr: {{ extcidrnet }}
17+ {% endif %}
18+ {% if dualstack_baremetal |bool or ipv 6_enabled |bool %}
2619 - cidr: {{ extcidrnet6 }}
20+ {% endif %}
21+ {% else %}
22+ machineCIDR: {{ extcidrnet }}
23+ {% endif %}
2724 clusterNetwork:
25+ {% if dualstack_baremetal |bool or ipv 4_baremetal |bool or not ipv 6_enabled |bool %}
2826 - cidr: 10.128.0.0/14
2927 hostPrefix: 23
28+ {% endif %}
29+ {% if dualstack_baremetal |bool or ipv 6_enabled |bool %}
3030 - cidr: fd02::/48
3131 hostPrefix: 64
32+ {% endif %}
3233 serviceNetwork:
34+ {% if dualstack_baremetal |bool or ipv 4_baremetal |bool or not ipv 6_enabled |bool %}
3335 - 172.30.0.0/16
36+ {% endif %}
37+ {% if dualstack_baremetal |bool or ipv 6_enabled |bool %}
3438 - fd03::/112
3539{% endif %}
3640{% if fips_enabled is defined and fips_enabled |bool %}
@@ -46,24 +50,24 @@ controlPlane:
4650 baremetal: {}
4751platform:
4852 baremetal:
49- {% if ((release_version .split ('.' )[0]|int == 4) and (release_version .split ('.' )[1]|int >= 12)) and dualstack_baremetal | bool and dualstack_vips | bool %}
53+ {% if ((release_version .split ('.' )[0]|int == 4) and (release_version .split ('.' )[1]|int >= 12)) %}
5054 apiVIPs:
51- {% if apivip is defined and apivip |ipv 4 %}
55+ {% if ( dualstack_baremetal | bool or ipv 4 _baremetal | bool or not ipv 6 _enabled | bool ) and apivip is defined and apivip |ipv 4 %}
5256 - {{ apivip }}
5357{% endif %}
54- {% if ipv 6_enabled |bool and apivip 6 is defined and apivip 6|ipv 6 %}
58+ {% if ( dualstack_baremetal | bool or ipv 6_enabled |bool ) and apivip 6 is defined and apivip 6|ipv 6 %}
5559 - {{ apivip6 }}
5660{% endif %}
5761 ingressVIPs:
58- {% if ingressvip is defined and ingressvip |ipv 4 %}
62+ {% if ( dualstack_baremetal | bool or ipv 4 _baremetal | bool or not ipv 6 _enabled | bool ) and ingressvip is defined and ingressvip |ipv 4 %}
5963 - {{ ingressvip }}
6064{% endif %}
61- {% if ipv 6_enabled |bool and ingressvip 6 is defined and ingressvip 6|ipv 6 %}
65+ {% if ( dualstack_baremetal | bool or ipv 6_enabled |bool ) and ingressvip 6 is defined and ingressvip 6|ipv 6 %}
6266 - {{ ingressvip6 }}
6367{% endif %}
6468{% else %}
65- apiVIP: {{ apivip }}
66- ingressVIP: {{ ingressvip }}
69+ apiVIP: {{ ( apivip is defined and apivip|ipv4) | ternary(apivip, apivip6) }}
70+ ingressVIP: {{ ( ingressvip is defined and ingressvip|ipv4) | ternary(ingressvip, ingressvip6) }}
6771{% endif %}
6872{% if ((release_version .split ('.' )[0]|int == 4) and (release_version .split ('.' )[1]|int < 5)) %}
6973 dnsVIP: {{ dnsvip }}
0 commit comments