Skip to content

Commit 456b365

Browse files
event-automation-ibmEvent Automation IBM
andauthored
Changes for connectivity-pack-kafka-connectors (#15)
Signed-off-by: Event Automation IBM <noreply@ibm.com> Co-authored-by: Event Automation IBM <noreply@ibm.com>
1 parent 85acb1b commit 456b365

10 files changed

Lines changed: 99 additions & 60 deletions

File tree

ibm-connectivity-pack/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: 1.6.1
2+
appVersion: 1.7.5
33
description: Helm chart for IBM Connectivity Pack. The helm application is a Connectors as a Container offering that offers connectors as independently deployable application and provides a consistent interface for interaction. The application offers both action and event connectors.
44
keywords:
55
- ibm-connectivity-pack
@@ -19,4 +19,4 @@ keywords:
1919
kubeVersion: '>=1.25.0'
2020
name: ibm-connectivity-pack
2121
type: application
22-
version: 3.1.0
22+
version: 3.1.1-beta
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"action-connectors": {
3-
"tag": "3.1.0",
4-
"digest": "sha256:74c16dcb6fc04f09f924584979600de15d6ec47dd9206509a0de72375bd19120"
3+
"tag": "3.1.1-beta",
4+
"digest": "sha256:28f9c6420cd9b2565715b85a9c04401d244e684a9b3a47e6b58b3b114c3b9a96"
55
},
66
"event-connectors": {
7-
"tag": "3.1.0",
8-
"digest": "sha256:71139de912870c6d072dc42ce6690ce47b6dc809f62275a467c317ae53c4fab7"
7+
"tag": "3.1.1-beta",
8+
"digest": "sha256:40a5c0451f5a052ee8945a64c112646cf487aa5a5ee544b0fdd5cc6c4ad2e192"
99
},
1010
"java-tech-connectors": {},
1111
"connectivity-pack-prehook": {
12-
"tag": "3.1.0",
13-
"digest": "sha256:6d38a8f6d32750dd832e61dcb484d555fe8d5f66d212d2505200d1c3342103e9"
12+
"tag": "3.1.1-beta",
13+
"digest": "sha256:5cd94eff588f81b0ca361dcf926abdd64a6ef8ca88a4b36b0d3293b4fac33f12"
1414
}
1515
}

ibm-connectivity-pack/templates/InstallPreHook.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ spec:
1515
activeDeadlineSeconds: 300
1616
template:
1717
spec:
18-
serviceAccountName: {{ include "ibm-connectivity-pack.preHookJob" . }}-sa
18+
serviceAccountName: {{ include "ibm-connectivity-pack.preHookJobSa" . }}
1919
restartPolicy: Never
2020
imagePullSecrets:
2121
- name: {{ include "ibm-connectivity-pack.imagePullSecretname" . }}
22+
- name : ibm-entitlement-key
2223
containers:
2324
- name: mtls-cert-generator
2425
securityContext:
@@ -32,6 +33,13 @@ spec:
3233
seccompProfile:
3334
type: RuntimeDefault
3435
image: {{ .Values.image.registry }}/{{ .Values.image.path }}/{{ .Values.preHook.image }}@{{ .Values.preHook.digest }}
36+
resources:
37+
requests:
38+
cpu: 50m
39+
memory: 64Mi
40+
limits:
41+
cpu: 100m
42+
memory: 128Mi
3543
command:
3644
- /bin/sh
3745
- "-c"

ibm-connectivity-pack/templates/_helpers.tpl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,4 +478,27 @@ httpGet:
478478
port: 3004
479479
scheme: HTTP
480480
{{- end }}
481+
{{- end }}
482+
483+
{{/*
484+
Javaservice probe
485+
*/}}
486+
{{- define "ibm-connectivity-pack.javaserviceprobe" -}}
487+
{{- if .Values.certificate.enable }}
488+
exec:
489+
command:
490+
- /bin/sh
491+
- -c
492+
- |
493+
{{- if .Values.certificate.MTLSenable }}
494+
curl --cert /opt/ibm/app/ssl/stunnel.cert.pem --key /opt/ibm/app/ssl/stunnel.key.pem --cacert /opt/ibm/app/ssl/stunnel.ca.pem --silent --fail -k https://localhost:9080/ || exit 1
495+
{{ else }}
496+
curl --silent --fail -k https://localhost:9080/ || exit 1
497+
{{- end }}
498+
{{ else }}
499+
httpGet:
500+
path: /
501+
port: 9080
502+
scheme: HTTP
503+
{{- end }}
481504
{{- end }}

ibm-connectivity-pack/templates/_helpersEA.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ 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" "L-JVUW-LSTB9R" "L-MQQP-KBWMYE" "L-CYPF-CRPF3H" -}}
52+
{{- $licenseListCP4I := list "L-QYVA-B365MB" "L-JVML-UFQVM4" "L-MQQP-KBWMYE" "L-CYPF-CRPF3H" "L-JNME-56SJTB" "L-SJZL-NMUUCT" -}}
5353
{{- $licenseListEA := list "L-AUKS-FKVXVL" "L-CYBH-K48BZQ" -}}
5454
{{- $licenseListIWHI := list "L-SBZZ-CNR329" -}}
5555

