Skip to content

Commit 4b65985

Browse files
authored
Rydder opp i bygg og oppsett. (#2533)
1 parent 7f291a9 commit 4b65985

File tree

9 files changed

+4
-206
lines changed

9 files changed

+4
-206
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 14 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 51 deletions
This file was deleted.

.devcontainer/docker-compose.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.devcontainer/postAttachCommand.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -32,71 +32,6 @@ jobs:
3232
push-image: ${{ github.ref_name == 'master' }} # default: false
3333
secrets: inherit
3434

35-
build-push-docker-image-ghcr-k9-verdikjede:
36-
name: Build og push til ghcr og trigg k9-verdikjede
37-
permissions:
38-
contents: read
39-
packages: write
40-
runs-on: ubuntu-latest
41-
needs: build-app
42-
if: github.ref_name == 'master'
43-
steps:
44-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # ratchet:actions/checkout@v4
45-
- name: Setup java and maven
46-
uses: navikt/fp-gha-workflows/.github/actions/setup-java-and-maven@main # ratchet:exclude
47-
with:
48-
github-token: ${{ (github.actor != 'dependabot[bot]' && secrets.READER_TOKEN) || secrets.GITHUB_TOKEN }}
49-
- name: Maven install and test
50-
id: build-and-test
51-
uses: navikt/fp-gha-workflows/.github/actions/build-maven-application@main # ratchet:exclude
52-
with:
53-
skip-tests: 'true'
54-
- name: Login to GitHub Packages Docker Registry
55-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
56-
with:
57-
registry: ghcr.io
58-
username: ${{ github.actor }}
59-
password: ${{ secrets.GITHUB_TOKEN }}
60-
- name: Set up QEMU
61-
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # ratchet:docker/setup-qemu-action@v2
62-
- name: Set up Docker Buildx
63-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # ratchet:docker/setup-buildx-action@v2
64-
- name: Docker meta
65-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # ratchet:docker/metadata-action@v4
66-
id: meta
67-
with:
68-
images: ghcr.io/${{ github.repository }}
69-
tags: type=raw,value=latest,enable={{is_default_branch}}
70-
- name: Bygg og push docker image
71-
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # ratchet:docker/build-push-action@v4
72-
id: build_push
73-
with:
74-
context: "."
75-
file: "Dockerfile"
76-
platforms: "linux/amd64"
77-
pull: true
78-
push: true
79-
tags: ${{ steps.meta.outputs.tags }}
80-
labels: ${{ steps.meta.outputs.labels }}
81-
cache-from: type=gha
82-
cache-to: type=gha,mode=max
83-
- uses: navikt/github-app-token-generator@v1
84-
id: get-token
85-
with:
86-
private-key: ${{ secrets.FP_PRIVATE_KEY }} # Erstatt med K9SAKSBEHANDLING_PRIVATE_KEY
87-
app-id: ${{ secrets.FP_APP_ID }} # Erstatt med K9SAKSBEHANDLING_APP_ID
88-
- name: Trigger verdikjede test
89-
shell: bash
90-
run: |
91-
curl -XPOST -u "x-access-token:${{ steps.get-token.outputs.token }}" \
92-
-H "Accept: application/vnd.github.v3+json" \
93-
https://api.github.com/repos/navikt/k9-verdikjede/actions/workflows/build.yml/dispatches \
94-
-d '{"ref":"master",
95-
"inputs":{
96-
"trigger": "${{ github.repository }}",
97-
"version": "latest"
98-
}}'
99-
10035
release-drafter:
10136
name: Update
10237
if: github.ref_name == 'master'

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,5 @@ Det er mulig å kalle tjenesten med bruk av følgende tokens
5050
- Azure OBO med følgende rettigheter:
5151
- fpsak-saksbehandler
5252
- fpsak-veileder
53-
- k9-saksbehandler
54-
- k9-veileder
5553
- abakus-drift
5654
- STS (fases ut)

