Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Commit 3393b00

Browse files
authored
feat: Update job-executor to Keptn 0.12 (#173)
Signed-off-by: Paolo Chila <paolo.chila@dynatrace.com>
1 parent 467df1a commit 3393b00

File tree

5 files changed

+64
-26
lines changed

5 files changed

+64
-26
lines changed

chart/templates/deployment.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,10 @@ spec:
9393
configMapKeyRef:
9494
name: job-service-config
9595
key: enable_kubernetes_api_access
96-
livenessProbe:
97-
httpGet:
98-
path: /health
99-
port: 10999
10096
resources:
10197
{{- toYaml .Values.resources | nindent 12 }}
10298
- name: distributor
10399
image: "{{ .Values.distributor.image.repository }}:{{ .Values.distributor.image.tag | default .Chart.AppVersion }}"
104-
livenessProbe:
105-
httpGet:
106-
path: /health
107-
port: 10999
108-
initialDelaySeconds: 5
109-
periodSeconds: 5
110100
imagePullPolicy: Always
111101
ports:
112102
- containerPort: 8080
@@ -135,6 +125,8 @@ spec:
135125
value: "{{ .Values.distributor.projectFilter }}"
136126
- name: SERVICE_FILTER
137127
value: "{{ .Values.distributor.serviceFilter }}"
128+
- name: DISTRIBUTOR_VERSION
129+
value: {{ .Values.distributor.image.tag | default .Chart.AppVersion }}
138130
- name: VERSION
139131
valueFrom:
140132
fieldRef:
@@ -163,6 +155,12 @@ spec:
163155
- name: HTTP_SSL_VERIFY
164156
value: "{{ .Values.remoteControlPlane.api.apiValidateTls | default "true" }}"
165157
{{- end }}
158+
{{- if .Values.distributor.config.queueGroup.enabled }}
159+
- name: PUBSUB_GROUP
160+
valueFrom:
161+
fieldRef:
162+
fieldPath: metadata.labels['app.kubernetes.io/name']
163+
{{- end }}
166164

167165
{{- with .Values.nodeSelector }}
168166
nodeSelector:

chart/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ distributor:
1818
image:
1919
repository: docker.io/keptn/distributor # Container Image Name
2020
pullPolicy: IfNotPresent # Kubernetes Image Pull Policy
21-
tag: "0.10.0" # Container Tag
21+
tag: "0.12.2" # Container Tag
22+
config:
23+
queueGroup:
24+
enabled: true # Enable connection via Nats queue group to support exactly-once message processing
2225

2326
remoteControlPlane:
2427
enabled: false # Enables remote execution plane mode

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/golang/mock v1.6.0
1010
github.com/google/gofuzz v1.2.0 // indirect
1111
github.com/kelseyhightower/envconfig v1.4.0
12-
github.com/keptn/go-utils v0.10.0
12+
github.com/keptn/go-utils v0.12.0
1313
github.com/keptn/kubernetes-utils v0.9.0
1414
github.com/spf13/afero v1.8.1
1515
go.uber.org/multierr v1.6.0 // indirect

0 commit comments

Comments
 (0)