Skip to content

Commit 2b544bc

Browse files
committed
fix(argocd): update application destination name to use dynamic cluster name and adjust kustomization.yaml formatting
1 parent ebde1dc commit 2b544bc

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

application.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ resource "argocd_application" "keycloak" {
143143
}
144144

145145
destination {
146-
name = "ops"
146+
name = argocd_cluster.common.name
147147
namespace = "guardian"
148148
}
149149
}

keycloak/prod/kustomization.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- route.yaml
5-
- secret.yaml
6-
- admin.yaml
4+
- route.yaml
5+
# - secret.yaml
6+
# - admin.yaml
77

88
helmCharts:
9-
- name: keycloak
10-
releaseName: keycloak
11-
repo: https://codecentric.github.io/helm-charts
12-
valuesFile: values.yaml
13-
version: 18.x.x
9+
- name: keycloak
10+
releaseName: keycloak
11+
repo: https://codecentric.github.io/helm-charts
12+
valuesFile: values.yaml
13+
version: 18.x.x

keycloak/prod/values.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ keycloak:
33
persistence:
44
deployPostgres: false
55
replicas: 3
6-
extraEnv: |
6+
extraEnv: |
77
- name: JAVA_OPTS
88
value: >-
99
-XX:+UseContainerSupport
@@ -24,7 +24,7 @@ extraEnv: |
2424
- name: DB_VENDOR
2525
value: postgres
2626
- name: DB_ADDR
27-
value: "10.147.0.8"
27+
value: "pgm-7gogu826854l62i9.pg.rds.aliyuncs.com"
2828
- name: DB_PORT
2929
value: "5432"
3030
- name: DB_DATABASE
@@ -66,19 +66,17 @@ resources:
6666
serviceMonitor:
6767
enabled: true
6868

69-
7069
rbac:
7170
create: true
7271
rules:
73-
# RBAC rules for KUBE_PING
72+
# RBAC rules for KUBE_PING
7473
- apiGroups:
7574
- ""
7675
resources:
7776
- pods
7877
verbs:
7978
- get
8079
- list
81-
8280
#ingress:
8381
# enabled: true
8482
# ingressClassName: "traefik"
@@ -123,4 +121,4 @@ rbac:
123121
# tls:
124122
# - hosts:
125123
# - keycloak.example.com
126-
# secretName: "keycloak-tls"
124+
# secretName: "keycloak-tls"

0 commit comments

Comments
 (0)