-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ✨Added New ZPA Gateway Resource (#293)
* feat: Added ZPA Gateway Feature * fix: Fix firewall filtering rule test order * fix: Fixed acceptance tests * (feat): Added Forwarding Control ZPA Gateway resource * (feat): Added Forwarding Control Policy ZPA Gateway Data Source * fix: fixed zpa gateway drift * feat: Added ZPA Gateway Resource * [feat]: ✨Added forward control zpa gateway * (doc) updated changelog and release-notes * fix: fix github action workflow * fix: Fixed linter best practice * fix: Fixed linter best practice * fix: Fixed admin users resource * fix: Fixed admin users resource * fix: Fixed admin users resource
- Loading branch information
Showing
75 changed files
with
1,174 additions
and
323 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ TESTARGS?=-test.v | |
default: build | ||
|
||
dep: # Download required dependencies | ||
go mod tidy | ||
|
||
build: fmtcheck | ||
go install | ||
|
@@ -46,15 +45,14 @@ testacc: | |
build13: GOOS=$(shell go env GOOS) | ||
build13: GOARCH=$(shell go env GOARCH) | ||
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10... | ||
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/2.6.6/$(GOOS)_$(GOARCH) | ||
build13: DESTINATION=$(APPDATA)/terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/2.7.0/$(GOOS)_$(GOARCH) | ||
else | ||
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/2.6.6/$(GOOS)_$(GOARCH) | ||
build13: DESTINATION=$(HOME)/.terraform.d/plugins/$(ZIA_PROVIDER_NAMESPACE)/2.7.0/$(GOOS)_$(GOARCH) | ||
endif | ||
build13: fmtcheck | ||
go mod tidy && go mod vendor | ||
@echo "==> Installing plugin to $(DESTINATION)" | ||
@mkdir -p $(DESTINATION) | ||
go build -o $(DESTINATION)/terraform-provider-zia_v2.6.6 | ||
go build -o $(DESTINATION)/terraform-provider-zia_v2.7.0 | ||
|
||
vet: | ||
@echo "==> Checking source code against go vet and staticcheck" | ||
|
@@ -74,9 +72,15 @@ fmtcheck: | |
errcheck: | ||
@sh -c "'$(CURDIR)/scripts/errcheck.sh'" | ||
|
||
fmt-docs: | ||
@echo "✓ Formatting code samples in documentation" | ||
@terrafmt fmt -p '*.md' . | ||
tools: | ||
@which $(GOFMT) || go install mvdan.cc/[email protected] | ||
@which $(TFPROVIDERLINT) || go install github.com/bflad/tfproviderlint/cmd/[email protected] | ||
@which $(STATICCHECK) || go install honnef.co/go/tools/cmd/[email protected] | ||
|
||
tools-update: | ||
@go install mvdan.cc/[email protected] | ||
@go install github.com/bflad/tfproviderlint/cmd/[email protected] | ||
@go install honnef.co/go/tools/cmd/[email protected] | ||
|
||
vendor-status: | ||
@govendor status | ||
|
@@ -89,41 +93,6 @@ test-compile: | |
fi | ||
go test -c $(TEST) $(TESTARGS) | ||
|
||
lint: | ||
@echo "==> Checking source code against linters..." | ||
@$(TFPROVIDERLINT) \ | ||
-c 1 \ | ||
-AT001 \ | ||
-R004 \ | ||
-S001 \ | ||
-S002 \ | ||
-S003 \ | ||
-S004 \ | ||
-S005 \ | ||
-S007 \ | ||
-S008 \ | ||
-S009 \ | ||
-S010 \ | ||
-S011 \ | ||
-S012 \ | ||
-S013 \ | ||
-S014 \ | ||
-S015 \ | ||
-S016 \ | ||
-S017 \ | ||
-S019 \ | ||
./$(PKG_NAME) | ||
|
||
tools: | ||
@which $(GOFMT) || go install mvdan.cc/[email protected] | ||
@which $(TFPROVIDERLINT) || go install github.com/bflad/tfproviderlint/cmd/[email protected] | ||
@which $(STATICCHECK) || go install honnef.co/go/tools/cmd/[email protected] | ||
|
||
tools-update: | ||
@go install mvdan.cc/[email protected] | ||
@go install github.com/bflad/tfproviderlint/cmd/[email protected] | ||
@go install honnef.co/go/tools/cmd/[email protected] | ||
|
||
ziaActivator: GOOS=$(shell go env GOOS) | ||
ziaActivator: GOARCH=$(shell go env GOARCH) | ||
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10... | ||
|
@@ -144,10 +113,15 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) | |
endif | ||
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME) | ||
|
||
website-lint: | ||
@echo "==> Checking website against linters..." | ||
@misspell -error -source=text website/ | ||
|
||
website-test: | ||
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) | ||
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..." | ||
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO) | ||
endif | ||
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME) | ||
|
||
.PHONY: build test testacc vet fmt fmtcheck errcheck tools vendor-status test-compile website-lint website website-test |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
subcategory: "Forwarding Control Policy" | ||
layout: "zscaler" | ||
page_title: "ZIA): forwarding_control_zpa_gateway" | ||
description: |- | ||
Get information about forwarding control zpa gateway used in IP Source Anchoring. | ||
--- | ||
# Data Source: forwarding_control_zpa_gateway | ||
|
||
Use the **forwarding_control_zpa_gateway** data source to get information about a forwarding control zpa gateway used in IP Source Anchoring integration between Zscaler Internet Access and Zscaler Private Access. This data source can then be associated with a ZIA Forwarding Control Rule. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
# ZIA Forwarding Control - ZPA Gateway | ||
data "zia_forwarding_control_zpa_gateway" "this" { | ||
name = "ZPA_GW01" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) The name of the forwarding control ZPA Gateway to be exported. | ||
* `id` - (Optional) The ID of the forwarding control ZPA Gateway resource. | ||
|
||
## Attribute Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `description` - (string) - Additional details about the ZPA gateway | ||
* `last_modified_by` - (list) - Information about the admin user that last modified the ZPA gateway | ||
* `id` - (int) - Identifier that uniquely identifies an entity | ||
* `name` - (string) - The configured name of the entity | ||
* `last_modified_time` - (int) - Timestamp when the ZPA gateway was last modified | ||
* `type` - (string) - Indicates whether the ZPA gateway is configured for Zscaler Internet Access (using option ZPA) or Zscaler Cloud Connector (using option ECZPA) | ||
* `zpa_server_group` - () - The ZPA Server Group that is configured for Source IP Anchoring | ||
* `external_id` - (string) An external identifier used for an entity that is managed outside of ZIA. Examples include zpaServerGroup and zpaAppSegments. This field is not applicable to ZIA-managed entities. | ||
* `name` - (string) The configured name of the entity |
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.