For the following issue: - https://github.com/fleetdm/fleet/issues/41419 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated tooling and documentation wording across scripts, utilities, and infrastructure files to reflect the product terminology change from “teams” to “fleets” (references now note “fleets” and indicate the former “teams” naming). <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Rachael Shaw <r@rachael.wtf>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
#! /usr/bin/env make
|
|
#
|
|
# While not very elegant as far as Makefiles go, this Makefile does
|
|
# contain the basic commands to get you terraforming your fleets (formerly "teams"). See the README for details.
|
|
|
|
provider_code_spec.json: openapi.json
|
|
tfplugingen-openapi generate --config generator.yaml --output ./provider_code_spec.json ./openapi.json
|
|
|
|
provider/team_resource_gen.go: provider_code_spec.json
|
|
tfplugingen-framework generate resources --input provider_code_spec.json --output ./provider --package provider
|
|
|
|
.PHONY: install build test tidy gen plan apply
|
|
|
|
gen: provider/team_resource_gen.go
|
|
|
|
install: gen
|
|
go install ./...
|
|
|
|
build: gen
|
|
go build ./...
|
|
|
|
test: gen
|
|
@test -n "$(FLEETDM_APIKEY)" || (echo "FLEETDM_APIKEY is not set" && exit 1)
|
|
FLEETDM_URL='https://rbx.cloud.fleetdm.com' TF_ACC=1 go test ./...
|
|
|
|
tidy:
|
|
go mod tidy
|
|
|
|
plan: tf/terraformrc-dev-override
|
|
cd tf && TF_CLI_CONFIG_FILE=./terraformrc-dev-override terraform plan
|
|
|
|
apply: tf/terraformrc-dev-override
|
|
cd tf && TF_CLI_CONFIG_FILE=./terraformrc-dev-override terraform apply -auto-approve
|
|
|
|
tf/terraformrc-dev-override:
|
|
@echo "provider_installation { \\n\
|
|
dev_overrides { \\n\
|
|
\"fleetdm.com/tf/fleetdm\" = \"$$HOME/go/bin\" \\n\
|
|
} \\n\
|
|
direct {} \\n\
|
|
}" > $@
|