web/src/main/java/no/nav/foreldrepenger/abakus/app/healthcheck/HealthCheckRestService.java

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import no.nav.vedtak.log.metrics.LivenessAware;
2424
import no.nav.vedtak.log.metrics.ReadinessAware;
2525

26-
@Path("/")
26+
@Path("/health")
2727
@Produces(TEXT_PLAIN)
2828
@RequestScoped
2929
public class HealthCheckRestService {
@@ -62,7 +62,7 @@ private static CacheControl cacheControl() {
6262
}
6363

6464
@GET
65-
@Path("/health/isAlive")
65+
@Path("/isAlive")
6666
@Operation(description = "Sjekker om poden lever", tags = "nais", hidden = true)
6767
public Response isAlive() {
6868
if (live.stream().allMatch(LivenessAware::isAlive)) {
@@ -72,19 +72,8 @@ public Response isAlive() {
7272
return Response.serverError().cacheControl(CC).build();
7373
}
7474

75-
/**
76-
* @deprecated Både k9-verdikjede og fpsak-autotest trenger å bytte til det nye endepunkt /internal/health/isAlive
77-
*/
78-
@Deprecated(since = "03.2023", forRemoval = true)
79-
@GET
80-
@Path("/isAlive")
81-
@Operation(description = "Sjekker om poden lever", tags = "nais", hidden = true)
82-
public Response isAliveDeprecated() {
83-
return isAlive();
84-
}
85-
8675
@GET
87-
@Path("/health/isReady")
76+
@Path("/isReady")
8877
@Operation(description = "sjekker om poden er klar", tags = "nais", hidden = true)
8978
public Response isReady() {
9079
if (ready.stream().allMatch(ReadinessAware::isReady)) {
@@ -94,19 +83,8 @@ public Response isReady() {
9483
return Response.status(SERVICE_UNAVAILABLE).cacheControl(CC).build();
9584
}
9685

97-
/**
98-
* @deprecated Både k9-verdikjede og fpsak-autotest trenger å bytte til det nye endepunkt /internal/health/isReady
99-
*/
100-
@Deprecated(since = "03.2023", forRemoval = true)
101-
@GET
102-
@Path("/isReady")
103-
@Operation(description = "sjekker om poden er klar", tags = "nais", hidden = true)
104-
public Response isReadyDeprecated() {
105-
return isReady();
106-
}
107-
10886
@GET
109-
@Path("/health/preStop")
87+
@Path("/preStop")
11088
@Operation(description = "Kalles på før stopp", tags = "nais", hidden = true)
11189
public Response preStop() {
11290
LOG.info("/preStop endepunkt kalt.");

web/src/test/resources/application-local.properties

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ systembruker.password=vtp
1010
# ABAC
1111
abac.pdp.endpoint.url=http://localhost:8060/rest/asm-pdp/authorize
1212

13-
# OIDC/OPENAM - fjerne ASAP k9-vk er over
14-
oidc.open.am.well.known.url=http://localhost:8060/rest/isso/oauth2/.well-known/openid-configuration
15-
oidc.open.am.client.id=fpabakus-localhost
16-
# oidc.open.am.client.secret=<trenges ikke>
17-
1813
# OIDC/STS
1914
oidc.sts.well.known.url=http://localhost:8060/rest/v1/sts/.well-known/openid-configuration
2015

web/src/test/resources/application-vtp.properties

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ systembruker.password=vtp
1010
# ABAC
1111
abac.pdp.endpoint.url=http://localhost:8060/rest/asm-pdp/authorize
1212

13-
# OIDC/OPENAM - fjerne ASAP k9-vk er over
14-
oidc.open.am.well.known.url=http://localhost:8060/rest/isso/oauth2/.well-known/openid-configuration
15-
oidc.open.am.client.id=fpabakus-localhost
16-
# oidc.open.am.client.secret=<trenges ikke>
17-
1813
# OIDC/STS
1914
oidc.sts.well.known.url=http://localhost:8060/rest/v1/sts/.well-known/openid-configuration
2015

0 commit comments

Comments
 (0)