From 07e161fcac554071872a46180da421a24234418f Mon Sep 17 00:00:00 2001 From: Bryce Lewis Date: Tue, 4 Mar 2025 09:46:15 -0800 Subject: [PATCH 1/2] include clusters on environment --- platform/paths/environments/environment.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/paths/environments/environment.yml b/platform/paths/environments/environment.yml index e3ca8625..24325970 100644 --- a/platform/paths/environments/environment.yml +++ b/platform/paths/environments/environment.yml @@ -44,6 +44,7 @@ get: enum: - creators - stacks + - clusters responses: 200: description: Returns an Environment. @@ -61,6 +62,8 @@ get: properties: creators: $ref: ../../../components/schemas/includes/CreatorInclude.yml + clusters: + $ref: ../../../../components/schemas/includes/ClusterIncludes.yml default: $ref: ../../../components/responses/errors/DefaultError.yml @@ -113,7 +116,7 @@ patch: properties: tier: $ref: ../../../components/schemas/environments/monitoring/MonitoringTier.yml - + responses: 200: description: Returns an Environment. From fa9cd38b79a8206dad9359dec3690929199151ac Mon Sep 17 00:00:00 2001 From: Bryce Lewis Date: Tue, 4 Mar 2025 09:58:17 -0800 Subject: [PATCH 2/2] save --- components/schemas/includes/ClusterIncludes.yml | 5 +++++ platform/paths/environments/environment.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 components/schemas/includes/ClusterIncludes.yml diff --git a/components/schemas/includes/ClusterIncludes.yml b/components/schemas/includes/ClusterIncludes.yml new file mode 100644 index 00000000..b207f75c --- /dev/null +++ b/components/schemas/includes/ClusterIncludes.yml @@ -0,0 +1,5 @@ +title: ClusterIncludes +description: A resource associated with a cluster. +type: object +additionalProperties: + "$ref": "../infrastructure/clusters/Cluster.yml" diff --git a/platform/paths/environments/environment.yml b/platform/paths/environments/environment.yml index 24325970..b0c6a811 100644 --- a/platform/paths/environments/environment.yml +++ b/platform/paths/environments/environment.yml @@ -63,7 +63,7 @@ get: creators: $ref: ../../../components/schemas/includes/CreatorInclude.yml clusters: - $ref: ../../../../components/schemas/includes/ClusterIncludes.yml + $ref: ../../../components/schemas/includes/ClusterIncludes.yml default: $ref: ../../../components/responses/errors/DefaultError.yml