
Move testing to juju 3.4 Set base to ubuntu@22.04 in all test bundles with traefik charm to ubuntu@20.04. tox can be modified to include default-series=;default-base=ubuntu@22.04 in TEST_MODEL_SETTINGS but that is not working for lxd based cloud. Update tox to use zaza from main instead of libjuju-3.1 for func tests. Func-tests for core are failing due to heavy load. Moved horizon to tests/misc Change-Id: I6c025e1350aad7ead922cf5feef19c67c308dbbd
139 lines
3.4 KiB
Django/Jinja
139 lines
3.4 KiB
Django/Jinja
bundle: kubernetes
|
|
|
|
applications:
|
|
traefik:
|
|
charm: ch:traefik-k8s
|
|
channel: 1.0/candidate
|
|
base: ubuntu@20.04
|
|
scale: 1
|
|
trust: true
|
|
options:
|
|
kubernetes-service-annotations: metallb.universe.tf/address-pool=public
|
|
mysql:
|
|
charm: ch:mysql-k8s
|
|
channel: 8.0/stable
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
trust: true
|
|
constraints: cpu-power=1000 mem=1G
|
|
ldap-server:
|
|
charm: ch:ldap-test-fixture-k8s
|
|
channel: edge
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
rabbitmq:
|
|
charm: ch:rabbitmq-k8s
|
|
channel: 3.12/edge
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
trust: true
|
|
options:
|
|
minimum-replicas: 1
|
|
keystone:
|
|
{% if keystone_k8s is defined and keystone_k8s is sameas true -%}
|
|
charm: ../../../keystone-k8s.charm
|
|
{% else -%}
|
|
charm: ch:keystone-k8s
|
|
channel: 2023.2/edge
|
|
{% endif -%}
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
trust: true
|
|
options:
|
|
admin-role: admin
|
|
storage:
|
|
fernet-keys: 5M
|
|
credential-keys: 5M
|
|
resources:
|
|
keystone-image: ghcr.io/canonical/keystone:2023.2
|
|
designate-bind:
|
|
{% if designate_bind_k8s is defined and designate_bind_k8s is sameas true -%}
|
|
charm: ../../../designate-bind-k8s.charm
|
|
{% else -%}
|
|
charm: ch:designate-bind-k8s
|
|
channel: 9/edge
|
|
{% endif -%}
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
trust: false
|
|
resources:
|
|
designate-bind-image: ubuntu/bind9:9.18-22.04_beta
|
|
designate:
|
|
{% if designate_k8s is defined and designate_k8s is sameas true -%}
|
|
charm: ../../../designate-k8s.charm
|
|
{% else -%}
|
|
charm: ch:designate-k8s
|
|
channel: 2023.2/edge
|
|
{% endif -%}
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
trust: false
|
|
resources:
|
|
designate-image: ghcr.io/canonical/designate-consolidated:2023.2
|
|
keystone-ldap:
|
|
{% if keystone_ldap_k8s is defined and keystone_ldap_k8s is sameas true -%}
|
|
charm: ../../../keystone-ldap-k8s.charm
|
|
{% else -%}
|
|
charm: ch:keystone-ldap-k8s
|
|
channel: 2023.2/edge
|
|
{% endif -%}
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
openstack-exporter:
|
|
{% if openstack_exporter_k8s is defined and openstack_exporter_k8s is sameas true -%}
|
|
charm: ../../../openstack-exporter-k8s.charm
|
|
{% else -%}
|
|
charm: ch:openstack-exporter-k8s
|
|
channel: 2023.2/edge
|
|
{% endif -%}
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
resources:
|
|
openstack-exporter-image: ghcr.io/canonical/openstack-exporter:1.6.0-7533071
|
|
horizon:
|
|
{% if horizon_k8s is defined and horizon_k8s is sameas true -%}
|
|
charm: ../../../horizon-k8s.charm
|
|
{% else -%}
|
|
charm: ch:horizon-k8s
|
|
channel: 2023.2/edge
|
|
{% endif -%}
|
|
base: ubuntu@22.04
|
|
scale: 1
|
|
trust: true
|
|
resources:
|
|
horizon-image: ghcr.io/canonical/horizon:2023.2
|
|
|
|
relations:
|
|
- - mysql:database
|
|
- keystone:database
|
|
- - traefik:ingress
|
|
- keystone:ingress-public
|
|
|
|
- - mysql:database
|
|
- designate:database
|
|
- - rabbitmq:amqp
|
|
- designate:amqp
|
|
- - keystone:identity-service
|
|
- designate:identity-service
|
|
- - traefik:ingress
|
|
- designate:ingress-public
|
|
- - designate-bind:dns-backend
|
|
- designate:dns-backend
|
|
- - keystone:send-ca-cert
|
|
- designate:receive-ca-cert
|
|
|
|
- - keystone:domain-config
|
|
- keystone-ldap:domain-config
|
|
|
|
- - keystone:identity-ops
|
|
- openstack-exporter:identity-ops
|
|
|
|
- - mysql:database
|
|
- horizon:database
|
|
- - keystone:identity-credentials
|
|
- horizon:identity-credentials
|
|
- - traefik:ingress
|
|
- horizon:ingress-public
|
|
- - keystone:send-ca-cert
|
|
- horizon:receive-ca-cert
|