Skip to content
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

Dev kubernetesconfiguration microsoft.kubernetes configuration 2021 09 01 #15593

Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1bcc20d
Add blockchain to latest profile
markcowl Aug 22, 2019
7b46097
Add additional types
markcowl Aug 22, 2019
caa0ca2
Adds base for updating Microsoft.KubernetesConfiguration from version…
NarayanThiru Aug 9, 2021
893a772
Updates readme
NarayanThiru Aug 9, 2021
4846a0d
Updates API version in new specs and examples
NarayanThiru Aug 9, 2021
019a4de
Merge branch 'main' of https://github.com/NarayanThiru/azure-rest-api…
Aug 10, 2021
18aeb43
Merge branch 'main' into dev-kubernetesconfiguration-Microsoft.Kubern…
Aug 10, 2021
78f3d9c
Extension GA - apiversion 2021-09-01
Aug 10, 2021
a3bfadd
Merge branch 'main' of https://github.com/NarayanThiru/azure-rest-api…
Aug 10, 2021
8332049
Merge branch 'dev-kubernetesconfiguration-Microsoft.KubernetesConfigu…
Aug 10, 2021
997def6
Move definitions.json to the correct folder
Aug 10, 2021
6e9dc85
Add Patch example
Aug 10, 2021
34db6ca
Prettier fix
Aug 10, 2021
a950913
Patch response fix
Aug 10, 2021
bd7c7a5
Avocado fixes
Aug 10, 2021
09717fd
Additional fixes
Aug 10, 2021
aaa8ad9
Fixes for Model and Semantic validations
Aug 10, 2021
3b72aa0
Additional fixes
Aug 11, 2021
9150f46
Fix patch example
Aug 11, 2021
710fba9
Prettier fix for definitions.json
Aug 11, 2021
e3d85b8
Readme.md spacing fix
Aug 11, 2021
1388818
Add AKSIdentity object
Sep 2, 2021
ce530cc
Prettier and Lint Diff fixes
Sep 2, 2021
d54ba3e
Change Patch response to 202, per review
Sep 9, 2021
d4973a4
Update Patch response body to adhere to API guidance
Sep 9, 2021
10579f8
Added Suppression for Patch 202 response
Sep 16, 2021
ddae138
Fix linter issues
Sep 16, 2021
8a5153e
Fix linter issues
Sep 16, 2021
e6d4a9d
Fix Linter and Model validation errors
Sep 16, 2021
0447473
Fix ModelValidation and Prettier issues
Sep 16, 2021
ab22747
Move suppression to the GA version
Sep 16, 2021
ef4ab62
Move suppression to global
Sep 16, 2021
cc42a96
Move suppression back to the GA version
Sep 16, 2021
8649856
Update suppression
Sep 16, 2021
cdfd9c9
Fix errors from SDK generation
Sep 17, 2021
b97fdca
Prettier fix
Sep 17, 2021
cf36cef
Remove definitions.json and move the defs. into extensions.json
Sep 17, 2021
771e60f
Remove azure-validator
Sep 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions profiles/definitions/latest-2019-04-30.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ profiles:
- managedClusters/accessProfiles
'2017-07-01':
- containerServices
microsoft.blockchain:
NarayanThiru marked this conversation as resolved.
Show resolved Hide resolved
'2018-06-01-preview':
- blockchainMembers
- blockchainMembers/consortiumMembers
- blockchainMembers/listApiKeys
- lockchainMembers/regenerateApiKeys
- blockchainMembers/transactionNodes
- blockchainMembers/transactionNodes/listApiKeys
- blockchainMembers/transactionNodes/regenerateApiKeys
- locations
- locations/blockchainMemberOperationResults
- locations/checkNameAvailability
- locations/listConsortiums
- operations
- skus
microsoft.capacity:
'2019-04-01':
- appliedReservations
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"swagger": "2.0",
"info": {
"version": "2021-09-01",
"title": "Common types and definitions",
"description": "Definitions and parameters common for all resource types of KubernetesConfiguration RP"
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {},
"definitions": {
"ResourceProviderOperation": {
"description": "Supported operation of this resource provider.",
"type": "object",
"readOnly": true,
"properties": {
"name": {
"description": "Operation name, in format of {provider}/{resource}/{operation}",
"type": "string"
},
"display": {
"description": "Display metadata associated with the operation.",
"type": "object",
"properties": {
"provider": {
"description": "Resource provider: Microsoft KubernetesConfiguration.",
"type": "string"
},
"resource": {
"description": "Resource on which the operation is performed.",
"type": "string"
},
"operation": {
"description": "Type of operation: get, read, delete, etc.",
"type": "string"
},
"description": {
"description": "Description of this operation.",
"type": "string"
}
}
},
"isDataAction": {
"description": "The flag that indicates whether the operation applies to data plane.",
"type": "boolean",
"readOnly": true
},
"origin": {
"description": "Origin of the operation",
"type": "string",
"readOnly": true
}
}
},
"ResourceProviderOperationList": {
"description": "Result of the request to list operations.",
"type": "object",
"readOnly": true,
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ResourceProviderOperation"
},
"description": "List of operations supported by this resource provider."
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "URL to the next set of results, if any."
}
}
}
},
"parameters": {
"ClusterRpParameter": {
"name": "clusterRp",
"in": "path",
"required": true,
"type": "string",
"enum": [
"Microsoft.ContainerService",
"Microsoft.Kubernetes"
],
"description": "The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).",
"x-ms-parameter-location": "method"
},
"ClusterResourceNameParameter": {
"name": "clusterResourceName",
"in": "path",
"required": true,
"type": "string",
"enum": [
"managedClusters",
"connectedClusters"
],
"description": "The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).",
"x-ms-parameter-location": "method"
},
"ClusterNameParameter": {
"name": "clusterName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the kubernetes cluster.",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"extensionName": "ClusterMonitor",
"api-version": "2021-09-01",
"clusterName": "clusterName1",
"extension": {
"properties": {
"extensionType": "azuremonitor-containers",
"autoUpgradeMinorVersion": true,
"releaseTrain": "Preview",
"scope": {
"cluster": {
"releaseNamespace": "kube-system"
}
},
"configurationSettings": {
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
"omsagent.env.clusterName": "clusterName1"
},
"configurationProtectedSettings": {
"omsagent.secret.key": "secretKeyValue01"
}
}
}
},
"responses": {
"201": {
"headers": {
"Operation-Location": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/{operationId}",
"x-ms-async-operation-timeout": "PT48H"
},
"description": "Details of the Kubernetes Extension's current status.",
"body": {
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor",
"type": "Microsoft.KubernetesConfiguration/extensions",
"name": "ClusterMonitor",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-09-08T05:10:57.027Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-09-08T05:10:57.027Z"
},
"properties": {
"extensionType": "azuremonitor-containers",
"autoUpgradeMinorVersion": true,
"releaseTrain": "Preview",
"version": "0.1.4",
"scope": {
"cluster": {
"releaseNamespace": "kube-system"
}
},
"configurationSettings": {
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
"omsagent.env.clusterName": "clusterName1"
},
"provisioningState": "Creating",
"statuses": []
}
}
},
"200": {
"headers": {
"Operation-Location": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/{operationId}",
"x-ms-async-operation-timeout": "PT48H"
},
"description": "Details of the Kubernetes Extension's current status.",
"body": {
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor",
"type": "Microsoft.KubernetesConfiguration/extensions",
"name": "ClusterMonitor",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-09-08T05:10:57.027Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-09-08T05:10:57.027Z"
},
"properties": {
"extensionType": "azuremonitor-containers",
"autoUpgradeMinorVersion": true,
"releaseTrain": "Preview",
"version": "0.1.4",
"scope": {
"cluster": {
"releaseNamespace": "kube-system"
}
},
"configurationSettings": {
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
"omsagent.env.clusterName": "clusterName1"
},
"provisioningState": "Creating",
"statuses": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"extensionName": "ClusterMonitor",
"api-version": "2021-09-01",
"clusterName": "clusterName1"
},
"responses": {
"202": {
"headers": {
"Operation-Location": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/{operationId}",
"x-ms-async-operation-timeout": "PT1H"
}
},
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"extensionName": "ClusterMonitor",
"api-version": "2021-09-01",
"clusterName": "clusterName1",
"operationId": "99999999-9999-9999-9999-999999999999"
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/99999999-9999-9999-9999-999999999999",
"name": "99999999-9999-9999-9999-999999999999",
"status": "Succeeded",
"properties": {},
"error": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"extensionName": "ClusterMonitor",
"api-version": "2021-09-01",
"clusterName": "clusterName1"
},
"responses": {
"200": {
"headers": {},
"description": "Details of the Kubernetes Extension's current status.",
"body": {
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor",
"type": "Microsoft.KubernetesConfiguration/extensions",
"name": "ClusterMonitor",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-09-08T05:10:57.027Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-09-08T05:10:57.027Z"
},
"properties": {
"extensionType": "azuremonitor-containers",
"autoUpgradeMinorVersion": true,
"releaseTrain": "Preview",
"version": "0.1.4",
"scope": {
"cluster": {
"releaseNamespace": "kube-system"
}
},
"configurationSettings": {
"omsagent.secret.wsid": "a38cef99-5a89-52ed-b6db-22095c23664b",
"omsagent.env.clusterName": "clusterName1"
},
"provisioningState": "Creating",
"statuses": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "subId1",
"resourceGroupName": "rg1",
"clusterRp": "Microsoft.Kubernetes",
"clusterResourceName": "connectedClusters",
"api-version": "2021-09-01",
"clusterName": "clusterName1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/ClusterMonitor/operations/99999999-9999-9999-9999-999999999999",
"name": "99999999-9999-9999-9999-999999999999",
"status": "Deleting",
"properties": {},
"error": null
},
{
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/cassandraExtension1/operations/88888888-8888-8888-8888-888888888888",
"name": "88888888-8888-8888-8888-888888888888",
"status": "Creating",
"properties": {},
"error": null
}
],
"nextLink": null
}
}
}
}
Loading