remove legacy crd and add pipeline

This commit is contained in:
Aaron Riedel 2024-12-22 18:17:37 +01:00
parent ccb1f91ed4
commit 483bfed881
Signed by: aaron
GPG key ID: 643004654D40D577
6 changed files with 95 additions and 188 deletions

View file

@ -147,14 +147,10 @@ def main():
signal.signal(signal.SIGINT, exit_gracefully)
signal.signal(signal.SIGTERM, exit_gracefully)
# deprecated traefik CRD
th1 = threading.Thread(target=watch_crd, args=("traefik.containo.us", "v1alpha1", "ingressroutes"), daemon=True)
# new traefik CRD
th1 = threading.Thread(target=watch_crd, args=("traefik.io", "v1alpha1", "ingressroutes"), daemon=True)
th1.start()
# new traefik CRD
th2 = threading.Thread(target=watch_crd, args=("traefik.io", "v1alpha1", "ingressroutes"), daemon=True)
th2.start()
# wait for threads to finish
while th1.is_alive() and th2.is_alive():
th1.join(0.1)