Add octavia-driver-agent

Change-Id: Iea2c02d59d2906141ca37ce9b48a0f7f4fc14421
This commit is contained in:
Michał Nasiadka 2021-01-18 13:08:54 +01:00 committed by Michal Nasiadka
parent 62da72f5db
commit 785fe5641d
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,41 @@
FROM {{ namespace }}/{{ image_prefix }}octavia-base:{{ tag }}
{% block labels %}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% endblock %}
{% block octavia_driver_agent_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_package_type == 'rpm' %}
{% set octavia_driver_agent_packages = [
'python3-ovn-octavia-provider'
] %}
{% elif base_package_type == 'deb' %}
{% set octavia_driver_agent_packages = [
'octavia-driver-agent',
'python3-ovn-octavia-provider'
] %}
{% endif %}
{% elif install_type == 'source' %}
{% set octavia_driver_agent_packages = [
] %}
{% set octavia_driver_agent_plugins_pip_packages = [
'/plugins/*'
] %}
{{ macros.install_packages(octavia_driver_agent_packages | customizable("packages")) }}
ADD plugins-archive /
RUN if [ "$(ls /plugins)" ]; then \
{{ macros.install_pip(octavia_driver_agent_plugins_pip_packages) }} ; \
fi
{% endif %}
{% block octavia_driver_agent_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER octavia

View File

@ -584,6 +584,10 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/openstack/ovn-octavia-provider/'
'ovn-octavia-provider-${openstack_branch}.tar.gz')},
'octavia-driver-agent-plugin-ovn-octavia-provider': {
'type': 'url',
'location': ('$tarballs_base/openstack/ovn-octavia-provider/'
'ovn-octavia-provider-${openstack_branch}.tar.gz')},
'panko-base': {
'type': 'url',
'location': ('$tarballs_base/openstack/panko/'

View File

@ -0,0 +1,5 @@
---
features:
- |
``octavia-driver-agent`` image was added to support other Octavia providers than
``amphora``.