Skip to content

Commit

Permalink
added unique group-id for afk and bfk
Browse files Browse the repository at this point in the history
  • Loading branch information
Erling Jahr committed Nov 28, 2023
1 parent 8d81bbf commit 331978f
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ jobs:
cluster: aks-beta-fint-2021-11-23
- org: ofk-no
cluster: aks-api-fint-2022-02-08
- org: afk-no
cluster: aks-api-fint-2022-02-08
- org: bfk-no
cluster: aks-api-fint-2022-02-08

steps:
- name: Checkout repository
Expand Down
3 changes: 3 additions & 0 deletions kustomize/base/flais.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
value: "https://role-catalog.vigoiks.no/vigo/kontroll/user"
- name: fint.kontroll.authorization.authorized-org-id
value: "vigo.no"
- name: spring.kafka.consumer.group-id
value: 'fint-kontroll-user-catalog'

envFrom:
- configMapRef:
name: fint-environment
Expand Down
43 changes: 43 additions & 0 deletions kustomize/overlays/api/afk-no/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: afk-no
resources:
- ../../../base
commonLabels:
app.kubernetes.io/name: fint-kontroll-user-catalog
app.kubernetes.io/instance: fint-kontroll-user-catalog_afk-no
app.kubernetes.io/version: latest
app.kubernetes.io/component: backend
app.kubernetes.io/part-of: fint-kontroll
fintlabs.no/team: bas
fintlabs.no/org-id: afk.no
patches:
- patch: |-
- op: replace
path: "/spec/orgId"
value: "afk.no"
- op: replace
path: "/spec/env/0/value"
value: "https://role-catalog.vigoiks.no/vigo/kontroll/user"
- op: replace
path: "/spec/env/1/value"
value: "afk.no"
- op: replace
path: "/spec/env/2/value"
value: "afk-no-fint-kontroll-user-catalog"
- op: replace
path: "/spec/kafka/acls/0/topic"
value: "afk-no.kontroll.*"
- op: replace
path: "/spec/kafka/acls/1/topic"
value: "afk-no.kontroll.*"
- op: replace
path: "/spec/ingress/basePath"
value: "/afk-no/api/users"
- op: replace
path: "/spec/url/basePath"
value: "/afk-no"
target:
kind: Application
name: fint-kontroll-user-catalog
43 changes: 43 additions & 0 deletions kustomize/overlays/api/bfk-no/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: bfk-no
resources:
- ../../../base
commonLabels:
app.kubernetes.io/name: fint-kontroll-user-catalog
app.kubernetes.io/instance: fint-kontroll-user-catalog_bfk-no
app.kubernetes.io/version: latest
app.kubernetes.io/component: backend
app.kubernetes.io/part-of: fint-kontroll
fintlabs.no/team: bas
fintlabs.no/org-id: bfk.no
patches:
- patch: |-
- op: replace
path: "/spec/orgId"
value: "bfk.no"
- op: replace
path: "/spec/env/0/value"
value: "https://role-catalog.vigoiks.no/vigo/kontroll/user"
- op: replace
path: "/spec/env/1/value"
value: "bfk.no"
- op: replace
path: "/spec/env/2/value"
value: "bfk-no-fint-kontroll-user-catalog"
- op: replace
path: "/spec/kafka/acls/0/topic"
value: "bfk-no.kontroll.*"
- op: replace
path: "/spec/kafka/acls/1/topic"
value: "bfk-no.kontroll.*"
- op: replace
path: "/spec/ingress/basePath"
value: "/bfk-no/api/users"
- op: replace
path: "/spec/url/basePath"
value: "/bfk-no"
target:
kind: Application
name: fint-kontroll-user-catalog

0 comments on commit 331978f

Please sign in to comment.