Skip to content

Commit 0959af1

Browse files
authored
Merge branch 'master' into mascore12745
2 parents 4a00006 + a8642ea commit 0959af1

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

image/cli/app-root/src/finalizer.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -610,11 +610,16 @@ def getcp4dCompsVersions():
610610
print("FVT Run is not yet completed. Skipping slack message with results to report channel")
611611
sys.exit(0)
612612

613-
if instanceId.startswith("fvt"):
614-
# To generate the channel name we remove the "fvt" prefix from the instanceId
615-
FVT_SLACK_CHANNEL = f"mas-fvtreports-{instanceId.replace('fvt', '')}"
616-
else:
617-
FVT_SLACK_CHANNEL = f"mas-fvtreports-{instanceId}"
613+
FVT_SLACK_CHANNEL = os.getenv("SLACK_CHANNEL")
614+
if FVT_SLACK_CHANNEL is None or FVT_SLACK_CHANNEL == "":
615+
print("FVT_SLACK_CHANNEL is not set, hence generating channel name based on instanceId")
616+
if instanceId.startswith("fvt"):
617+
# To generate the channel name we remove the "fvt" prefix from the instanceId
618+
FVT_SLACK_CHANNEL = f"mas-fvtreports-{instanceId.replace('fvt', '')}"
619+
print(f"Generated FVT_SLACK_CHANNEL name is {FVT_SLACK_CHANNEL}")
620+
else:
621+
FVT_SLACK_CHANNEL = f"mas-fvtreports-{instanceId}"
622+
print(f"Generated FVT_SLACK_CHANNEL name is {FVT_SLACK_CHANNEL}")
618623

619624
FVT_JIRA_TOKEN = os.getenv("FVT_JIRA_TOKEN")
620625
if FVT_JIRA_TOKEN is None or FVT_JIRA_TOKEN == "":

rbac/install/namespaces.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ metadata:
3131
---
3232
apiVersion: v1
3333
kind: Namespace
34+
metadata:
35+
name: db2u
36+
---
37+
apiVersion: v1
38+
kind: Namespace
3439
metadata:
3540
name: mongoce
3641
---

0 commit comments

Comments
 (0)