diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 213db9f9..c266ab34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,11 +19,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v3 with: distribution: temurin - java-version: 17 + java-version: 21 - name: Set current version run: mvn -B versions:set -DnewVersion=${GITHUB_REF##*/} -DprocessAllModules -DgenerateBackupPoms=false - name: Build with Maven @@ -37,11 +37,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v3 with: distribution: temurin - java-version: 17 + java-version: 21 - name: Check Spotless CodingStyle run: mvn spotless:check docker: diff --git a/helm-wrapper/pom.xml b/helm-wrapper/pom.xml index 08dc9ca7..1ee34d21 100644 --- a/helm-wrapper/pom.xml +++ b/helm-wrapper/pom.xml @@ -15,7 +15,7 @@ Simple wrapper for Helm (https://helm.sh) - 17 + 21 diff --git a/helm-wrapper/src/main/java/io/github/inseefrlab/helmwrapper/service/HelmInstallService.java b/helm-wrapper/src/main/java/io/github/inseefrlab/helmwrapper/service/HelmInstallService.java index bf1e7775..b01b2aba 100644 --- a/helm-wrapper/src/main/java/io/github/inseefrlab/helmwrapper/service/HelmInstallService.java +++ b/helm-wrapper/src/main/java/io/github/inseefrlab/helmwrapper/service/HelmInstallService.java @@ -43,7 +43,10 @@ public HelmInstaller installChart( Map env, final boolean skipTlsVerify, String caFile) - throws InvalidExitValueException, IOException, InterruptedException, TimeoutException, + throws InvalidExitValueException, + IOException, + InterruptedException, + TimeoutException, IllegalArgumentException { StringBuilder command = new StringBuilder("helm upgrade --install "); if (skipTlsVerify) { @@ -96,8 +99,12 @@ public int uninstaller(HelmConfiguration configuration, String name, String name } public HelmLs[] listChartInstall(HelmConfiguration configuration, String namespace) - throws JsonMappingException, InvalidExitValueException, JsonProcessingException, - IOException, InterruptedException, TimeoutException { + throws JsonMappingException, + InvalidExitValueException, + JsonProcessingException, + IOException, + InterruptedException, + TimeoutException { StringBuilder command = new StringBuilder("helm ls"); if (namespace != null) { command.append(" -n "); diff --git a/onyxia-api/Dockerfile b/onyxia-api/Dockerfile index 69650366..bf980c2e 100644 --- a/onyxia-api/Dockerfile +++ b/onyxia-api/Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:17.0.8_7-jre +FROM eclipse-temurin:21_35-jre # Install helm RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | DESIRED_VERSION=v3.12.0 bash COPY target/*.jar app.jar diff --git a/onyxia-api/pom.xml b/onyxia-api/pom.xml index 3402cdf1..d8f15dd0 100644 --- a/onyxia-api/pom.xml +++ b/onyxia-api/pom.xml @@ -131,8 +131,8 @@ - 17 - 1.9.10 + 21 + 1.9.20-RC diff --git a/onyxia-model/pom.xml b/onyxia-model/pom.xml index 4227aaf7..49f2c48c 100644 --- a/onyxia-model/pom.xml +++ b/onyxia-model/pom.xml @@ -11,8 +11,8 @@ 0.0.1-SNAPSHOT - 17 - 17 + 21 + 21 diff --git a/onyxia-model/src/main/java/fr/insee/onyxia/model/catalog/CatalogWrapper.java b/onyxia-model/src/main/java/fr/insee/onyxia/model/catalog/CatalogWrapper.java index fdcf1041..dbff000a 100644 --- a/onyxia-model/src/main/java/fr/insee/onyxia/model/catalog/CatalogWrapper.java +++ b/onyxia-model/src/main/java/fr/insee/onyxia/model/catalog/CatalogWrapper.java @@ -13,6 +13,7 @@ public abstract class CatalogWrapper { @Schema(description = "This entries are those from a standard helm repository") private Map> entries; + /** * @return the packages */ diff --git a/onyxia-model/src/main/java/fr/insee/onyxia/model/region/Region.java b/onyxia-model/src/main/java/fr/insee/onyxia/model/region/Region.java index 9b94830b..af3d86f5 100644 --- a/onyxia-model/src/main/java/fr/insee/onyxia/model/region/Region.java +++ b/onyxia-model/src/main/java/fr/insee/onyxia/model/region/Region.java @@ -625,6 +625,7 @@ public static class Quotas { private boolean userEnabled = false; private boolean groupEnabled = false; private boolean allowUserModification = true; + // could be deprecated @JsonProperty("default") private Quota defaultQuota; diff --git a/pom.xml b/pom.xml index 96888dc7..52369d45 100644 --- a/pom.xml +++ b/pom.xml @@ -21,8 +21,8 @@ 6.7.1 - 17 - 17 + 21 + 21 @@ -70,7 +70,7 @@ - 1.15.0 + 1.18.1