From 00c89fa3b3a15ad0ba121f42f58e2dfca3e3f71e Mon Sep 17 00:00:00 2001 From: Ankit R Gadiya Date: Wed, 11 Dec 2024 14:08:46 +0530 Subject: [PATCH] feat(project): add support for docker-cache feature Resolves AB#19830 --- riocli/apply/manifests/project.yaml | 9 ++++++-- riocli/jsonschema/schemas/project-schema.yaml | 21 +++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/riocli/apply/manifests/project.yaml b/riocli/apply/manifests/project.yaml index 6f148c6e..e3cacac6 100644 --- a/riocli/apply/manifests/project.yaml +++ b/riocli/apply/manifests/project.yaml @@ -4,7 +4,7 @@ metadata: name: test-project-name labels: purpose: testing - version: 1.0 + version: "1.0" spec: users: - emailID: "user1@example.com" @@ -20,4 +20,9 @@ spec: vpn: enabled: true subnets: ["10.81.0.0/16"] - + dockerCache: + enabled: true + proxyDevice: "edge01" + proxyInterface: "eth0" + registrySecret: "quay" + registryURL: "https://quay.io" diff --git a/riocli/jsonschema/schemas/project-schema.yaml b/riocli/jsonschema/schemas/project-schema.yaml index ae521b4f..a1e180ef 100644 --- a/riocli/jsonschema/schemas/project-schema.yaml +++ b/riocli/jsonschema/schemas/project-schema.yaml @@ -82,6 +82,27 @@ definitions: properties: enabled: type: boolean + dockerCache: + oneOf: + - properties: + enabled: + const: false + - properties: + enabled: + const: true + proxyDevice: + type: string + proxyInterface: + type: string + registrySecret: + type: string + registryURL: + type: string + required: + - proxyDevice + - proxyInterface + - registrySecret + - registryURL userGroup: type: object properties: