Skip to content

Commit 7cc42f8

Browse files
feat: add new licenses of EA CP4I IWHI (#11)
Contributes to: https://jsw.ibm.com/browse/EVI-21324 Signed-off-by: Thajinu Shehin <thajinu.shehin@ibm.com>
1 parent e537f93 commit 7cc42f8

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

ibm-connectivity-pack/templates/_helpersEA.tpl

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ Create the name of the service
4949
# Function for fetching the license
5050
{{- define "ibm-connectivity-pack.fetchLicense" -}}
5151

52-
{{- $licenseListCP4I := list "L-QYVA-B365MB" "L-JVML-UFQVM4" -}}
53-
{{- $licenseListEA := list "L-AUKS-FKVXVL" -}}
52+
{{- $licenseListCP4I := list "L-QYVA-B365MB" "L-JVML-UFQVM4" "L-JVUW-LSTB9R" "L-MQQP-KBWMYE" "L-CYPF-CRPF3H" -}}
53+
{{- $licenseListEA := list "L-AUKS-FKVXVL" "L-CYBH-K48BZQ" -}}
54+
{{- $licenseListIWHI := list "L-SBZZ-CNR329" -}}
5455

5556
{{- $licenseId := .licenseId | quote -}}
5657

5758
{{- $foundCP4ILicense := false }}
5859
{{- $foundEALicense := false }}
60+
{{- $foundIWHILicense := false }}
5961
{{- $licenseType := "" }}
6062

6163
{{- range $licenseListCP4I }}
@@ -72,6 +74,13 @@ Create the name of the service
7274
{{- end }}
7375
{{- end }}
7476

77+
{{- range $licenseListIWHI }}
78+
{{- if eq (quote .) $licenseId }}
79+
{{- $foundIWHILicense = true }}
80+
{{- $licenseType = "IWHI" }}
81+
{{- end }}
82+
{{- end }}
83+
7584
{{- $licenseType }}
7685

7786
{{- end }}
@@ -80,13 +89,15 @@ Create the name of the service
8089
# Function for validating the license
8190
{{- define "ibm-connectivity-pack.validateLicense" -}}
8291

83-
{{- $licenseListCP4I := list "L-QYVA-B365MB" "L-JVML-UFQVM4" -}}
84-
{{- $licenseListEA := list "L-AUKS-FKVXVL" -}}
92+
{{- $licenseListCP4I := list "L-QYVA-B365MB" "L-JVML-UFQVM4" "L-JVUW-LSTB9R" "L-MQQP-KBWMYE" "L-CYPF-CRPF3H" -}}
93+
{{- $licenseListEA := list "L-AUKS-FKVXVL" "L-CYBH-K48BZQ" -}}
94+
{{- $licenseListIWHI := list "L-SBZZ-CNR329" -}}
8595

8696
{{- $licenseId := .licenseId | quote -}}
8797

8898
{{- $foundCP4ILicense := false }}
8999
{{- $foundEALicense := false }}
100+
{{- $foundIWHILicense := false }}
90101

91102
{{- range $licenseListCP4I }}
92103
{{- if eq (quote .) $licenseId }}
@@ -100,8 +111,14 @@ Create the name of the service
100111
{{- end }}
101112
{{- end }}
102113

103-
{{- if not (or $foundCP4ILicense $foundEALicense )}}
104-
{{- fail (printf "\nYou have provided an invalid license: %s.\nTo continue the installation, set 'license.licenseId' and provide a valid value from https://ibm.biz/ea-license.\nValid Event Automation licenses are:\n %s\nValid Cloud Pak for Integration licenses are:\n %s" $licenseId $licenseListEA $licenseListCP4I) }}
114+
{{- range $licenseListIWHI }}
115+
{{- if eq (quote .) $licenseId }}
116+
{{- $foundIWHILicense = true }}
117+
{{- end }}
118+
{{- end }}
119+
120+
{{- if not (or $foundCP4ILicense $foundEALicense $foundIWHILicense)}}
121+
{{- fail (printf "\nYou have provided an invalid license: %s.\nTo continue the installation, set 'license.licenseId' and provide a valid value from https://ibm.biz/ea-license.\nValid Event Automation licenses are:\n %s\nValid Cloud Pak for Integration licenses are:\n %s\nValid webMethods Hybrid Integration licenses are:\n %s" $licenseId $licenseListEA $licenseListCP4I $licenseListIWHI) }}
105122
{{- end }}
106123

107124
{{- end }}

0 commit comments

Comments
 (0)