Skip to content

Commit

Permalink
add innlandetfylke to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Battlestad committed Aug 30, 2023
1 parent 067d531 commit bdd4cf9
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
- org: fintlabs-no
cluster: aks-beta-fint-2021-11-23

- org: innlandetfylke-no
cluster: aks-beta-fint-2021-11-23

- org: viken-no
cluster: aks-api-fint-2022-02-08
- org: viken-no
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/MD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ on:
default: 'warning'
type: choice
options:
- fintlabs-no
- innlandetfylke-no
- viken-no
- vlfk-no
- trondelagfylke-no
Expand Down
47 changes: 47 additions & 0 deletions kustomize/overlays/innlandetfylke-no/alpha/flais.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: fintlabs.no/v1alpha1
kind: Application
metadata:
name: fint-resource-gateway
namespace: fintlabs-no
labels:
app.kubernetes.io/name: fint-resource-gateway
app.kubernetes.io/instance: fint-resource-gateway_fintlabs_no
app.kubernetes.io/version: latest
app.kubernetes.io/component: backend
app.kubernetes.io/part-of: fint-flyt
fintlabs.no/team: flyt
fintlabs.no/org-id: fintlabs.no
spec:
port: 8080
imagePullPolicy: Always
orgId: fintlabs.no
image: ghcr.io/fintlabs/fint-resource-gateway:sha-0000000
kafka:
enabled: true
acls:
- permission: admin
topic: 'no-permission'
env:
- name: JAVA_TOOL_OPTIONS
value: '-XX:+ExitOnOutOfMemoryError -Xmx1840M'
- name: fint.client.base-url
value: path
- name: fint.flyt.resource-gateway.authorization.enable
value: 'true'
onePassword:
itemPath: "vaults/aks-alpha-vault/items/fint-flyt-archive-fint-client-innlandetfylke-no"
envFrom:
- secretRef:
name: fint-resource-gateway-op
resources:
limits:
memory: "4Gi"
cpu: "1"
requests:
memory: "4Gi"
cpu: "100m"
restartPolicy: Always
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate: { maxSurge: 1, maxUnavailable: 0 }
27 changes: 27 additions & 0 deletions kustomize/overlays/innlandetfylke-no/alpha/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: innlandetfylke-no

resources:
- flais.yaml

commonLabels:
fintlabs.no/org-id: innlandetfylke.no

patches:
- patch: |-
- op: replace
path: "/metadata/labels/app.kubernetes.io~1instance"
value: "fint-resource-gateway_innlandetfylke_no"
- op: replace
path: "/spec/kafka/acls/0/topic"
value: "innlandetfylke-no.flyt.*"
- op: replace
path: "/spec/orgId"
value: "innlandetfylke.no"
- op: replace
path: "/spec/env/1/value"
value: "https://beta.felleskomponent.no"
target:
kind: Application
name: fint-resource-gateway
38 changes: 38 additions & 0 deletions kustomize/overlays/innlandetfylke-no/api/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: innlandetfylke-no

resources:
- ../../../base

commonLabels:
fintlabs.no/org-id: innlandetfylke.no

patches:
- patch: |-
- op: replace
path: "/metadata/labels/app.kubernetes.io~1instance"
value: "fint-resource-gateway_innlandetfylke_no"
- op: replace
path: "/spec/kafka/acls/0/topic"
value: "innlandetfylke-no.flyt.*"
- op: replace
path: "/spec/orgId"
value: "innlandetfylke.no"
- op: replace
path: "/spec/env/1/value"
value: "https://api.felleskomponent.no"
target:
kind: Application
name: fint-resource-gateway
- patch: |-
- op: replace
path: "/metadata/labels/app.kubernetes.io~1instance"
value: "fint-flyt-archive-fint-client_innlandetfylke_no"
- op: replace
path: "/spec/orgId"
value: "innlandetfylke.no"
target:
kind: FintClient
name: fint-flyt-archive-fint-client
39 changes: 39 additions & 0 deletions kustomize/overlays/innlandetfylke-no/beta/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: innlandetfylke-no

resources:
- ../../../base

commonLabels:
fintlabs.no/org-id: innlandetfylke.no

patches:
- patch: |-
- op: replace
path: "/metadata/labels/app.kubernetes.io~1instance"
value: "fint-resource-gateway_innlandetfylke_no"
- op: replace
path: "/spec/kafka/acls/0/topic"
value: "innlandetfylke-no.flyt.*"
- op: replace
path: "/spec/orgId"
value: "innlandetfylke.no"
- op: replace
path: "/spec/env/1/value"
value: "https://beta.felleskomponent.no"
target:
kind: Application
name: fint-resource-gateway
- patch: |-
- op: replace
path: "/metadata/labels/app.kubernetes.io~1instance"
value: "fint-flyt-archive-fint-client_innlandetfylke_no"
- op: replace
path: "/spec/orgId"
value: "innlandetfylke.no"
target:
kind: FintClient
name: fint-flyt-archive-fint-client

0 comments on commit bdd4cf9

Please sign in to comment.