Skip to content

Commit

Permalink
Dev kubernetesconfiguration microsoft.kubernetes configuration 2021 0…
Browse files Browse the repository at this point in the history
…9 01 (Azure#15593)

* Add blockchain to latest profile

* Add additional types

* Adds base for updating Microsoft.KubernetesConfiguration from version common/2021-05-01-preview to version 2021-09-01

* Updates readme

* Updates API version in new specs and examples

* Extension GA - apiversion 2021-09-01

* Move definitions.json to the correct folder

* Add Patch example

* Prettier fix

* Patch response fix

* Avocado fixes

* Additional fixes

* Fixes for Model and Semantic validations

* Additional fixes

* Fix patch example

* Prettier fix for definitions.json

* Readme.md spacing fix

* Add AKSIdentity object

* Prettier and Lint Diff fixes

* Change Patch response to 202, per review

* Update Patch response body to adhere to API guidance

* Added Suppression for Patch 202 response

* Fix linter issues

* Fix linter issues

* Fix Linter and Model validation errors

* Fix ModelValidation and Prettier issues

* Move suppression to the GA version

* Move suppression to global

* Move suppression back to the GA version

* Update suppression

* Fix errors from SDK generation

* Prettier fix

* Remove definitions.json and move the defs. into extensions.json

* Remove azure-validator

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: nanthi <nanthi@NANTHI01>
  • Loading branch information
3 people authored and LeiWang3 committed Mar 31, 2022
1 parent dd553d7 commit dea99bf
Show file tree
Hide file tree
Showing 11 changed files with 1,429 additions and 3 deletions.
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:
'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,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
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"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",
"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": []
}
},
{
"id": "/subscriptions/subId1/resourceGroups/rg1/providers/Microsoft.Kubernetes/connectedClusters/clusterName1/providers/Microsoft.KubernetesConfiguration/extensions/BackupVault01",
"type": "Microsoft.KubernetesConfiguration/extensions",
"name": "App1Monitor",
"systemData": {
"createdBy": "string",
"createdByType": "Application",
"createdAt": "2021-09-08T04:09:23.011Z",
"lastModifiedBy": "string",
"lastModifiedByType": "Application",
"lastModifiedAt": "2021-09-08T04:09:23.011Z"
},
"properties": {
"extensionType": "Microsoft.RecoveryServices/recoveryVault",
"autoUpgradeMinorVersion": false,
"releaseTrain": "Stable",
"version": "1.0.1",
"scope": {
"cluster": {
"releaseNamespace": "myKVNamespace"
}
},
"configurationSettings": {},
"provisioningState": "Creating",
"statuses": []
}
}
],
"nextLink": null
}
}
}
}
Loading

0 comments on commit dea99bf

Please sign in to comment.