- secret:
    name: magnum_docker_login
    data:
      user: !encrypted/pkcs1-oaep
        - jlvqCncV1yJNdDNydFdpAXM06vfvjRcgkgLyJyEY8X5MHOmf6VKL2RiR9nmZX4faDgGHr
          797eFqJMOrWGc2iQGPmb2AwVkWSpMii3o/pV13jdIJBZ0RJ5g7kUXl8+anY27ZikwgmEM
          ftad6SESr/PEv1G+35S/YEDveEDqY/6mXWOiO75N2QRrTsmgI9t2ItCS/sylWg+6wam0X
          rpZHC7MyzMoLwi+ySDwjPDiQCskcwYxRwfwFcp2EPgc3cRx2V+YA1Y0Kaf42wCfSIswVC
          YhljX2Zp9qWD/WULf3sH4pewfvWEwVojbNYOC99Jh/65i2Csynif7yoAAquY1qiPkXLRf
          Plstz4UTpBsmx/6HSLAxaKp2gaxedrpeIM4+7lMldCQ+8Yx9ZbxXccINpDFznokHiaK60
          EbjqQwNyjDeoOOO/gYytOZ8DZBFvxFHkQaiAZdS+icxSKzbl+7dZoqyET95LDnk4aIw9L
          5fxIHHfpipvDrt3NGVmOaQiA9tBC5eCtCFlpJkJWFaz2ip7sqP8JlkZfWf2kr5ujK7s4B
          VkiUuxIOBIIhc56XbgRoaFT8z23C357k7rNBDyFu6TPItx5OYXEtWU9hqJazl55EKbcfh
          N7/a+zHNohrG4bLwjlwQ94AWBGkOxEbeZ2+ndK0SdhXTCtCCnu/0Xtxv3D8uSQ=
      password: !encrypted/pkcs1-oaep
        - uk0eQa5ozoUAM5Wc8qQeOjCxmGC/c74iq8EaMGTYtgpYm+teMR9CR0QcrSQA0g+1ZQnbD
          kIRA/7/N1e6zp59GRrJe9y5Vs9cEvbzKrsRQgkubrYx6XpUVJxxuc5IbrFkiaCfrQkB0E
          hIQ3RcTFVW6PBoldNGPHk3czvr0oFZbLmRZ44aOolTURFG5DUzFt5HUO4xXwTwCIxxJbO
          Ch/cYVMzGZaRAi41j7F07b/48Ywg3TkZqy0aAvb/wmFdmlLDR0GlDJy1MdKnmmHNzvywF
          bE1b4ljhSxhdeHxb5GDelHp+DLLxLAva65DcMQI58JMZiXo7THG49Ho+Msbr+2JCjSUKT
          qJhH2ht7c6id/VRoPdFGRJbRPCYPraGe6IQs7FWfK0ELvEY8X3g5SSylYCGhr6TdcDFWm
          nyRiMTuWG7n5j7V4fGnEhyqATNKV4zq5IDs08XxB0od24R346mkE75qzhnnKOi1tdfvPd
          F443NmZCBRqxwmrUaPLFzzXD+O0xW3qAWxHOzlMGU/VnR4uRdOcyWbCdcO+N392jTiRMX
          UbRYBPi1hBrBmd9/UjYVVaXESXkZEe81yDFwCR77eGQVVNSZljBJy+VErUv7+RgwTuN/z
          CtGD6IpE16AHl3i31/1f00t5/t857qzVbdMLJBU8ivKbLPwGAjHMwM0f+y4Ogc=

- job:
    name: magnum-container-build
    pre-run: playbooks/container-builder-setup-gate.yaml
    run: playbooks/container-builder.yaml
    post-run: playbooks/container-builder-copy-logs.yaml
    roles:
      - zuul: openstack/openstack-zuul-jobs
    timeout: 3600
    irrelevant-files:
      - ^.*\.rst$
      - ^api-ref/.*$
      - ^doc/.*$
      - ^specs/.*$
      - ^install-guide/.*$
      - ^releasenotes/.*$
      - ^magnum/.*$

- job:
    name: magnum-container-publish
    parent: magnum-container-build
    post-run: playbooks/container-publish.yaml
    secrets:
      - magnum_docker_login
    timeout: 7200

- job:
    name: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.28
    parent: magnum-tempest-plugin-tests-cluster-2024-2
    vars:
      devstack_localrc:
        MAGNUM_KUBECTL_TAG: v1.28.9
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            magnum:
              labels:
                kube_tag: v1.28.9-rancher1
                container_runtime: containerd
                containerd_version: 1.6.31
                containerd_tarball_sha256: 75afb9b9674ff509ae670ef3ab944ffcdece8ea9f7d92c42307693efa7b6109d
                cloud_provider_tag: v1.27.3
                cinder_csi_plugin_tag: v1.27.3
                k8s_keystone_auth_tag: v1.27.3
                magnum_auto_healer_tag: v1.27.3
                octavia_ingress_controller_tag: v1.27.3
                calico_tag: v3.26.4

- job:
    name: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.28-calico
    parent: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.28
    vars:
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            magnum:
              network_driver: calico

- job:
    name: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.28-flannel
    parent: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.28
    vars:
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            magnum:
              network_driver: flannel

- job:
    name: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.27
    parent: magnum-tempest-plugin-tests-cluster-2024-2
    vars:
      devstack_localrc:
        MAGNUM_KUBECTL_TAG: v1.27.8
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            magnum:
              labels:
                kube_tag: v1.27.8-rancher2
                container_runtime: containerd
                containerd_version: 1.6.28
                containerd_tarball_sha256: f70736e52d61e5ad225f4fd21643b5ca1220013ab8b6c380434caeefb572da9b
                cloud_provider_tag: v1.27.3
                cinder_csi_plugin_tag: v1.27.3
                k8s_keystone_auth_tag: v1.27.3
                magnum_auto_healer_tag: v1.27.3
                octavia_ingress_controller_tag: v1.27.3
                calico_tag: v3.26.4

- job:
    name: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.27-calico
    parent: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.27
    vars:
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            magnum:
              network_driver: calico

- job:
    name: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.27-flannel
    parent: magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.27
    vars:
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            magnum:
              network_driver: flannel

- project:
    queue: magnum
    templates:
      - openstack-cover-jobs
      - openstack-python3-jobs
      - check-requirements
      - publish-openstack-docs-pti
      - release-notes-jobs-python3
    check:
      jobs:
        - magnum-tempest-plugin-tests-api
        - magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.27-flannel
        - magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.27-calico
        - magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.28-flannel
        - magnum-tempest-plugin-tests-cluster-k8s_fcos_v1-1.28-calico
        - magnum-container-build
    gate:
      jobs:
        - magnum-tempest-plugin-tests-api
    post:
      jobs:
        - magnum-container-publish