Skip to content

Commit

Permalink
[AKS] update go SDK configuration and fix a consistency error (#3172)
Browse files Browse the repository at this point in the history
* [AKS] update go SDK configuration and fix consistency errors

* Fix 2017-08-31 AKS example json validation errors
  • Loading branch information
mboersma authored and annatisch committed Jun 12, 2018
1 parent 788f8f8 commit da72ddb
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,16 +678,7 @@
"description": "VNet SubnetID specifies the vnet's subnet identifier."
},
"osType": {
"type": "string",
"default": "Linux",
"enum": [
"Linux",
"Windows"
],
"x-ms-enum": {
"name": "OSType",
"modelAsString": true
},
"$ref": "#/definitions/OSType",
"description": "OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux."
}
},
Expand Down Expand Up @@ -873,6 +864,19 @@
"linuxProfile"
],
"description": "Properties of the container service."
},
"OSType": {
"type": "string",
"default": "Linux",
"enum": [
"Linux",
"Windows"
],
"x-ms-enum": {
"name": "OSType",
"modelAsString": true
},
"description": "OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux."
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@
},
"provisioningState": "Succeeded",
"servicePrincipalProfile": {
"clientId": "clientid",
"keyVaultSecretRef": null,
"secret": "secret"
"clientId": "clientid"
}
},
"tags": "managedcluster",
"tags": {
"archv2": "",
"tier": "production"
},
"type": "Microsoft.ContainerService/ManagedClusters"
}
},
Expand Down Expand Up @@ -99,12 +100,13 @@
},
"provisioningState": "Succeeded",
"servicePrincipalProfile": {
"clientId": "clientid",
"keyVaultSecretRef": null,
"secret": "secret"
"clientId": "clientid"
}
},
"tags": "managedcluster",
"tags": {
"archv2": "",
"tier": "production"
},
"type": "Microsoft.ContainerService/ManagedClusters"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@
},
"provisioningState": "Succeeded",
"servicePrincipalProfile": {
"clientId": "clientid",
"keyVaultSecretRef": null,
"secret": "secret"
"clientId": "clientid"
}
},
"tags": "managed-cluster",
"tags": {
"archv2": "",
"tier": "production"
},
"type": "Microsoft.ContainerService/ManagedClusters"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@
},
"provisioningState": "Succeeded",
"servicePrincipalProfile": {
"clientId": "clientid",
"keyVaultSecretRef": null,
"secret": "secret"
"clientId": "clientid"
}
},
"tags": "managed-cluster",
"tags": {
"archv2": "",
"tier": "production"
},
"type": "Microsoft.ContainerService/ManagedClusters"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@
},
"provisioningState": "Succeeded",
"servicePrincipalProfile": {
"clientId": "clientid",
"keyVaultSecretRef": null,
"secret": "secret"
"clientId": "clientid"
}
},
"tags": "managed-cluster",
"tags": {
"archv2": "",
"tier": "production"
},
"type": "Microsoft.ContainerService/ManagedClusters"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@
},
"ContainerServiceVnetSubnetID": {
"type": "string",
"description": "VNet SubnetID specifies the vnet's subnet identifier. If you specify either master VNet Subnet, or agent VNet Subnet, you need to specify both. And they have to be in the same VNet."
"description": "VNet SubnetID specifies the vnet's subnet identifier."
},
"ContainerServiceVMSize": {
"type": "string",
Expand Down Expand Up @@ -727,7 +727,7 @@
},
"vnetSubnetID": {
"$ref": "#/definitions/ContainerServiceVnetSubnetID",
"description": "VNet SubnetID specifies the vnet's subnet identifier. If you specify either master VNet Subnet, or agent VNet Subnet, you need to specify both. And they have to be in the same VNet."
"description": "VNet SubnetID specifies the vnet's subnet identifier."
},
"firstConsecutiveStaticIP": {
"type": "string",
Expand Down Expand Up @@ -796,7 +796,7 @@
},
"vnetSubnetID": {
"$ref": "#/definitions/ContainerServiceVnetSubnetID",
"description": "VNet SubnetID specifies the vnet's subnet identifier. If you specify either master VNet Subnet, or agent VNet Subnet, you need to specify both. And they have to be in the same VNet."
"description": "VNet SubnetID specifies the vnet's subnet identifier."
},
"osType": {
"$ref": "#/definitions/OSType",
Expand Down
11 changes: 11 additions & 0 deletions specification/containerservices/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,22 @@ go:

``` yaml $(go) && $(multiapi)
batch:
- tag: package-2018-03
- tag: package-2017-09
- tag: package-2017-08
- tag: package-2017-07
```

### Tag: package-2018-03 and go

These settings apply only when `--tag=package-2018-03 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag)=='package-2018-03' && $(go)
namespace: containerservice
output-folder: $(go-sdk-folder)/services/containerservice/mgmt/2018-03-31/containerservice
```

### Tag: package-2017-09 and go

These settings apply only when `--tag=package-2017-09 --go` is specified on the command line.
Expand Down

0 comments on commit da72ddb

Please sign in to comment.