@@ -89,7 +89,7 @@ Create the name of the service
8989
# Function for validating the license
9090
{{- define "ibm-connectivity-pack.validateLicense" -}}
9191

92-
{{- $licenseListCP4I := list "L-QYVA-B365MB" "L-JVML-UFQVM4" "L-JVUW-LSTB9R" "L-MQQP-KBWMYE" "L-CYPF-CRPF3H" -}}
92+
{{- $licenseListCP4I := list "L-QYVA-B365MB" "L-JVML-UFQVM4" "L-MQQP-KBWMYE" "L-CYPF-CRPF3H" "L-JNME-56SJTB" "L-SJZL-NMUUCT" -}}
9393
{{- $licenseListEA := list "L-AUKS-FKVXVL" "L-CYBH-K48BZQ" -}}
9494
{{- $licenseListIWHI := list "L-SBZZ-CNR329" -}}
9595

@@ -121,4 +121,4 @@ Create the name of the service
121121
{{- 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) }}
122122
{{- end }}
123123

124-
{{- end }}
124+
{{- end }}

ibm-connectivity-pack/templates/deployment.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ spec:
2626
serviceAccountName: {{ include "ibm-connectivity-pack.serviceAccountName" .}}
2727
terminationGracePeriodSeconds: 60
2828
imagePullSecrets:
29-
- name: {{ include "ibm-connectivity-pack.imagePullSecretname" . }}
29+
- name: {{ include "ibm-connectivity-pack.imagePullSecretname" . }}
30+
- name : ibm-entitlement-key
3031
containers:
3132
- name: {{ .Values.action.name }}
3233
resources:
@@ -75,6 +76,12 @@ spec:
7576
value: {{ ternary true false (.Values.enableRefreshTokenMode) | quote }}
7677
- name: CONNECTOR_SERVICE_PORT
7778
value: "3020"
79+
- name: ENABLE_LEGACY_API_VERSIONS
80+
value: {{ ternary true false (.Values.enableLegacyApiVersions) | quote }}
81+
- name: STRICT_DISCOVERY_ACCOUNT
82+
value: {{ ternary true false (.Values.strictdiscoveryaccount) | quote }}
83+
- name: OPENAPI_SCHEMA_NO_ANONYMOUS_TYPES
84+
value: {{ ternary true false (.Values.openapiSchemaNoAnonymousTypes) | quote }}
7885
- name: FEATURE_TOGGLES_OVERRIDE
7986
value: "{\"epic3633-stateless-account\": 1, \"epic3627-ea-connector-service\": 1, \"epic3660-enable-refresh-token-api\": 1, \"epic19598-mssharepoint-claimcheck-src\": 1, \"epic20879-google-bigquery-enable-newschema\": 1, \"epic20879-google-bigquery-enable-upsert\": 1 }"
8087
- name: LCP_HTTP_PORT
@@ -330,6 +337,25 @@ spec:
330337
- name: {{ .Values.javaservice.name }}
331338
resources:
332339
{{- toYaml .Values.javaservice.resources | nindent 12 }}
340+
readinessProbe:
341+
{{- include "ibm-connectivity-pack.javaserviceprobe" . | nindent 12 }}
342+
timeoutSeconds: 30
343+
periodSeconds: 10
344+
successThreshold: 1
345+
failureThreshold: 3
346+
startupProbe:
347+
{{- include "ibm-connectivity-pack.javaserviceprobe" . | nindent 12 }}
348+
timeoutSeconds: 5
349+
periodSeconds: 5
350+
successThreshold: 1
351+
failureThreshold: 30
352+
initialDelaySeconds: 15
353+
livenessProbe:
354+
{{- include "ibm-connectivity-pack.javaserviceprobe" . | nindent 12 }}
355+
timeoutSeconds: 30
356+
periodSeconds: 10
357+
successThreshold: 1
358+
failureThreshold: 3
333359
securityContext:
334360
capabilities:
335361
drop:
@@ -357,6 +383,9 @@ spec:
357383
volumeMounts:
358384
- name: stunnel-server
359385
mountPath: /etc/stunnel/secrets
386+
- name: stunnel-client
387+
readOnly: true
388+
mountPath: /opt/ibm/app/ssl
360389
- name: tls-override
361390
mountPath: /opt/ol/wlp/usr/servers/defaultServer/configDropins/overrides/
362391
- name: jvmlogs

