-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add topic for publishing trenger hjelp fra nav (#91)
- Loading branch information
1 parent
b2cd12c
commit 0242370
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "Deploy topic" | ||
on: | ||
push: | ||
paths: | ||
- nais/topics/** | ||
- .github/workflows/topic.yaml | ||
jobs: | ||
deploy-topic-to-dev: | ||
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/topic-') | ||
name: Deploy topic to dev | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Deploy lps topic to dev | ||
uses: nais/deploy/actions/deploy@v2 | ||
env: | ||
CLUSTER: dev-gcp | ||
RESOURCE: nais/topics/lps-topic.yaml | ||
VARS: nais/topics/dev.json | ||
|
||
deploy-topic-to-prod: | ||
if: github.ref == 'refs/heads/main' | ||
name: Deploy topic to prod | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Deploy lps topic to prod | ||
uses: nais/deploy/actions/deploy@v2 | ||
env: | ||
CLUSTER: prod-gcp | ||
RESOURCE: nais/topics/lps-topic.yaml | ||
VARS: nais/topics/prod.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"kafkaPool": "nav-dev" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: kafka.nais.io/v1 | ||
kind: Topic | ||
metadata: | ||
name: aapen-syfo-oppfolgingsplan-lps-nav-v2 | ||
namespace: team-esyfo | ||
labels: | ||
team: team-esyfo | ||
spec: | ||
pool: {{kafkaPool}} | ||
config: | ||
cleanupPolicy: delete | ||
minimumInSyncReplicas: 1 | ||
partitions: 1 | ||
replication: 3 | ||
retentionBytes: -1 # Messages will never be deleted because of disk space | ||
retentionHours: -1 # Messages will never be timed out | ||
acl: | ||
- team: team-esyfo | ||
application: lps-oppfolgingsplan-mottak | ||
access: write | ||
- team: teamsykefravr | ||
application: ispersonoppgave | ||
access: read | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"kafkaPool": "nav-prod" | ||
} |