From 914ccaed3d72998faf1e36217c287eeb4cbe8579 Mon Sep 17 00:00:00 2001 From: pggb25 Date: Wed, 11 Oct 2023 14:17:55 +0200 Subject: [PATCH] feat: add registry mirroring mode into the advanced settings of a cluster (#468) --- src/schemas/ClusterAdvancedSettings.yaml | 2 ++ src/schemas/_index.yaml | 3 +++ src/schemas/enums/RegistryMirroringMode.yaml | 9 +++++++++ 3 files changed, 14 insertions(+) create mode 100644 src/schemas/enums/RegistryMirroringMode.yaml diff --git a/src/schemas/ClusterAdvancedSettings.yaml b/src/schemas/ClusterAdvancedSettings.yaml index 241b651b..5db79b3d 100644 --- a/src/schemas/ClusterAdvancedSettings.yaml +++ b/src/schemas/ClusterAdvancedSettings.yaml @@ -85,3 +85,5 @@ properties: type: integer default: -1 deprecated: true + registry.mirroring_mode: + $ref: './enums/RegistryMirroringMode.yaml' diff --git a/src/schemas/_index.yaml b/src/schemas/_index.yaml index 299125d3..544fb87b 100644 --- a/src/schemas/_index.yaml +++ b/src/schemas/_index.yaml @@ -694,4 +694,7 @@ ServiceStepMetricNameEnum: $ref: ./enums/ServiceStepMetricName.yaml OrganizationJobAutoDeployRequest: $ref: ./OrganizationJobAutoDeployRequest.yaml +RegistryMirroringModeEnum: + $ref: ./enums/RegistryMirroringMode.yaml + diff --git a/src/schemas/enums/RegistryMirroringMode.yaml b/src/schemas/enums/RegistryMirroringMode.yaml new file mode 100644 index 00000000..841bb2ad --- /dev/null +++ b/src/schemas/enums/RegistryMirroringMode.yaml @@ -0,0 +1,9 @@ +type: string +default: SERVICE +enum: + - CLUSTER + - SERVICE +description: | + Mirroring mode when deploying a service from a container registry + - CLUSTER: This is not available on Scaleway. Images within the mirroring registry are organized by "Qovery cluster", meaning that the application deployed on the same cluster are all mirrored on the same repository. + - SERVICE: Images within the mirroring registry are organized by "Qovery service", each service has its own repository \ No newline at end of file