Skip to content

Commit

Permalink
IS-1488: Fix url for unleash api
Browse files Browse the repository at this point in the history
  • Loading branch information
vetlesolgaard committed Aug 21, 2023
1 parent b61b607 commit f79d119
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 8 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/unleash-apitoken.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Unleash api-tokens

on:
merge_group:
pull_request:
paths:
- .github/workflows/unleash-apitoken.yaml
- .nais//unleash/unleash-apitoken-dev.yaml
- .nais//unleash/unleash-apitoken-prod.yaml
push:
branches:
- main
paths:
- .github/workflows/unleash-apitoken.yaml
- .nais//unleash/unleash-apitoken-dev.yaml
- .nais/unleash/unleash-apitoken-dev.yaml

jobs:
apply-apitoken-unleash:
name: Apply ApiToken for Unleash to cluster
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref_name == 'main'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: deploy to dev
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .nais/unleash/unleash-apitoken-dev.yaml
- name: deploy to prod
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: .nais/unleash/unleash-apitoken-prod.yaml
2 changes: 1 addition & 1 deletion .nais/naiserator-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
external:
- host: "login.microsoftonline.com"
- host: "unleash.nais.io"
- host: "https://teamsykefravr-unleash-api.nav.cloud.nais.io/api"
- host: "teamsykefravr-unleash-api.nav.cloud.nais.io"
- host: "internarbeidsflatedecorator-q1.dev-fss-pub.nais.io"
- host: "modiacontextholder-q1.dev-fss-pub.nais.io"
- host: "ereg-services-q1.dev-fss-pub.nais.io"
Expand Down
3 changes: 2 additions & 1 deletion .nais/naiserator-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
external:
- host: "login.microsoftonline.com"
- host: "unleash.nais.io"
- host: "https://teamsykefravr-unleash-api.nav.cloud.nais.io/api"
- host: "teamsykefravr-unleash-api.nav.cloud.nais.io"
- host: "internarbeidsflatedecorator.prod-fss-pub.nais.io"
- host: "modiacontextholder.prod-fss-pub.nais.io"
- host: "ereg-services.prod-fss-pub.nais.io"
Expand Down Expand Up @@ -79,6 +79,7 @@ spec:
envFrom:
- secret: syfomodiaperson-session-key
- secret: syfomodiaperson-redis-password
- secret: syfomodiaperson-unleash-api-token
ingresses:
- "https://syfomodiaperson.intern.nav.no"
env:
Expand Down
3 changes: 0 additions & 3 deletions .nais/unleash/unleash-apitoken-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ spec:
kind: RemoteUnleash
name: teamsykefravr
secretName: syfomodiaperson-unleash-api-token

# Specify which environment the API token should be created for.
# Can be one of: development, or production.
environment: development
3 changes: 0 additions & 3 deletions .nais/unleash/unleash-apitoken-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ spec:
kind: RemoteUnleash
name: teamsykefravr
secretName: syfomodiaperson-unleash-api-token

# Specify which environment the API token should be created for.
# Can be one of: development, or production.
environment: production
Empty file added server/routes/unleashNext.ts
Empty file.

0 comments on commit f79d119

Please sign in to comment.