generated from FINTLabs/fint-spring-boot-template-project
-
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.
* clean whitespaces & use requiredArgsConstructor * only deploy to alpha * adjust postgres db * adjust local config * remove hikari schema * adjust base-url locally * trigger on push if branch is named november * fix small bugs & rename entity class * upgrade adapter-common library * add alpha deployment for fintlabs * only deploy to alpha * change image-name * upgrade FINT version * adjust dependencies & add java object sourceCompatibility * change base-url to alpha * deploy to beta * Add mapping to links and change database identificator * Improve empty value handeling * remove links * include rogfk in beta deployment * add rogfk to kustomize beta * only set beskrivelseGyldighetsPeriode if not null * remove rogfk from beta * returns exception if you put resource that does not excist in database --------- Co-authored-by: Hknots <hknots99@gmail.com> Co-authored-by: Trond Magnus Sevre <trond@fintlabs.no>
- Loading branch information
1 parent
9920e3b
commit cb4a31f
Showing
25 changed files
with
404 additions
and
45 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
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
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,12 @@ | ||
version: '3.7' | ||
services: | ||
postgres: | ||
image: postgres | ||
container_name: my_postgres | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: fint-personvern-kodeverk-adapter | ||
ports: | ||
- "5432:5432" | ||
restart: unless-stopped |
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 |
---|---|---|
@@ -1 +1 @@ | ||
apiVersion=3.13.10 | ||
apiVersion=3.18.1-rc-4 |
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,28 @@ | ||
apiVersion: fintlabs.no/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: fint-personvern-kodeverk-adapter | ||
namespace: fintlabs-no | ||
labels: | ||
app.kubernetes.io/name: fint-personvern-kodeverk-adapter | ||
app.kubernetes.io/instance: fint-personvern-kodeverk-adapter_fintlabs_no | ||
app.kubernetes.io/version: latest | ||
app.kubernetes.io/component: adapter | ||
app.kubernetes.io/part-of: fint-core | ||
fintlabs.no/team: core | ||
fintlabs.no/org-id: fintlabs.no | ||
spec: | ||
orgId: fintlabs.no | ||
image: ghcr.io/fintlabs/fint-personvern-kodeverk-adapter-database:latest | ||
env: | ||
- name: fint.adapter.base-url | ||
value: https://alpha.felleskomponent.no | ||
onePassword: | ||
itemPath: vaults/aks-alpha-vault/items/fint-personvern-kodeverk-adapter | ||
resources: | ||
limits: | ||
memory: 512Mi | ||
cpu: 500m | ||
requests: | ||
memory: 256Mi | ||
cpu: 250m |
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
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,28 @@ | ||
apiVersion: fintlabs.no/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: fint-personvern-kodeverk-adapter | ||
namespace: fintlabs-no | ||
labels: | ||
app.kubernetes.io/name: fint-personvern-kodeverk-adapter | ||
app.kubernetes.io/instance: fint-personvern-kodeverk-adapter_fintlabs_no | ||
app.kubernetes.io/version: latest | ||
app.kubernetes.io/component: adapter | ||
app.kubernetes.io/part-of: fint-core | ||
fintlabs.no/team: core | ||
fintlabs.no/org-id: fintlabs.no | ||
spec: | ||
orgId: fintlabs.no | ||
image: ghcr.io/fintlabs/fint-personvern-kodeverk-adapter-database:latest | ||
env: | ||
- name: fint.adapter.base-url | ||
value: https://beta.felleskomponent.no | ||
onePassword: | ||
itemPath: vaults/aks-beta-vault/items/fint-personvern-kodeverk-adapter | ||
resources: | ||
limits: | ||
memory: 512Mi | ||
cpu: 500m | ||
requests: | ||
memory: 256Mi | ||
cpu: 250m |
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
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,28 @@ | ||
apiVersion: fintlabs.no/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: fint-personvern-kodeverk-adapter | ||
namespace: rogfk-no | ||
labels: | ||
app.kubernetes.io/name: fint-personvern-kodeverk-adapter | ||
app.kubernetes.io/instance: fint-personvern-kodeverk-adapter_rogfk_no | ||
app.kubernetes.io/version: latest | ||
app.kubernetes.io/component: adapter | ||
app.kubernetes.io/part-of: fint-core | ||
fintlabs.no/team: core | ||
fintlabs.no/org-id: rogfk.no | ||
spec: | ||
orgId: rogfk.no | ||
image: ghcr.io/fintlabs/fint-personvern-kodeverk-adapter-database:latest | ||
env: | ||
- name: fint.adapter.base-url | ||
value: https://beta.felleskomponent.no | ||
onePassword: | ||
itemPath: vaults/aks-beta-vault/items/fint-personvern-kodeverk-adapter | ||
resources: | ||
limits: | ||
memory: 512Mi | ||
cpu: 500m | ||
requests: | ||
memory: 256Mi | ||
cpu: 250m |
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
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,7 @@ | ||
package no.fintlabs; | ||
|
||
public class NotInDataBaseException extends RuntimeException { | ||
public NotInDataBaseException(String message) { | ||
super(message); | ||
} | ||
} |
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
8 changes: 3 additions & 5 deletions
8
src/main/java/no/fintlabs/model/behandlingsgrunnlag/BehandlingsgrunnlagRepository.java
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
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
9 changes: 9 additions & 0 deletions
9
src/main/java/no/fintlabs/model/personopplysning/PersonopplysningJpaRepository.java
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,9 @@ | ||
package no.fintlabs.model.personopplysning; | ||
|
||
import no.fintlabs.model.personopplysning.model.PersonopplysningEntity; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface PersonopplysningJpaRepository extends JpaRepository<PersonopplysningEntity, String> { | ||
} |
Oops, something went wrong.