Skip to content

Commit 36637f4

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add octavia-driver-agent" into stable/victoria
2 parents 72363c0 + 619d017 commit 36637f4

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
FROM {{ namespace }}/{{ image_prefix }}octavia-base:{{ tag }}
2+
{% block labels %}
3+
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
4+
{% endblock %}
5+
6+
{% block octavia_driver_agent_header %}{% endblock %}
7+
8+
{% import "macros.j2" as macros with context %}
9+
10+
{% if install_type == 'binary' %}
11+
{% if base_package_type == 'rpm' %}
12+
{% set octavia_driver_agent_packages = [
13+
'python3-ovn-octavia-provider'
14+
] %}
15+
{% elif base_package_type == 'deb' %}
16+
{% set octavia_driver_agent_packages = [
17+
'octavia-driver-agent',
18+
'python3-ovn-octavia-provider'
19+
] %}
20+
{% endif %}
21+
22+
{% elif install_type == 'source' %}
23+
{% set octavia_driver_agent_packages = [
24+
] %}
25+
26+
{% set octavia_driver_agent_plugins_pip_packages = [
27+
'/plugins/*'
28+
] %}
29+
30+
{{ macros.install_packages(octavia_driver_agent_packages | customizable("packages")) }}
31+
32+
ADD plugins-archive /
33+
RUN if [ "$(ls /plugins)" ]; then \
34+
{{ macros.install_pip(octavia_driver_agent_plugins_pip_packages) }} ; \
35+
fi
36+
{% endif %}
37+
38+
{% block octavia_driver_agent_footer %}{% endblock %}
39+
{% block footer %}{% endblock %}
40+
41+
USER octavia

kolla/common/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,10 @@
616616
'type': 'url',
617617
'location': ('$tarballs_base/openstack/ovn-octavia-provider/'
618618
'ovn-octavia-provider-stable-victoria.tar.gz')},
619+
'octavia-driver-agent-plugin-ovn-octavia-provider': {
620+
'type': 'url',
621+
'location': ('$tarballs_base/openstack/ovn-octavia-provider/'
622+
'ovn-octavia-provider-stable-victoria.tar.gz')},
619623
'panko-base': {
620624
'type': 'url',
621625
'location': ('$tarballs_base/openstack/panko/'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
``octavia-driver-agent`` image was added to support other Octavia providers than
5+
``amphora``.

0 commit comments

Comments
 (0)