Преглед на файлове

kuryr: Make controller and CNI image configurable

It is important to allow users to point to their own image builds as
well as making life easier for developers that are developing some
feature and want to point to their own registry.

Change-Id: I4e2d69af2adf106f38167e9f55aa8e519cb8d0e4
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
Antoni Segura Puimedon преди 7 години
родител
ревизия
ad86fe88c3
променени са 3 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 4 0
      roles/kuryr/defaults/main.yaml
  2. 1 1
      roles/kuryr/templates/cni-daemonset.yaml.j2
  3. 1 1
      roles/kuryr/templates/controller-deployment.yaml.j2

+ 4 - 0
roles/kuryr/defaults/main.yaml

@@ -26,6 +26,10 @@ cni_version: v0.5.2
 # Path to bin dir (where kuryr execs get installed)
 # Path to bin dir (where kuryr execs get installed)
 bin_dir: /usr/bin
 bin_dir: /usr/bin
 
 
+# Default controller and CNI images
+openshift_openstack_kuryr_controller_image: kuryr/controller:latest
+openshift_openstack_kuryr_cni_image: kuryr/cni:latest
+
 # Path to the cni binaries
 # Path to the cni binaries
 cni_bin_dir: /opt/cni/bin
 cni_bin_dir: /opt/cni/bin
 
 

+ 1 - 1
roles/kuryr/templates/cni-daemonset.yaml.j2

@@ -23,7 +23,7 @@ spec:
       serviceAccountName: kuryr-controller
       serviceAccountName: kuryr-controller
       containers:
       containers:
       - name: kuryr-cni
       - name: kuryr-cni
-        image: kuryr/cni:latest
+        image: {{ openshift_openstack_kuryr_cni_image }}
         imagePullPolicy: IfNotPresent
         imagePullPolicy: IfNotPresent
         command: [ "cni_ds_init" ]
         command: [ "cni_ds_init" ]
         env:
         env:

+ 1 - 1
roles/kuryr/templates/controller-deployment.yaml.j2

@@ -19,7 +19,7 @@ spec:
       automountServiceAccountToken: true
       automountServiceAccountToken: true
       hostNetwork: true
       hostNetwork: true
       containers:
       containers:
-      - image: kuryr/controller:latest
+      - image: {{ openshift_openstack_kuryr_controller_image }}
         imagePullPolicy: IfNotPresent
         imagePullPolicy: IfNotPresent
         name: controller
         name: controller
 {% if kuryr_openstack_enable_pools | default(false) %}
 {% if kuryr_openstack_enable_pools | default(false) %}