Skip to content

Commit

Permalink
Swagger for Microsoft.HybridContainerService provisioned clusters (#4746
Browse files Browse the repository at this point in the history
)

* Swagger for HybridAKS provisioned clusters (#4697)

Added swagger for HybridAKS provisioned clusters

* Swagger fix validation errors and added examples (#4744)

* added examples and fixed some validation errors

* fixed more validation errors and warnings

* Added x-ms-secret flag for passwords

* fixing liniting issues in swagger (#4748)

* Fixes for prettier, spell checks and go-sdk generation (#4767)

* Fixes for prettier, spell checks and go-sdk generation

* changed default network plugin to calico

* formatting fix

* added enums, defaults and moved nodepool config to a common definition

* changed go-sdk to track2

* Added cluster prefix to name and location
  • Loading branch information
HariPrasadV authored Sep 14, 2021
1 parent 6c7bc1e commit f916925
Show file tree
Hide file tree
Showing 15 changed files with 1,628 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b",
"resourceGroupName": "test-arcappliance-resgrp",
"provisionedClustersName": "test-hybridakscluster",
"api-version": "2021-08-01-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"parameters": {
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b",
"resourceGroupName": "test-arcappliance-resgrp",
"provisionedClustersName": "test-hybridakscluster",
"api-version": "2021-08-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/provisionedClusters/test-hybridakscluster",
"name": "test-hybridakscluster",
"type": "microsoft.hybridcontainerservice/provisionedclusters",
"location": "westus",
"extendedLocation": {
"name": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation",
"type": "CustomLocation"
},
"properties": {
"provisioningState": "Succeeded",
"controlPlane": {
"count": 1,
"hardwareConfig": {
"vmSize": "Standard_A4_v2"
},
"osType": "Linux",
"linuxProfile": {
"ssh": {
"publicKeys": [
{
"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCY......"
}
]
}
}
},
"kubernetesVersion": "v1.20.5",
"loadBalancer": {
"count": 1,
"hardwareConfig": {
"vmSize": "Standard_K8S3_v1"
},
"osType": "Linux"
},
"addon": {
"cloudProviderConfiguration": {
"config": {
"configuration": "moc"
}
},
"CSIConfiguration": {
"config": {
"configuration": "akshcicsi",
"dynamic": "true",
"storageContainer": "WssdStorageContainer"
}
}
},
"networkProfile": {
"networkPlugin": "calico",
"podCidr": "10.244.0.0/16"
},
"nodeResourceGroup": "target-group",
"vnetSubnetID": "testvnet"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b",
"resourceGroupName": "test-arcappliance-resgrp",
"provisionedClustersName": "test-hybridakscluster",
"api-version": "2021-08-01-preview"
},
"responses": {
"200": {
"body": {
"kubeconfigs": [
{
"name": "adminkubeconfig",
"value": "base-64 encoded kubeconfig"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"parameters": {
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b",
"resourceGroupName": "test-arcappliance-resgrp",
"api-version": "2021-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/provisionedClusters/test-hybridakscluster",
"name": "test-hybridakscluster",
"type": "microsoft.hybridcontainerservice/provisionedclusters",
"location": "westus",
"extendedLocation": {
"name": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation",
"type": "CustomLocation"
},
"properties": {
"provisioningState": "Succeeded",
"controlPlane": {
"count": 1,
"hardwareConfig": {
"vmSize": "Standard_A4_v2"
},
"osType": "Linux",
"linuxProfile": {
"ssh": {
"publicKeys": [
{
"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCY......"
}
]
}
}
},
"kubernetesVersion": "v1.20.5",
"loadBalancer": {
"count": 1,
"hardwareConfig": {
"vmSize": "Standard_K8S3_v1"
},
"osType": "Linux"
},
"addon": {
"cloudProviderConfiguration": {
"config": {
"configuration": "moc"
}
},
"CSIConfiguration": {
"config": {
"configuration": "akshcicsi",
"dynamic": "true",
"storageContainer": "WssdStorageContainer"
}
}
},
"networkProfile": {
"networkPlugin": "calico",
"podCidr": "10.244.0.0/16"
},
"nodeResourceGroup": "target-group",
"vnetSubnetID": "testvnet"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"parameters": {
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b",
"api-version": "2021-08-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/provisionedClusters/test-hybridakscluster",
"name": "test-hybridakscluster",
"type": "microsoft.hybridcontainerservice/provisionedclusters",
"location": "westus",
"extendedLocation": {
"name": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation",
"type": "CustomLocation"
},
"properties": {
"provisioningState": "Succeeded",
"controlPlane": {
"count": 1,
"hardwareConfig": {
"vmSize": "Standard_A4_v2"
},
"osType": "Linux",
"linuxProfile": {
"ssh": {
"publicKeys": [
{
"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCY......"
}
]
}
}
},
"kubernetesVersion": "v1.20.5",
"loadBalancer": {
"count": 1,
"hardwareConfig": {
"vmSize": "Standard_K8S3_v1"
},
"osType": "Linux"
},
"addon": {
"cloudProviderConfiguration": {
"config": {
"configuration": "moc"
}
},
"CSIConfiguration": {
"config": {
"configuration": "akshcicsi",
"dynamic": "true",
"storageContainer": "WssdStorageContainer"
}
}
},
"networkProfile": {
"networkPlugin": "calico",
"podCidr": "10.244.0.0/16"
},
"nodeResourceGroup": "target-group",
"vnetSubnetID": "testvnet"
}
}
]
}
}
}
}
Loading

0 comments on commit f916925

Please sign in to comment.