use external ip first

main
Malar Invention 2024-11-01 12:43:23 +05:30
parent 1880f8ce54
commit db0e2ac843
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def update_service_annotation(external_ip):
print(
f"service {SERVICE_NAME} has existing ipam IP: {ipam_address}", flush=True
)
target_annotation = ",".join({ipam_address, external_ip})
target_annotation = ",".join({external_ip, ipam_address})
else:
target_annotation = external_ip
if current_annotation != target_annotation: