diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61b52b5b..95544b9f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,7 +41,7 @@ on: - voltage_init_server_updated - case_import_server_updated - gridadmin_app_updated - - spreadsheet_config_server_updated + - study_config_server_updated jobs: build: diff --git a/README.md b/README.md index 2d6c3f3c..d4bdb79b 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ http://localhost:5033/swagger-ui.html // user-admin-server http://localhost:5034/swagger-ui.html // user-identity-server http://localhost:5030/swagger-ui.html // sensitivity-analysis-server http://localhost:5031/swagger-ui.html // shortcircuit-server -http://localhost:5035/swagger-ui.html // spreadsheet-config-server +http://localhost:5035/swagger-ui.html // study-config-server http://localhost:5037/swagger-ui.html // timeseries-server http://localhost:5038/swagger-ui.html // voltage-init-server http://localhost:5039/swagger-ui.html // case-import-server @@ -421,7 +421,7 @@ http:///shortcircuit-server/swagger-ui.html http:///timeseries-server/swagger-ui.html http:///voltage-init-server/swagger-ui.html http:///case-import-server/swagger-ui.html -http:///spreadsheet-config-server/swagger-ui.html +http:///study-config-server/swagger-ui.html ``` ## How to use a local docker image into Minikube? diff --git a/docker-compose/docker-compose.base.yml b/docker-compose/docker-compose.base.yml index 7dcc26fd..9b9d5f1c 100644 --- a/docker-compose/docker-compose.base.yml +++ b/docker-compose/docker-compose.base.yml @@ -130,7 +130,7 @@ services: limits: memory: 384m - spreadsheet-config-server: + study-config-server: profiles: - all - suite @@ -139,11 +139,11 @@ services: - dynamic-mapping - dynamic-simulation - import - image: gridsuite/spreadsheet-config-server:latest + image: gridsuite/study-config-server:latest ports: - 5035:80 volumes: - - $PWD/../../k8s/resources/common/config/spreadsheet-config-server-application.yml:/config/specific/application.yml:Z + - $PWD/../../k8s/resources/common/config/study-config-server-application.yml:/config/specific/application.yml:Z - $PWD/../../k8s/resources/common/config/common-application.yml:/config/common/application.yml:Z restart: unless-stopped depends_on: diff --git a/docker-compose/technical/create-postgres-databases.sh b/docker-compose/technical/create-postgres-databases.sh index 0571240e..2d2165f1 100755 --- a/docker-compose/technical/create-postgres-databases.sh +++ b/docker-compose/technical/create-postgres-databases.sh @@ -27,7 +27,7 @@ psql --username $POSTGRES_USER --dbname $POSTGRES_DEFAULT_DB <<-EOSQL create database "${DATABASE_PREFIX_NAME}voltageinit"; create database "${DATABASE_PREFIX_NAME}loadflow"; create database "${DATABASE_PREFIX_NAME}stateestimation"; - create database "${DATABASE_PREFIX_NAME}spreadsheetconfig"; + create database "${DATABASE_PREFIX_NAME}studyconfig"; create database "${DATABASE_PREFIX_NAME}useridentity_oidcreplication"; EOSQL } diff --git a/k8s/live/local/kustomization.yaml b/k8s/live/local/kustomization.yaml index 416d942a..031997f5 100644 --- a/k8s/live/local/kustomization.yaml +++ b/k8s/live/local/kustomization.yaml @@ -43,7 +43,7 @@ resources: - shortcircuit-server-ingress.yaml - timeseries-server-ingress.yaml - voltage-init-server-ingress.yaml - - spreadsheet-config-server-ingress.yaml + - study-config-server-ingress.yaml configMapGenerator: - name: gridapps-env-configmap diff --git a/k8s/live/local/spreadsheet-config-server-ingress.yaml b/k8s/live/local/study-config-server-ingress.yaml similarity index 77% rename from k8s/live/local/spreadsheet-config-server-ingress.yaml rename to k8s/live/local/study-config-server-ingress.yaml index 1d000058..003fd8cc 100644 --- a/k8s/live/local/spreadsheet-config-server-ingress.yaml +++ b/k8s/live/local/study-config-server-ingress.yaml @@ -1,14 +1,14 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: spreadsheet-config-server-ingress + name: study-config-server-ingress annotations: nginx.ingress.kubernetes.io/configuration-snippet: | # our containers host at '/' so can't possibly make a difference between # '/XXX/' and '/XXX' (trailing slash) (which would respectively become # '/' and '' inside the container but an empty path doesn't exist in http) # so always redirect '/XXX' to '/XXX/' in the client outside the container - rewrite ^/spreadsheet-config-server$ /spreadsheet-config-server/ permanent; + rewrite ^/study-config-server$ /study-config-server/ permanent; # springfox swagger-ui uses X-Forwarded-Prefix to find the # base url when behind a reverse proxy. @@ -16,11 +16,11 @@ metadata: # (nginx.ingress.kubernetes.io/x-forwarded-prefix) # but it only works when using rewrite-target, which we can't use because # we have properly encoded slashs in urls - proxy_set_header X-Forwarded-Prefix /spreadsheet-config-server/; + proxy_set_header X-Forwarded-Prefix /study-config-server/; # using this instead of standard rewrite as a workaround to avoid decoding slashes in urls # we sometimes have ids in the urls that contain properly encoded slashes - if ($request_uri ~ "^/spreadsheet-config-server(/.*)") { + if ($request_uri ~ "^/study-config-server(/.*)") { proxy_pass http://upstream_balancer$1; break; } @@ -28,10 +28,10 @@ spec: rules: - http: paths: - - path: /spreadsheet-config-server(/|$) + - path: /study-config-server(/|$) pathType: Prefix backend: service: - name: spreadsheet-config-server + name: study-config-server port: number: 80 diff --git a/k8s/resources/common/config/spreadsheet-config-server-application.yml b/k8s/resources/common/config/study-config-server-application.yml similarity index 100% rename from k8s/resources/common/config/spreadsheet-config-server-application.yml rename to k8s/resources/common/config/study-config-server-application.yml diff --git a/k8s/resources/common/kustomization.yaml b/k8s/resources/common/kustomization.yaml index 01dfe1e2..93f9c581 100644 --- a/k8s/resources/common/kustomization.yaml +++ b/k8s/resources/common/kustomization.yaml @@ -36,8 +36,8 @@ resources: - config-notification-server-service.yaml - user-admin-server-deployment.yaml - user-admin-server-service.yaml - - spreadsheet-config-server-deployment.yaml - - spreadsheet-config-server-service.yaml + - study-config-server-deployment.yaml + - study-config-server-service.yaml - user-identity-oidc-replication-server-deployment.yaml - user-identity-server-service.yaml @@ -98,9 +98,9 @@ configMapGenerator: - name: user-admin-server-configmap-specific files: - application.yml=config/user-admin-server-application.yml - - name: spreadsheet-config-server-configmap-specific + - name: study-config-server-configmap-specific files: - - application.yml=config/spreadsheet-config-server-application.yml + - application.yml=config/study-config-server-application.yml - name: user-identity-oidc-replication-server-configmap-specific files: - application.yml=config/user-identity-oidc-replication-server-application.yml diff --git a/k8s/resources/common/spreadsheet-config-server-deployment.yaml b/k8s/resources/common/study-config-server-deployment.yaml similarity index 52% rename from k8s/resources/common/spreadsheet-config-server-deployment.yaml rename to k8s/resources/common/study-config-server-deployment.yaml index aa152402..fd327afa 100644 --- a/k8s/resources/common/spreadsheet-config-server-deployment.yaml +++ b/k8s/resources/common/study-config-server-deployment.yaml @@ -1,9 +1,9 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: spreadsheet-config-server + name: study-config-server labels: - name: spreadsheet-config-server + name: study-config-server version: "1" app.kubernetes.io/component: gridsuite-springboot gridsuite.org/springboot-with-database: "true" @@ -12,19 +12,19 @@ metadata: spec: selector: matchLabels: - name: spreadsheet-config-server + name: study-config-server template: metadata: labels: - name: spreadsheet-config-server + name: study-config-server spec: containers: - name: main - image: docker.io/gridsuite/spreadsheet-config-server:latest + image: docker.io/gridsuite/study-config-server:latest volumeMounts: - mountPath: /config/specific - name: spreadsheet-config-server-configmap-specific-volume + name: study-config-server-configmap-specific-volume volumes: - - name: spreadsheet-config-server-configmap-specific-volume + - name: study-config-server-configmap-specific-volume configMap: - name: spreadsheet-config-server-configmap-specific + name: study-config-server-configmap-specific diff --git a/k8s/resources/common/spreadsheet-config-server-service.yaml b/k8s/resources/common/study-config-server-service.yaml similarity index 53% rename from k8s/resources/common/spreadsheet-config-server-service.yaml rename to k8s/resources/common/study-config-server-service.yaml index 4d6a966b..6236f4b8 100644 --- a/k8s/resources/common/spreadsheet-config-server-service.yaml +++ b/k8s/resources/common/study-config-server-service.yaml @@ -2,9 +2,9 @@ apiVersion: v1 kind: Service metadata: labels: - name: spreadsheet-config-server + name: study-config-server app.kubernetes.io/component: gridsuite-springboot - name: spreadsheet-config-server + name: study-config-server spec: selector: - name: spreadsheet-config-server + name: study-config-server