Skip to content

Commit

Permalink
Merge pull request #181 from navikt/feature/PEK-851-feature-toggle-fo…
Browse files Browse the repository at this point in the history
…r-spk-simulering

Feature/pek 851 feature toggle for spk simulering
  • Loading branch information
antonfofanov authored Dec 9, 2024
2 parents b378234 + 7d890cf commit 3c7cdf2
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ jobs:
name: Deploy to prod
env:
CLUSTER: prod-gcp
RESOURCE: .nais/nais-prod-gcp.yaml
RESOURCE: .nais/nais-prod-gcp.yaml,unleash-apitoken-prod.yaml
IMAGE: ${{ needs.build.outputs.image }}
2 changes: 1 addition & 1 deletion .github/workflows/manual_deploy_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ jobs:
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-gcp
RESOURCE: .nais/nais-dev-gcp.yaml
RESOURCE: .nais/nais-dev-gcp.yaml,.nais/unleash-apitoken-dev.yaml
IMAGE: ${{ needs.build.outputs.image }}
2 changes: 2 additions & 0 deletions .nais/nais-dev-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ spec:
value: api://dev-fss.pensjonselvbetjening.pensjon-selvbetjening-fss-gateway/.default
- name: OTEL_RESOURCE_ATTRIBUTES
value: deployment.environment.name=q2
envFrom:
- secret: tjenestepensjon-simulering-unleash-api-token
prometheus:
enabled: true
path: actuator/prometheus
Expand Down
2 changes: 2 additions & 0 deletions .nais/nais-prod-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ spec:
value: api://prod-fss.pensjonselvbetjening.pensjon-selvbetjening-fss-gateway/.default
- name: OTEL_RESOURCE_ATTRIBUTES
value: deployment.environment.name=p
envFrom:
- secret: tjenestepensjon-simulering-unleash-api-token
prometheus:
enabled: true
path: actuator/prometheus
Expand Down
14 changes: 14 additions & 0 deletions .nais/unleash-apitoken-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: unleash.nais.io/v1
kind: ApiToken
metadata:
name: tjenestepensjon-simulering
namespace: pensjonskalkulator
labels:
team: pensjonskalkulator
spec:
unleashInstance:
apiVersion: unleash.nais.io/v1
kind: RemoteUnleash
name: pensjonskalkulator
secretName: tjenestepensjon-simulering-unleash-api-token
environment: development
14 changes: 14 additions & 0 deletions .nais/unleash-apitoken-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: unleash.nais.io/v1
kind: ApiToken
metadata:
name: tjenestepensjon-simulering
namespace: pensjonskalkulator
labels:
team: pensjonskalkulator
spec:
unleashInstance:
apiVersion: unleash.nais.io/v1
kind: RemoteUnleash
name: pensjonskalkulator
secretName: tjenestepensjon-simulering-unleash-api-token
environment: production

0 comments on commit 3c7cdf2

Please sign in to comment.