Skip to content

Commit

Permalink
Add CosmosDb endpoint and fix ACR endpoints for Gov Clouds (#377)
Browse files Browse the repository at this point in the history
* Update dependencies to resolve build breaks in OpenCensus

* Add CosmosDb endpoint and fix ACR endpoints for Gov Clouds

* Add comment on missing endpoint
  • Loading branch information
Vlad Barosan authored Mar 25, 2019
1 parent 36c85df commit 8ac2172
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 50 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGELOG

## v11.6.1

### Bug Fixes

- Fix ACR DNS endpoint for government clouds.
- Add Cosmos DB DNS endpoints.
- Update dependencies to resolve build breaks in OpenCensus.

## v11.6.0

### New Features
Expand Down Expand Up @@ -55,7 +63,7 @@

### Bug Fixes

- Deprecate content in the `version` package. The functionality has been superseded by content in the `autorest` package.
- Deprecate content in the `version` package. The functionality has been superseded by content in the `autorest` package.

## v11.2.7

Expand Down
123 changes: 81 additions & 42 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ required = ["golang.org/x/lint/golint"]

[[constraint]]
name = "go.opencensus.io"
version = "0.18.0"
version = "0.19.2"

[[constraint]]
name = "contrib.go.opencensus.io/exporter/ocagent"
version = "0.2.0"
version = "0.4.5"
13 changes: 9 additions & 4 deletions autorest/azure/environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type Environment struct {
ServiceManagementVMDNSSuffix string `json:"serviceManagementVMDNSSuffix"`
ResourceManagerVMDNSSuffix string `json:"resourceManagerVMDNSSuffix"`
ContainerRegistryDNSSuffix string `json:"containerRegistryDNSSuffix"`
CosmosDBDNSSuffix string `json:"cosmosDBDNSSuffix"`
TokenAudience string `json:"tokenAudience"`
}

Expand All @@ -79,6 +80,7 @@ var (
ServiceManagementVMDNSSuffix: "cloudapp.net",
ResourceManagerVMDNSSuffix: "cloudapp.azure.com",
ContainerRegistryDNSSuffix: "azurecr.io",
CosmosDBDNSSuffix: "documents.azure.com",
TokenAudience: "https://management.azure.com/",
}

Expand All @@ -102,7 +104,8 @@ var (
ServiceBusEndpointSuffix: "servicebus.usgovcloudapi.net",
ServiceManagementVMDNSSuffix: "usgovcloudapp.net",
ResourceManagerVMDNSSuffix: "cloudapp.windowsazure.us",
ContainerRegistryDNSSuffix: "azurecr.io",
ContainerRegistryDNSSuffix: "azurecr.us",
CosmosDBDNSSuffix: "documents.azure.us",
TokenAudience: "https://management.usgovcloudapi.net/",
}

Expand All @@ -126,7 +129,8 @@ var (
ServiceBusEndpointSuffix: "servicebus.chinacloudapi.cn",
ServiceManagementVMDNSSuffix: "chinacloudapp.cn",
ResourceManagerVMDNSSuffix: "cloudapp.azure.cn",
ContainerRegistryDNSSuffix: "azurecr.io",
ContainerRegistryDNSSuffix: "azurecr.cn",
CosmosDBDNSSuffix: "documents.azure.cn",
TokenAudience: "https://management.chinacloudapi.cn/",
}

Expand All @@ -150,8 +154,9 @@ var (
ServiceBusEndpointSuffix: "servicebus.cloudapi.de",
ServiceManagementVMDNSSuffix: "azurecloudapp.de",
ResourceManagerVMDNSSuffix: "cloudapp.microsoftazure.de",
ContainerRegistryDNSSuffix: "azurecr.io",
TokenAudience: "https://management.microsoftazure.de/",
// ContainerRegistryDNSSuffix: "", ACR not present yet in the German Cloud
CosmosDBDNSSuffix: "documents.microsoftazure.de",
TokenAudience: "https://management.microsoftazure.de/",
}
)

Expand Down
2 changes: 1 addition & 1 deletion autorest/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"runtime"
)

const number = "v11.6.0"
const number = "v11.6.1"

var (
userAgent = fmt.Sprintf("Go/%s (%s-%s) go-autorest/%s",
Expand Down

0 comments on commit 8ac2172

Please sign in to comment.