Skip to content

Commit 91b9c3a

Browse files
committed
DEVOPS-2542 - remove loadbalancer information from values.yaml and read it instead from configmap
1 parent c230653 commit 91b9c3a

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
metadata:
@@ -28,11 +29,11 @@ spec:
2829
serviceRef:
2930
name: {{ .Values.main.name }}-service # route traffic to the created service
3031
port: {{ .Values.main.servicePort | default 80 }}
31-
targetGroupARN: {{ .Values.main.loadBalancer.targetGroupARN }}
32+
targetGroupARN: {{ $configMap.data.targetGroupARN }}
3233
networking:
3334
ingress:
3435
- from:
3536
- securityGroup:
36-
groupID: {{ .Values.main.loadBalancer.securityGroupID }}
37+
groupID: {{ $configMap.data.securityGroupID }}
3738
ports:
3839
- protocol: TCP

0 commit comments

Comments
 (0)