ibm-connectivity-pack/templates/role.yaml

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,58 +11,22 @@ rules:
1111
- verbs:
1212
- get
1313
- list
14-
- create
15-
- patch
16-
- delete
1714
apiGroups:
1815
- ''
1916
resources:
2017
- services
2118
- endpoints
22-
- verbs:
23-
- get
24-
apiGroups:
25-
- apps
26-
resources:
27-
- statefulsets
28-
- verbs:
29-
- get
30-
- list
31-
apiGroups:
32-
- batch
33-
resources:
34-
- jobs
3519
- verbs:
3620
- get
3721
- list
38-
- create
39-
- patch
40-
- delete
41-
apiGroups:
42-
- apps
43-
resources:
44-
- deployments
45-
- verbs:
46-
- get
4722
- update
48-
- delete
49-
- create
5023
- patch
5124
apiGroups:
5225
- ''
5326
resources:
5427
- secrets
55-
- verbs:
56-
- get
57-
- update
58-
- delete
59-
- create
60-
- list
61-
apiGroups:
62-
- appconnect.ibm.com
63-
resources:
64-
- configurations
65-
28+
resourceNames:
29+
- {{ include "ibm-connectivity-pack.tokenStore" . | quote }}
6630
---
6731
{{- if eq .Values.skipHooks false }}
6832
apiVersion: rbac.authorization.k8s.io/v1
@@ -80,5 +44,11 @@ metadata:
8044
rules:
8145
- apiGroups: [""]
8246
resources: ["secrets"]
83-
verbs: ["create", "get", "list", "update", "patch", "delete"]
47+
verbs: ["create"]
48+
- apiGroups: [""]
49+
resources: ["secrets"]
50+
verbs: ["get", "list", "update", "patch", "delete"]
51+
resourceNames:
52+
- {{ include "ibm-connectivity-pack.stunnelClient" . | quote }}
53+
- {{ include "ibm-connectivity-pack.stunnelServer" .| quote }}
8454
{{ end }}

ibm-connectivity-pack/templates/serviceaccount.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ metadata:
1010
secrets:
1111
- name: {{ include "ibm-connectivity-pack.imagePullSecretname" . }}
1212
imagePullSecrets:
13-
- name: ibm-entitlement-key
1413
- name: {{ include "ibm-connectivity-pack.imagePullSecretname" . }}
1514

1615
---

ibm-connectivity-pack/templates/uninstallPostHook.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ spec:
3232
seccompProfile:
3333
type: RuntimeDefault
3434
image: {{ .Values.image.registry }}/{{ .Values.image.path }}/{{ .Values.preHook.image }}@{{ .Values.preHook.digest }}
35+
resources:
36+
requests:
37+
cpu: 50m
38+
memory: 64Mi
39+
limits:
40+
cpu: 100m
41+
memory: 128Mi
3542
command:
3643
- /bin/sh
3744
- "-c"

ibm-connectivity-pack/values.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ license:
1313
replicaCount: 1 # Replica of the POD
1414
bunyan: "'{\"loglevel\" : \"info\", \"logsrc\" : true, \"logstdouttext\" : {}}'" # Override Log configuration
1515
environmentVariables: {} # Yaml object ENV to be added on action and event pods
16-
enableRefreshTokenMode: false
16+
enableRefreshTokenMode: true
17+
strictdiscoveryaccount: true
18+
openapiSchemaNoAnonymousTypes: false
19+
enableLegacyApiVersions: false
1720
annotations:
1821
productID: "0c44732a8b794b2d9e9b842b2dfc8361"
1922
productName: "IBM Connectivity Pack - Free"
@@ -49,15 +52,15 @@ basicAuth:
4952
username: 'csuser'
5053
preHook:
5154
image: connectivity-pack-prehook
52-
digest: sha256:6d38a8f6d32750dd832e61dcb484d555fe8d5f66d212d2505200d1c3342103e9
53-
tag: 3.1.0
55+
digest: sha256:5cd94eff588f81b0ca361dcf926abdd64a6ef8ca88a4b36b0d3293b4fac33f12
56+
tag: 3.1.1-beta
5457
action:
5558
name: action-connectors
5659
fileStreamingTimeout: '120000'
5760
udaPersistentVolumeClaimName: ''
5861
maxFileSize: '262144000'
5962
image: action-connectors
60-
digest: sha256:74c16dcb6fc04f09f924584979600de15d6ec47dd9206509a0de72375bd19120
63+
digest: sha256:28f9c6420cd9b2565715b85a9c04401d244e684a9b3a47e6b58b3b114c3b9a96
6164
resources: # Update below value for vertical scaling of container
6265
limits:
6366
cpu: '1'
@@ -67,12 +70,12 @@ action:
6770
cpu: 250m
6871
ephemeral-storage: 5Gi
6972
memory: 400Mi
70-
tag: 3.1.0
73+
tag: 3.1.1-beta
7174
event:
7275
enable: true # Set to true if Event container is needed
7376
name: event-connectors
7477
image: event-connectors # Update image
75-
digest: sha256:71139de912870c6d072dc42ce6690ce47b6dc809f62275a467c317ae53c4fab7
78+
digest: sha256:40a5c0451f5a052ee8945a64c112646cf487aa5a5ee544b0fdd5cc6c4ad2e192
7679
resources: # Update below value for vertical scaling of container
7780
limits:
7881
cpu: '1'
@@ -82,7 +85,7 @@ event:
8285
cpu: 250m
8386
ephemeral-storage: 5Gi
8487
memory: 400Mi
85-
tag: 3.1.0
88+
tag: 3.1.1-beta
8689
javaservice:
8790
enable: false
8891
autoScaling:

0 commit comments

Comments
 (0)