@@ -49,7 +49,7 @@ Verify MicroShift Runs Only On Primary NIC
49
49
... configuration (without the secondary IP) and regenerates the
50
50
... certificates, which will be lacking the IP from secondary NIC.
51
51
52
- Configure Subject Alternative Name ${USHIFT_HOST_IP1 } ${ EMPTY }
52
+ Configure Subject Alternative Name ${USHIFT_HOST_IP1 }
53
53
54
54
Login Switch To IP ${USHIFT_HOST_IP1 }
55
55
Disable Interface ${NIC2_NAME }
@@ -68,7 +68,7 @@ Verify MicroShift Runs Only On Secondary NIC
68
68
... be that of the secondary NIC, and certificates will be updated according
69
69
... to the new configuration (which includes only the secondary IP).
70
70
71
- Configure Subject Alternative Name ${USHIFT_HOST_IP2 } ${ EMPTY }
71
+ Configure Subject Alternative Name ${USHIFT_HOST_IP2 }
72
72
73
73
${cur_pid } = MicroShift Process ID
74
74
@@ -174,21 +174,20 @@ Verify MicroShift On Single NIC
174
174
Configure Subject Alternative Name
175
175
[Documentation] Replace subjectAltNames entries in the configuration
176
176
... to include the IPs provided
177
- [Arguments] ${ ip_1 } ${ ip_2 }
177
+ [Arguments] @{ ips }
178
178
179
- IF '${ip_2 } ' == 'False'
180
- ${subject_alt_names } = CATENATE SEPARATOR=\n
181
- ... ---
182
- ... apiServer:
183
- ... \ \ subjectAltNames:
184
- ... \ \ - ${ip_1 }
185
- ELSE
179
+ ${ips_len } = Get Length ${ips }
180
+ Should Be True '${ips_len } '>'0 '
181
+
182
+ ${subject_alt_names } = CATENATE SEPARATOR=\n
183
+ ... ---
184
+ ... apiServer:
185
+ ... \ \ subjectAltNames:
186
+
187
+ FOR ${ip } IN @{ips }
186
188
${subject_alt_names } = CATENATE SEPARATOR=\n
187
- ... ---
188
- ... apiServer:
189
- ... \ \ subjectAltNames:
190
- ... \ \ - ${ip_1 }
191
- ... \ \ - ${ip_2 }
189
+ ... ${subject_alt_names }
190
+ ... \ \ - ${ip }
192
191
END
193
192
194
193
Drop In MicroShift Config ${subject_alt_names } 10 -subjectAltNames
0 commit comments