-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Added guardrails profile to specs #20171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
FumingZhang
merged 14 commits into
Azure:dev-containerservice-Microsoft.ContainerService-2022-08-02-preview
from
rsamigullin:rsamigullin/add_guardrails
Aug 29, 2022
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
44f9d95
added guardrails profile to specs
rsamigullin 59ad017
linter fix
rsamigullin 1f3319e
added x-ms-enum
rsamigullin 219d9b3
Merge branch 'dev-containerservice-Microsoft.ContainerService-2022-08…
rsamigullin 052732c
added guardrails definitions for versions route
rsamigullin eef8ab7
linter fix, added custom word
rsamigullin fcb6724
fix
rsamigullin 21b1779
typo fix
rsamigullin 3ff2b7a
fix for example
rsamigullin dc411ef
added object type
rsamigullin aece356
added object type
rsamigullin ffa1142
removed data field
rsamigullin 565bca4
changed descriptions
rsamigullin e78085c
*
rsamigullin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2719,4 +2719,5 @@ xlargerc | |
largerc | ||
mediumrc | ||
smallrc | ||
Autotune | ||
Autotune | ||
guardrailsversions |
23 changes: 23 additions & 0 deletions
23
...crosoft.ContainerService/preview/2022-08-02-preview/examples/GuardrailsVersions_List.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-08-02-preview", | ||
"subscriptionId": "subid1", | ||
"resourceGroupName": "rg1", | ||
"resourceName": "clustername1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"version": "v1", | ||
"isPreview": true, | ||
"default": true, | ||
"data": [ | ||
{ | ||
"isPreview": false, | ||
"version": "v2" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 Guardrails versions": { | ||
"$ref": "./examples/GuardrailsVersions_List.json" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
|
@@ -6979,6 +7021,91 @@ | |
"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" | ||
rsamigullin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
"includedNamespaces": { | ||
"description": "Customer-specified list of namespaces that must be included in guardrails", | ||
rsamigullin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"excludedNamespaces": { | ||
"description": "Customer-specified list of namespaces that must be excluded from guardrails", | ||
rsamigullin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"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": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From CI, missing identifier for this array. May add |
||
"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" | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.