Skip to content

Commit 2face1d

Browse files
committed
DEVOPS-2542 - remove loadbalancer information from values.yaml and read it instead from configmap
1 parent a25f5bf commit 2face1d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

charts/argocd-apps/Values.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ main:
1212
resources: {}
1313
port:
1414
replicaCount:
15-
loadBalancer:
16-
name:
17-
targetGroupARN:
18-
securityGroupID:
1915
worker:
2016
name:
2117
enabled:

charts/argocd-apps/templates/preexisting-lb.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ spec:
1919
app.kubernetes.io/component: web
2020
app.kubernetes.io/part-of: {{ $.Release.Name | quote }}
2121
---
22+
{{- $configMap := lookup "v1" "ConfigMap" {{ $.Release.Namespace | quote }} "network-config" }}
2223
apiVersion: elbv2.k8s.aws/v1beta1
2324
kind: TargetGroupBinding
2425
annotations:
@@ -35,11 +36,11 @@ spec:
3536
serviceRef:
3637
name: {{ .Values.main.name }}-service # route traffic to the created service
3738
port: {{ .Values.main.servicePort | default 80 }}
38-
targetGroupARN: {{ .Values.main.loadBalancer.targetGroupARN }}
39+
targetGroupARN: {{ $configMap.data.targetGroupARN }}
3940
networking:
4041
ingress:
4142
- from:
4243
- securityGroup:
43-
groupID: {{ .Values.main.loadBalancer.securityGroupID }}
44+
groupID: {{ $configMap.data.securityGroupID }}
4445
ports:
4546
- protocol: TCP

0 commit comments

Comments
 (0)