@@ -79,7 +79,9 @@ async def main():
7979 "fqdn" : {"type" : "string" },
8080 "tls" : {
8181 "properties" : {
82- "secretName" : {"type" : "string" }
82+ "secretName" : {
83+ "type" : "string"
84+ }
8385 },
8486 "type" : "object" ,
8587 },
@@ -172,8 +174,12 @@ async def main():
172174 },
173175 }
174176
175- await ingressroute_api .create (body = ingressroute_manifest_first , namespace = namespace_first )
176- await ingressroute_api .create (body = ingressroute_manifest_second , namespace = namespace_second )
177+ await ingressroute_api .create (
178+ body = ingressroute_manifest_first , namespace = namespace_first
179+ )
180+ await ingressroute_api .create (
181+ body = ingressroute_manifest_second , namespace = namespace_second
182+ )
177183 print ("\n [INFO] custom resources `ingress-route-*` created\n " )
178184
179185 # Listing the `ingress-route-*` custom resources
@@ -192,7 +198,7 @@ async def main():
192198 item ["metadata" ]["namespace" ],
193199 item ["spec" ]["virtualhost" ]["fqdn" ],
194200 item ["spec" ]["virtualhost" ]["tls" ],
195- item ["spec" ]["strategy" ]
201+ item ["spec" ]["strategy" ],
196202 )
197203 )
198204
@@ -202,10 +208,12 @@ async def main():
202208 ingressroute_manifest_second ["spec" ]["strategy" ] = "WeightedLeastRequest"
203209
204210 await ingressroute_api .patch (
205- body = ingressroute_manifest_first , content_type = "application/merge-patch+json"
211+ body = ingressroute_manifest_first ,
212+ content_type = "application/merge-patch+json" ,
206213 )
207214 await ingressroute_api .patch (
208- body = ingressroute_manifest_second , content_type = "application/merge-patch+json"
215+ body = ingressroute_manifest_second ,
216+ content_type = "application/merge-patch+json" ,
209217 )
210218
211219 print (
@@ -227,7 +235,7 @@ async def main():
227235 item ["metadata" ]["namespace" ],
228236 item ["spec" ]["virtualhost" ]["fqdn" ],
229237 item ["spec" ]["virtualhost" ]["tls" ],
230- item ["spec" ]["strategy" ]
238+ item ["spec" ]["strategy" ],
231239 )
232240 )
233241
0 commit comments