use external ip first
parent
1880f8ce54
commit
db0e2ac843
|
|
@ -26,7 +26,7 @@ def update_service_annotation(external_ip):
|
||||||
print(
|
print(
|
||||||
f"service {SERVICE_NAME} has existing ipam IP: {ipam_address}", flush=True
|
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:
|
else:
|
||||||
target_annotation = external_ip
|
target_annotation = external_ip
|
||||||
if current_annotation != target_annotation:
|
if current_annotation != target_annotation:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue