Skip to content

Commit

Permalink
V4 SDKs (#699)
Browse files Browse the repository at this point in the history
Co-authored-by: Haroon-Dweikat-Ntx <[email protected]>
Co-authored-by: Abhishekism9450 <[email protected]>
Co-authored-by: Abhishek <[email protected]>
Co-authored-by: Gevorg <[email protected]>
Co-authored-by: Pradeepsingh Bhati <[email protected]>
  • Loading branch information
6 people authored Dec 26, 2024
1 parent 502c1ea commit 4e65a2b
Show file tree
Hide file tree
Showing 4,355 changed files with 109,005 additions and 1,035,877 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 5 additions & 1 deletion .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ jobs:
elif [ "$provider" = "karbon" ]
then
runFlag+="TestAccKarbon*"
elif [ "$provider" = "pc" ]
elif [ "$provider" = "v3" ]
then
runFlag+="TestAccNutanix*"
elif [ "$provider" = "v4" ]
then
runFlag+="TestAccV2Nutanix*"
elif [ "$provider" = "era" ]
then
runFlag+="TestAccEra*"
Expand All @@ -57,6 +60,7 @@ jobs:
echo "TESTARGS = $TESTARGS"
echo '${{ secrets.FOUNDATION_CONFIG }}' > test_foundation_config.json
echo '${{ secrets.PC_CONFIG }}' > test_config.json
echo '${{ secrets.V4_CONFIG }}' > test_config_v2.json
${{ secrets.ACCEPTANCE_TEST_ARGS }} make testacc
- name: Code Coverage Check
if: ${{ always() }}
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ terraform-provider-nutanix
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
log.*
!vendor/**

#exclude vendor
!vendor/**
vendor
bin/*
build.sh

# autogenerated fies
*.autogenerated.*
Expand Down
5 changes: 4 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ linters-settings:
# also, for anyone using vscode, use the following configs:
# "rewrap.wrappingColumn": 200 ... requires the rewrap plugin
# "editor.rulers": [200]
line-length: 200
line-length: 500
gocritic:
disable:
- ifElseChain

linters:
enable-all: true
Expand Down
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,75 @@
## 2.0 (December, 2024)
[Full Changelog](https://github.com/nutanix/terraform-provider-nutanix/compare/feat/1.9.5...feat/2.0)

All new features are v4 SDKs based.

**New Feature:**
- Cluster Management [\#704](https://github.com/nutanix/terraform-provider-nutanix/issues/704)
- CRUD for clusters
- Resource to discover unconfigured nodes
- Resource to fetch network configuration of unconfigured nodes
- Resource to add/remove node from cluster
- Resource for PC registration
- Datasource for Hosts Info

- Storage Containers [\#705](https://github.com/nutanix/terraform-provider-nutanix/issues/705)
- CRUD for storage containers
- datasource for storage stats info

- Networks [\#706](https://github.com/nutanix/terraform-provider-nutanix/issues/706)
- CRUD for Subnets
- CRUD for VPCs
- CRUD for PBRs
- CRUD for Floating IPs
- CRUD for Static Routes
- CRUD for Services Groups
- CRUD for Address Groups
- CRUD for Network Security Rules

- IAM [\#707](https://github.com/nutanix/terraform-provider-nutanix/issues/707)
- CRUD for Roles
- Datasource for Operations( permissions )
- CRUD for Users
- CRUD for User Groups
- CRUD for Authorization Policy ( ACPs )
- CRUD for SALM Identity Providers
- CRUD for Directory Services

- Prism [\#711](https://github.com/nutanix/terraform-provider-nutanix/issues/711)
- CRUD for categories

- VMM [\#708](https://github.com/nutanix/terraform-provider-nutanix/issues/708)
- CRUD for Virtual Machine
- CRUD for Images
- CRUD for Image Placement Policy
- Resource to Clone a VM
- Resource for NGT Installation / Uninstallation
- Resource for NGT upgrade
- Resource for Template deploy
- Resource for Template Guest OS Actions
- CRUD for Template
- Resource for CDROM inject/eject
- Resource for VM revert from recovery point
- Resource for VM guest customisation update
- Resource for VM Network Device Assign/Remove IP
- Resource for VM Network Device Migrate
- Resource for VM Shutdown Actions

- Volumes [\#709](https://github.com/nutanix/terraform-provider-nutanix/issues/709)
- CRUD for Volume Groups
- Resource to Attach/Deattach VG to VM
- Resource to Attach/Deattach VG to ISCSI Client
- CRUD for Volume Group vDisks
- Resource to attach/deattach categories from VG

- Data Protection [\#710](https://github.com/nutanix/terraform-provider-nutanix/issues/710)
- CRUD for Recovery Point
- CRUD for Replicate Recovery Point
- Resource to Restore VM from Recovery Point
- Datasource for VM Recovery Point Info



## 1.9.5 (January 16, 2024)
[Full Changelog](https://github.com/nutanix/terraform-provider-nutanix/compare/feat/1.9.4...feat/1.9.5)

Expand Down
6 changes: 4 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ test: fmtcheck
go test --tags=unit $(TEST) -timeout=30s -parallel=4

testacc: fmtcheck
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 500m -coverprofile c.out -covermode=count

@echo "==> Running testcases..."
@echo "TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 500m -coverprofile c.out -covermode=count"
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 500m -coverprofile c.out -covermode=count

fmt:
@echo "==> Fixing source code with gofmt..."
goimports -w ./$(PKG_NAME)
Expand Down
Loading

0 comments on commit 4e65a2b

Please sign in to comment.