summaryrefslogtreecommitdiffstats
path: root/k8s/k8splugin/tasks.py
diff options
context:
space:
mode:
authorEdyta Krukowska <edyta.krukowska@nokia.com>2021-01-29 11:35:03 +0100
committerEdyta Krukowska <edyta.krukowska@nokia.com>2021-02-04 13:19:19 +0100
commit8527090d2034a4ff2a54adc5f99b934652cc3bfe (patch)
tree9cd94ca820d37a1715d3b7e757a58006fd9324f7 /k8s/k8splugin/tasks.py
parentfd9ffee0836f1bfa8c14c9caa3b24e6a183aabf0 (diff)
Upgrade k8s to use configMap
Issue-ID: DCAEGEN2-2546 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I41bacf0b9de239e21cc9900c408f10cea75f83c1
Diffstat (limited to 'k8s/k8splugin/tasks.py')
-rw-r--r--k8s/k8splugin/tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/k8s/k8splugin/tasks.py b/k8s/k8splugin/tasks.py
index 3d24277..6338486 100644
--- a/k8s/k8splugin/tasks.py
+++ b/k8s/k8splugin/tasks.py
@@ -3,7 +3,7 @@
# ================================================================================
# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
# Copyright (c) 2020 Pantheon.tech. All rights reserved.
-# Copyright (c) 2020 Nokia. All rights reserved.
+# Copyright (c) 2020-2021 Nokia. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -254,6 +254,7 @@ def _create_and_start_container(container_name, image, **kwargs):
kwargs may have:
- volumes: array of volume objects, where a volume object is:
{"host":{"path": "/path/on/host"}, "container":{"bind":"/path/on/container","mode":"rw_or_ro"}
+ {'config_volume': {'name': 'myConfigMap'}, 'container': {'bind': '/path/on/config.yaml', 'mode': 'ro'}
- ports: array of strings in the form "container_port:host_port"
- envs: map of name-value pairs ( {name0: value0, name1: value1...} )
- always_pull: boolean. If true, sets image pull policy to "Always"