-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,579 additions
and
1,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
|
||
|
||
default: build | ||
|
||
.PHONY: init-examples | ||
init-examples: | ||
@echo "==> Creating symlinks for example/ projects to terraform-provider-castai binary"; \ | ||
TF_PROVIDER_FILENAME=terraform-provider-castai; \ | ||
|
@@ -16,29 +15,35 @@ init-examples: | |
done \ | ||
done | ||
|
||
.PHONY: generate-sdk | ||
generate-sdk: | ||
@echo "==> Generating castai sdk client" | ||
@API_TAGS=ExternalClusterAPI,PoliciesAPI,NodeConfigurationAPI,NodeTemplatesAPI,AuthTokenAPI,ScheduledRebalancingAPI,InventoryAPI,UsersAPI,OperationsAPI,EvictorAPI,SSOAPI go generate castai/sdk/generate.go | ||
|
||
# The following command also rewrites existing documentation | ||
.PHONY: generate-docs | ||
generate-docs: | ||
go install github.com/hashicorp/terraform-plugin-docs/cmd/[email protected] | ||
tfplugindocs generate --rendered-provider-name "CAST AI" --ignore-deprecated | ||
|
||
.PHONY: build | ||
build: init-examples | ||
build: generate-sdk | ||
build: | ||
@echo "==> Building terraform-provider-castai" | ||
go build | ||
|
||
.PHONY: test | ||
test: | ||
@echo "==> Running tests" | ||
go test $$(go list ./... | grep -v vendor/ | grep -v e2e) -timeout=1m -parallel=4 | ||
|
||
.PHONY: testacc | ||
testacc: | ||
@echo "==> Running acceptance tests" | ||
TF_ACC=1 go test ./castai/... '-run=^TestAcc' -v -timeout 10m | ||
|
||
.PHONY: validate-terraform-examples | ||
validate-terraform-examples: | ||
for examples in examples/eks examples/gke examples/aks ; do \ | ||
for tfproject in $$examples/* ; do \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.