Skip to content

Commit 144c7db

Browse files
authored
integration cloudwatch (#8)
* integration cloudwatch * updated with condition * update * update * update * update
1 parent e693510 commit 144c7db

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

charts/aos/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: aos
33
description: Helm chart for Duplo OpenTelemetry stack
44
type: application
5-
version: 2.1.3
5+
version: 2.1.4
66
appVersion: "2.1.1"

charts/aos/templates/default-integrations-job.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ spec:
2525
sleep 10
2626
done
2727
echo "Triggering Duplo automation integration..."
28-
INTEGRATIONS="apm linuxnode kubernetes slo aws-cloudwatch mimir loki tempo duplo-common"
28+
INTEGRATIONS="apm linuxnode kubernetes slo mimir loki tempo duplo-common"
29+
if [ "{{ .Values.global.cloud }}" == "aws" ]; then
30+
INTEGRATIONS="$INTEGRATIONS aws-cloudwatch"
31+
fi
2932
for i in $INTEGRATIONS; do
3033
echo "Enabling $i"
3134
if ! curl --fail --silent --show-error --location "$DUPLO_AUTOMATION_ENDPOINT/enable-integration" \

charts/aos/templates/statefulsets.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ spec:
162162
value: "duplo-otel-alerting"
163163
- name: AOS_DUPLO_PORTAL_NAME
164164
value: "{{ .Values.global.customerName }}-{{ .Values.global.environment }}"
165+
{{- if eq .Values.global.cloud "aws" }}
165166
- name: AOS_REGION
166-
value: "{{ .Values.global.awsRegion }}"
167+
value: "{{ .Values.global.AOSRegion }}"
168+
{{- end }}
167169
- name: DOCKER_IMAGE
168170
value: "{{ .Values.duploAutomation.image }}:{{ .Values.duploAutomation.imageTag | default .Values.global.release }}"
169171
volumeMounts:

charts/aos/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
global:
33
clusterName: "duploinfra-{{infraName}}"
44
duploAuthUrl: ""
5-
awsRegion: ""
5+
AOSRegion: ""
66
customerName: ""
77
environment: ""
88
namespace: ""

0 commit comments

Comments
 (0)