SIENTIAPDE-1445
Refactor values.yaml to comment out email configuration settings for improved security and clarity. Update orchestrator_functions.py to enhance tag processing by iterating over items in read_tags, improving code readability.
This commit is contained in:
@@ -225,11 +225,11 @@ def pi_web_api_scouter(config: dict[str, Any]):
|
|||||||
API timeout is automatically adjusted to not exceed workflow frequency.
|
API timeout is automatically adjusted to not exceed workflow frequency.
|
||||||
"""
|
"""
|
||||||
tags = {}
|
tags = {}
|
||||||
for tag in config['read_tags']:
|
for tag, config in config['read_tags'].items():
|
||||||
tags[tag['tag_name']] = {
|
tags[tag] = {
|
||||||
'webid': tag['webid'],
|
'webid': config['webid'],
|
||||||
'aggr_func': tag.get('aggr_func', 'lts'),
|
'aggr_func': config.get('aggr_func', 'lts'),
|
||||||
'data_range': tag.get('data_range', [-100, 100]),
|
'data_range': config.get('data_range', [-100, 100]),
|
||||||
}
|
}
|
||||||
|
|
||||||
base_config = base_scouter(config)
|
base_config = base_scouter(config)
|
||||||
|
|||||||
22
values.yaml
22
values.yaml
@@ -182,17 +182,17 @@ env:
|
|||||||
- name: MONGODB_TTL_INDEX_HOURS
|
- name: MONGODB_TTL_INDEX_HOURS
|
||||||
value: "1"
|
value: "1"
|
||||||
|
|
||||||
- name: EMAIL_SENDER
|
# - name: EMAIL_SENDER
|
||||||
value: "vitor.santos@aignosi.com.br"
|
# value: "vitor.santos@aignosi.com.br"
|
||||||
- name: EMAIL_SENDER_PASSWORD
|
# - name: EMAIL_SENDER_PASSWORD
|
||||||
valueFrom:
|
# valueFrom:
|
||||||
secretKeyRef:
|
# secretKeyRef:
|
||||||
name: smtp-credentials
|
# name: smtp-credentials
|
||||||
key: app_password
|
# key: app_password
|
||||||
- name: EMAIL_SMTP_SERVER
|
# - name: EMAIL_SMTP_SERVER
|
||||||
value: "smtp.gmail.com"
|
# value: "smtp.gmail.com"
|
||||||
- name: EMAIL_SMTP_PORT
|
# - name: EMAIL_SMTP_PORT
|
||||||
value: "587"
|
# value: "587"
|
||||||
|
|
||||||
# Application variables
|
# Application variables
|
||||||
- name: POSTGRES_HOST
|
- name: POSTGRES_HOST
|
||||||
|
|||||||
Reference in New Issue
Block a user