Skip to content

Commit

Permalink
Merge pull request #508 from nmuesch/nick/make_uc
Browse files Browse the repository at this point in the history
  • Loading branch information
gzussa authored May 11, 2020
2 parents a565234 + 6f71dbb commit 99c56d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 5 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
WEBSITE_REPO=github.com/hashicorp/terraform-website
PKG_NAME=datadog
DIR=~/.terraform.d/plugins
GO_CLIENT_VERSION=master
ZORKIAN_VERSION=master
API_CLIENT_VERSION=master

default: build

Expand Down Expand Up @@ -71,7 +72,9 @@ endif
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)

update-go-client:
go get github.com/zorkian/go-datadog-api@$(GO_CLIENT_VERSION)
echo "Updating the Zorkian client to ${ZORKIAN_VERSION} and the API Client to ${API_CLIENT_VERSION}"
go get github.com/zorkian/go-datadog-api@$(ZORKIAN_VERSION)
go get github.com/DataDog/datadog-api-client-go@${API_CLIENT_VERSION}
go mod vendor
go mod tidy

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,13 @@ a production Datadog organization.
```sh
$ make testacc
```

In order to update the underlying API Clients that are used by this provider to interact with the Datadog API, run:

```sh
API_CLIENT_VERSION=vx.y.z ZORKIAN_VERSION=vx.y.z make update-go-client
```

where:
* `API_CLIENT_VERSION` is the version or commit ref of the https://github.com/DataDog/datadog-api-client-go client.
* `ZORKIAN_VERSION` is the version or commit ref of the https://github.com/zorkian/go-datadog-api client.

0 comments on commit 99c56d2

Please sign in to comment.