Skip to content

Commit

Permalink
[common] Render configmap add node ip address config
Browse files Browse the repository at this point in the history
  • Loading branch information
fightdou authored and kungze-robot committed Aug 1, 2022
1 parent 375cf0c commit a14bd8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
apiVersion: v2
description: Openstack kolla helm common library
name: common
version: 1.0.5
version: 1.0.6
home: https://github.com/kungze/kolla-helm
maintainers:
- name: Kungze
Expand Down
3 changes: 3 additions & 0 deletions charts/common/templates/scripts/_configmap_render.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CONF_FILE_NAME = os.getenv('CONF_FILE_NAME', None)
CONFIG_MAP_NAME = os.getenv('CONFIG_MAP_NAME', None)
AUTH_URL = os.getenv('AUTH_URL', None)
RBD_SECRET_UUID = os.getenv('RBD_SECRET_UUID', '')
NODE_IP_ADDRESS = os.getenv('NODE_IP_ADDRESS', None)

LOG_DATEFMT = "%Y-%m-%d %H:%M:%S"
LOG_FORMAT = "%(asctime)s.%(msecs)03d - %(levelname)s - %(message)s"
Expand Down Expand Up @@ -106,6 +107,8 @@ def update_connection_fields(content):
line = line.replace("region_placeholder", OS_REGION)
if "rbd_secret_uuid_palceholder" in line:
line = line.replace("rbd_secret_uuid_palceholder", RBD_SECRET_UUID)
if "node_ipaddress_palceholder" in line:
line = line.replace("node_ipaddress_palceholder", NODE_IP_ADDRESS)
f.write(line + "\n")
f.truncate()

Expand Down

0 comments on commit a14bd8b

Please sign in to comment.