From 44f9d9519c11b32547291b46ba1445095fe38bcb Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Wed, 10 Aug 2022 13:16:09 -0400 Subject: [PATCH 01/13] added guardrails profile to specs --- .../stable/2022-06-01/managedClusters.json | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json index 3467d4d6c59f..8d971a206a4a 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json @@ -5750,6 +5750,47 @@ ] }, "description": "The type of a snapshot. The default is NodePool." + }, + "GuardrailsProfile": { + "type": "object", + "properties": { + "systemExcludedNamespaces": { + "readOnly": true, + "type": "array", + "description": "List of namespaces specified by AKS to be excluded from Guardrails", + "items": { + "type": "string" + } + }, + "version": { + "type": "string", + "description": "The version of constraints to use" + }, + "level": { + "type": "string", + "enum": ["Off", "Warning", "Enforcement"], + "description": "The guardrails level to be used" + }, + "includedNamespaces": { + "description": "Customer-specified list of namespaces that must be included in guardrails", + "type": "array", + "items":{ + "type":"string" + } + }, + "excludedNamespaces": { + "description": "Customer-specified list of namespaces that must be excluded from guardrails", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "level", + "version" + ], + "description": "The Guardrails profile." } }, "parameters": { From 59ad01783d2e7ec4d7db35c061b5eca6b1e7505a Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Wed, 10 Aug 2022 13:38:59 -0400 Subject: [PATCH 02/13] linter fix --- .../stable/2022-06-01/managedClusters.json | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json index 8d971a206a4a..c9b5f717a211 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json @@ -5759,7 +5759,7 @@ "type": "array", "description": "List of namespaces specified by AKS to be excluded from Guardrails", "items": { - "type": "string" + "type": "string" } }, "version": { @@ -5768,21 +5768,25 @@ }, "level": { "type": "string", - "enum": ["Off", "Warning", "Enforcement"], + "enum": [ + "Off", + "Warning", + "Enforcement" + ], "description": "The guardrails level to be used" }, "includedNamespaces": { "description": "Customer-specified list of namespaces that must be included in guardrails", "type": "array", - "items":{ - "type":"string" + "items": { + "type": "string" } }, "excludedNamespaces": { "description": "Customer-specified list of namespaces that must be excluded from guardrails", "type": "array", "items": { - "type": "string" + "type": "string" } } }, From 1f3319e7d01413c5b985d8ed894d313fdf1c91b4 Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Wed, 10 Aug 2022 13:54:34 -0400 Subject: [PATCH 03/13] added x-ms-enum --- .../stable/2022-06-01/managedClusters.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json index c9b5f717a211..d9e38576c5f9 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json @@ -5773,6 +5773,10 @@ "Warning", "Enforcement" ], + "x-ms-enum": { + "name": "level", + "modelAsString": true + }, "description": "The guardrails level to be used" }, "includedNamespaces": { From 052732c6e4629966f5c44663f18e714e1173301f Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Thu, 25 Aug 2022 16:11:40 -0400 Subject: [PATCH 04/13] added guardrails definitions for versions route --- .../examples/GuardrailsVersions_List.json | 28 ++++ .../2022-08-02-preview/managedClusters.json | 125 ++++++++++++++++++ .../stable/2022-06-01/managedClusters.json | 49 ------- 3 files changed, 153 insertions(+), 49 deletions(-) create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json new file mode 100644 index 000000000000..957864ef724b --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2022-08-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "resourceName": "clustername1" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.containerservice/managedclusters/{resourceName}/guardrailsversions", + "type": "Microsoft.ContainerService/managedClusters/guardrailsVersions", + "name": "guardrailsVersions", + "properties": { + "version": "v1", + "isPreview": true, + "default": true, + "data": [ + { + "isPreview": false, + "version": "v2" + } + ] + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index 2bf0a6b2a0f6..375abe43afa3 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -2891,6 +2891,48 @@ } } } + }, + "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.containerservice/managedclusters/{resourceName}/guardrailsversions": { + "get": { + "tags": [ + "guardrailsVersions" + ], + "operationId": "GuardrailsVersions_List", + "summary": "List available guardrails versions.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListGuardrailsVersionsResponse" + } + }, + "default": { + "description": "Error details", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List trusted access role bindings": { + "$ref": "./examples/GuardrailsVersions_List.json" + } + } + } } }, "definitions": { @@ -6979,6 +7021,89 @@ "required": [ "enabled" ] + }, + "GuardrailsProfile": { + "type": "object", + "properties": { + "systemExcludedNamespaces": { + "readOnly": true, + "type": "array", + "description": "List of namespaces specified by AKS to be excluded from Guardrails", + "items": { + "type": "string" + } + }, + "version": { + "type": "string", + "description": "The version of constraints to use" + }, + "level": { + "type": "string", + "enum": [ + "Off", + "Warning", + "Enforcement" + ], + "x-ms-enum": { + "name": "level", + "modelAsString": true + }, + "description": "The guardrails level to be used" + }, + "includedNamespaces": { + "description": "Customer-specified list of namespaces that must be included in guardrails", + "type": "array", + "items": { + "type": "string" + } + }, + "excludedNamespaces": { + "description": "Customer-specified list of namespaces that must be excluded from guardrails", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "level", + "version" + ], + "description": "The Guardrails profile." + }, + "ListGuardrailsVersionsResponse": { + "type": "object", + "properties": { + "version": { + "readOnly": true, + "type": "string" + }, + "isPreview": { + "type": "boolean", + "description": "Describes whether this version is in preview" + }, + "default": { + "type": "boolean", + "description": "Describes whether this version is default" + }, + "data": { + "type": "array", + "$ref": "#/definitions/GuardrailsVersionUpgradeList" + } + } + }, + "GuardrailsVersionUpgradeList": { + "type": "object", + "properties": { + "isPreview": { + "type": "boolean", + "description": "Describes whether this version is in preview" + }, + "version": { + "type": "string", + "description": "The guardrails version identifier" + } + } } }, "parameters": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json index 0b9b653e7c8e..b703ca748234 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2022-06-01/managedClusters.json @@ -5750,55 +5750,6 @@ ] }, "description": "The type of a snapshot. The default is NodePool." - }, - "GuardrailsProfile": { - "type": "object", - "properties": { - "systemExcludedNamespaces": { - "readOnly": true, - "type": "array", - "description": "List of namespaces specified by AKS to be excluded from Guardrails", - "items": { - "type": "string" - } - }, - "version": { - "type": "string", - "description": "The version of constraints to use" - }, - "level": { - "type": "string", - "enum": [ - "Off", - "Warning", - "Enforcement" - ], - "x-ms-enum": { - "name": "level", - "modelAsString": true - }, - "description": "The guardrails level to be used" - }, - "includedNamespaces": { - "description": "Customer-specified list of namespaces that must be included in guardrails", - "type": "array", - "items": { - "type": "string" - } - }, - "excludedNamespaces": { - "description": "Customer-specified list of namespaces that must be excluded from guardrails", - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "level", - "version" - ], - "description": "The Guardrails profile." } }, "parameters": { From eef8ab7a5523c37106c6bea3d9dc3f43b622577f Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Thu, 25 Aug 2022 16:35:39 -0400 Subject: [PATCH 05/13] linter fix, added custom word --- custom-words.txt | 3 ++- .../preview/2022-08-02-preview/managedClusters.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index a7612d9bf3b2..b52519ec1fe3 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2719,4 +2719,5 @@ xlargerc largerc mediumrc smallrc -Autotune \ No newline at end of file +Autotune +guardrailsversions \ No newline at end of file diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index 375abe43afa3..81644f9294b8 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -2892,7 +2892,7 @@ } } }, - "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.containerservice/managedclusters/{resourceName}/guardrailsversions": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.containerservice/managedclusters/{resourceName}/guardrailsversions": { "get": { "tags": [ "guardrailsVersions" @@ -2928,7 +2928,7 @@ } }, "x-ms-examples": { - "List trusted access role bindings": { + "List Guardrails versions": { "$ref": "./examples/GuardrailsVersions_List.json" } } From fcb6724a34929e203d7e7a21e7ce1172b3a54216 Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Thu, 25 Aug 2022 16:52:53 -0400 Subject: [PATCH 06/13] fix --- .../2022-08-02-preview/examples/GuardrailsVersions_List.json | 2 +- .../preview/2022-08-02-preview/managedClusters.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json index 957864ef724b..3b3d5bb95aca 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json @@ -8,7 +8,7 @@ "responses": { "200": { "body": { - "id": "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.containerservice/managedclusters/{resourceName}/guardrailsversions", + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Containerservice/managedClusters/{resourceName}/guardrailsversions", "type": "Microsoft.ContainerService/managedClusters/guardrailsVersions", "name": "guardrailsVersions", "properties": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index 81644f9294b8..0936516e6e12 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -2892,7 +2892,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.containerservice/managedclusters/{resourceName}/guardrailsversions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Containerservice/managedClusters/{resourceName}/guardrailsversions": { "get": { "tags": [ "guardrailsVersions" From 21b177904153b6f914005c2e3a3d5e200860c7b3 Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Thu, 25 Aug 2022 17:08:49 -0400 Subject: [PATCH 07/13] typo fix --- .../2022-08-02-preview/examples/GuardrailsVersions_List.json | 2 +- .../preview/2022-08-02-preview/managedClusters.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json index 3b3d5bb95aca..1670bed75758 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json @@ -8,7 +8,7 @@ "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Containerservice/managedClusters/{resourceName}/guardrailsversions", + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/guardrailsversions", "type": "Microsoft.ContainerService/managedClusters/guardrailsVersions", "name": "guardrailsVersions", "properties": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index 0936516e6e12..ef511375b1fc 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -2892,7 +2892,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Containerservice/managedClusters/{resourceName}/guardrailsversions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/guardrailsversions": { "get": { "tags": [ "guardrailsVersions" From 3ff2b7a0241f559e724b1a2d130f867060b55ba8 Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Thu, 25 Aug 2022 17:38:38 -0400 Subject: [PATCH 08/13] fix for example --- .../examples/GuardrailsVersions_List.json | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json index 1670bed75758..c5efc143ddaf 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json @@ -8,20 +8,15 @@ "responses": { "200": { "body": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/guardrailsversions", - "type": "Microsoft.ContainerService/managedClusters/guardrailsVersions", - "name": "guardrailsVersions", - "properties": { - "version": "v1", - "isPreview": true, - "default": true, - "data": [ - { - "isPreview": false, - "version": "v2" - } - ] - } + "version": "v1", + "isPreview": true, + "default": true, + "data": [ + { + "isPreview": false, + "version": "v2" + } + ] } } } From dc411efe44f9cd45a9b0be63ec664b5470056ffa Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Thu, 25 Aug 2022 17:45:01 -0400 Subject: [PATCH 09/13] added object type --- .../preview/2022-08-02-preview/managedClusters.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index ef511375b1fc..deeafc8719ee 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -7093,7 +7093,7 @@ } }, "GuardrailsVersionUpgradeList": { - "type": "object", + "type": "array", "properties": { "isPreview": { "type": "boolean", From aece35623295f06b9a2f34749f9f4aefd5769b8f Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Thu, 25 Aug 2022 17:52:57 -0400 Subject: [PATCH 10/13] added object type --- .../preview/2022-08-02-preview/managedClusters.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index deeafc8719ee..4e9c2125b527 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -7088,12 +7088,14 @@ }, "data": { "type": "array", - "$ref": "#/definitions/GuardrailsVersionUpgradeList" + "items": { + "$ref": "#/definitions/GuardrailsVersionUpgradeList" + } } } }, "GuardrailsVersionUpgradeList": { - "type": "array", + "type": "object", "properties": { "isPreview": { "type": "boolean", From ffa114281581ed69ca159880f60f58695114ae0c Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Fri, 26 Aug 2022 09:55:28 -0400 Subject: [PATCH 11/13] removed data field --- .../examples/GuardrailsVersions_List.json | 8 +------- .../2022-08-02-preview/managedClusters.json | 19 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json index c5efc143ddaf..b3b7792c3ab7 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json @@ -10,13 +10,7 @@ "body": { "version": "v1", "isPreview": true, - "default": true, - "data": [ - { - "isPreview": false, - "version": "v2" - } - ] + "default": true } } } diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index 4e9c2125b527..0040d44e98f9 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -7085,25 +7085,6 @@ "default": { "type": "boolean", "description": "Describes whether this version is default" - }, - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/GuardrailsVersionUpgradeList" - } - } - } - }, - "GuardrailsVersionUpgradeList": { - "type": "object", - "properties": { - "isPreview": { - "type": "boolean", - "description": "Describes whether this version is in preview" - }, - "version": { - "type": "string", - "description": "The guardrails version identifier" } } } From 565bca47bc6f3fe9c0726ecbf265c0ba8231be1a Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Fri, 26 Aug 2022 14:23:09 -0400 Subject: [PATCH 12/13] changed descriptions --- custom-words.txt | 2 +- .../preview/2022-08-02-preview/managedClusters.json | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index b52519ec1fe3..3d27d0cae860 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2720,4 +2720,4 @@ largerc mediumrc smallrc Autotune -guardrailsversions \ No newline at end of file +guardrailsVersions \ No newline at end of file diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json index 0040d44e98f9..a744b54ae6d7 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-08-02-preview/managedClusters.json @@ -7048,17 +7048,10 @@ "name": "level", "modelAsString": true }, - "description": "The guardrails level to be used" - }, - "includedNamespaces": { - "description": "Customer-specified list of namespaces that must be included in guardrails", - "type": "array", - "items": { - "type": "string" - } + "description": "The guardrails level to be used. By default, Guardrails is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces" }, "excludedNamespaces": { - "description": "Customer-specified list of namespaces that must be excluded from guardrails", + "description": "List of namespaces excluded from guardrails checks", "type": "array", "items": { "type": "string" From e78085cd12418f89693e9741ea5d28359906146c Mon Sep 17 00:00:00 2001 From: Rustam Samigullin Date: Fri, 26 Aug 2022 14:25:27 -0400 Subject: [PATCH 13/13] * --- custom-words.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-words.txt b/custom-words.txt index 3d27d0cae860..b52519ec1fe3 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2720,4 +2720,4 @@ largerc mediumrc smallrc Autotune -guardrailsVersions \ No newline at end of file +guardrailsversions \ No newline at end of file