From 2d425ce4b219e315ba9e04ea6b0985327e78b816 Mon Sep 17 00:00:00 2001 From: Gary van Woerkens Date: Mon, 6 May 2024 16:46:06 +0200 Subject: [PATCH] feat: set ovh as default env --- plugins/fabrique/extends/ovh.yaml | 41 ------------------------------- plugins/fabrique/kontinuous.yaml | 31 ++++++++++++----------- 2 files changed, 17 insertions(+), 55 deletions(-) diff --git a/plugins/fabrique/extends/ovh.yaml b/plugins/fabrique/extends/ovh.yaml index 9f4baa35cf..e69de29bb2 100644 --- a/plugins/fabrique/extends/ovh.yaml +++ b/plugins/fabrique/extends/ovh.yaml @@ -1,41 +0,0 @@ -config: - kubeconfigContext: ovh - provider: ovh - -valuesCompilers: - globalDefaults: - options: - devDomain: ovh.fabrique.social.gouv.fr -patches: - setUndefinedStorageClassname: - options: - defaultStorageClassName: "" - setUndefinedStorageClassnameCnpg: - options: - defaultStorageClassName: csi-cinder-high-speed - -dependencies: - contrib: - validators: - sealedSecrets: - options: - clusters: - dev: - kubesealEndpoint: "https://kubeseal.ovh.fabrique.social.gouv.fr" - prod: - kubesealEndpoint: "https://kubeseal.ovh-prod.fabrique.social.gouv.fr" - patches: - certs: - options: - wildcardHost: ".ovh.fabrique.social.gouv.fr" - - defaultMinResourcesRequests: - options: - avoidOutOfpods: true - avoidOutOfpodsMargin: - cpu: 10m - memory: 10Mi - nodeConfig: - maxPods: 110 - cpu: 7820m - memory: 27717Mi diff --git a/plugins/fabrique/kontinuous.yaml b/plugins/fabrique/kontinuous.yaml index 97b9553942..c1bec638c4 100644 --- a/plugins/fabrique/kontinuous.yaml +++ b/plugins/fabrique/kontinuous.yaml @@ -1,10 +1,10 @@ patches: setUndefinedStorageClassname: options: - defaultStorageClassName: "azurefile" + defaultStorageClassName: "" setUndefinedStorageClassnameCnpg: options: - defaultStorageClassName: "managed-csi" + defaultStorageClassName: sc-hspeed-gen2-delete dependencies: contrib: @@ -24,7 +24,7 @@ dependencies: certs: enabled: true options: - wildcardHost: ".dev.fabrique.social.gouv.fr" + wildcardHost: ".ovh.fabrique.social.gouv.fr" internalHosts: - ".fabrique.social.gouv.fr" - ".beta.gouv.fr" @@ -48,7 +48,7 @@ dependencies: cpu: 10m memory: 10Mi nodeConfig: - maxPods: 250 + maxPods: 110 cpu: 7820m memory: 27717Mi defaultMaxResourcesLimits: @@ -86,6 +86,12 @@ dependencies: enabled: true sealedSecrets: enabled: true + options: + clusters: + dev: + kubesealEndpoint: "https://kubeseal.ovh.fabrique.social.gouv.fr" + prod: + kubesealEndpoint: "https://kubeseal.ovh-prod.fabrique.social.gouv.fr" kubeconform: options: kubeVersion: null @@ -165,20 +171,17 @@ dependencies: config: webhookUri: https://kontinuous.fabrique.social.gouv.fr + kubeconfigContext: ovh options: kubernetesMethod: kubeconfig surviveOnBrokenCluster: true - clusters: - dev: - kubesealEndpoint: "https://kubeseal.dev2.fabrique.social.gouv.fr" - environments: - - dev - - preprod - prod: - kubesealEndpoint: "https://kubeseal.prod2.fabrique.social.gouv.fr" - environments: - - prod + registry: "harbor.fabrique.social.gouv.fr" domain: "fabrique.social.gouv.fr" + +valuesCompilers: + globalDefaults: + options: + devDomain: ovh.fabrique.social.gouv.fr