Skip to content
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
d0b65a3
Init
Jan 14, 2025
c740b17
Add github stuff
Jan 14, 2025
621c5b0
Typos
Jan 14, 2025
f17a849
Goreleaser
Jan 14, 2025
e813768
Fix main
Jan 14, 2025
ea2dacb
Tests not run
Jan 14, 2025
50805ed
tests pass
Jan 14, 2025
91962a4
Docs
Jan 14, 2025
437305c
Tests pass
Jan 14, 2025
38088c4
#
Jan 14, 2025
7492085
Add workflows
Jan 14, 2025
f49cc5d
Add workflows
Jan 14, 2025
1a9de59
Fix modules
Jan 14, 2025
f2a14ac
#
Jan 14, 2025
2bc0db4
#
Jan 14, 2025
6ff4342
#
Jan 14, 2025
9f204f5
Remove stuff
Jan 15, 2025
ffd55f5
Adjust docs
Jan 15, 2025
03c1e35
Adjust docs
Jan 15, 2025
21d63f3
Adjust docs
Jan 15, 2025
9774ef8
README
Jan 15, 2025
771119c
README
Jan 15, 2025
1f53da4
README
Jan 15, 2025
9410316
Change vCD to VCFA
Jan 15, 2025
4d9361a
Remove VCD
Jan 15, 2025
66c1d68
Remove Vcd.Org
Jan 15, 2025
00d868a
Apply suggestions
Jan 15, 2025
f6bb57a
Add website.erb
Jan 15, 2025
682cc9c
Add website.erb
Jan 15, 2025
1ba2a71
#
Jan 15, 2025
a73fe0a
#
Jan 15, 2025
ca9a910
Suggestions
Jan 16, 2025
99813f5
Suggestions
Jan 16, 2025
b77426e
#
Jan 16, 2025
90a207b
#
Jan 16, 2025
1bc50fb
#
Jan 16, 2025
d9737d9
#
Jan 16, 2025
13ec4fa
Fix
Jan 16, 2025
0e4b0a5
Fix
Jan 16, 2025
a295f44
#
Jan 16, 2025
deeece1
#
Jan 16, 2025
91db01e
Suggestions
Jan 16, 2025
8d6a93b
#
Jan 16, 2025
6f6489f
#
Jan 16, 2025
a2dddcc
#
Jan 16, 2025
fd6044b
#
Jan 16, 2025
3209a90
#
Jan 16, 2025
7c91149
#
Jan 16, 2025
8896bf6
#
Jan 16, 2025
9b2d33d
#
Jan 16, 2025
2d436bc
Improve readme
Jan 16, 2025
d95998f
#
Jan 16, 2025
ddf9523
nit
Jan 16, 2025
3766629
#
Jan 16, 2025
ea9f77c
#
Jan 16, 2025
c1ff68f
#
Jan 16, 2025
3ae3e35
#
Jan 16, 2025
f098ec4
Fix sample config
Jan 16, 2025
4cc4941
#
Jan 16, 2025
df48439
#
Jan 16, 2025
72ee7cb
Rename useVcdConnectionCache
Jan 16, 2025
84f5776
Remove links
Jan 16, 2025
289efed
typo
Jan 16, 2025
ad87734
typo
Jan 16, 2025
ecd567b
Changelog
Jan 16, 2025
ba58b81
Changelog
Jan 16, 2025
45e0cb1
Changelog
Jan 16, 2025
fc78b1f
Changelog
Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .changes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Handling of CHANGELOG entries

* All PRs, instead of updating CHANGELOG.md directly, will create individual files in a directory .changes/$version (The version is the same contained in the VERSION file)
* The files will be named `xxx-section_name.md`, where xxx is the PR number, and `section_name` is one of
* features
* improvements
* bug-fixes
* deprecations
* notes
* removals

* The changes files must NOT contain the header

* You can update the file `.changes/sections` to add more headers
* To see the full change set for the current version (or an old one), use `./scripts/make-changelog.sh [version]`

42 changes: 42 additions & 0 deletions .changes/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash

# This script is used at the start of a new release cycle, to
# initialize the CHANGELOG
# Run at the top of the repository, as '.changes/init.sh'

version=$1
if [ -z "${version}" ]
then
if [ ! -f VERSION ]
then
echo "File ./VERSION not found"
echo "run this command from the repository root directory as .changes/init.sh"
echo ""
echo "or supply a version on the command line: ./init.sh v1.0.0"
exit 1
fi

version_from_file=$(cat VERSION | tr -d '\n' | tr -d '\r' )

if [ -z "$version_from_file" ]
then
echo "No version found in ./VERSION file"
exit 1
fi
version=$version_from_file
fi

starts_with_v=$(echo ${version} | grep '^v')
if [ -n "$starts_with_v" ]
then
version=$(echo ${version} | tr -d 'v')
fi

echo "Copy the following lines at the top of CHANGELOG.md"
echo ""
echo ""
echo "## ${version} (Unreleased)"
echo ""
echo "Changes in progress for v${version} are available at [.changes/v${version}](https://github.com/vmware/terraform-provider-vcfa/tree/main/.changes/v${version}) until the release."
echo ""

7 changes: 7 additions & 0 deletions .changes/sections
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
features
experimental-features
improvements
bug-fixes
deprecations
notes
removals
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These owners will be the default owners for everything in the repo. Unless a later match takes
# precedence all these users will be requested for review when someone opens a pull request.
* @lvirbalas @Didainius @adambarreiro
74 changes: 74 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_Report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
name: Bug Report
about: If something isn't working as expected in Terraform VCFA Provider

---

Hello,

Thank you for opening an issue. Please note that we try to keep the Terraform VCFA Provider issue tracker reserved
for bug reports and feature requests. For general Terraform usage questions, please see:
https://www.terraform.io/community.html.

### Terraform Version
Run `terraform -v` to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

### Affected Resource(s)
Please list the resources as a list, for example:
- vcfa_org
- vcfa_region

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

### Terraform Configuration Files

```hcl
Copy-paste your Terraform configurations here. Please **shrink HCL replicating the bug to minimum**
without modules. It will help us to respond and replicate the problem quicker. It may also uncover
some HCL error while doing so.

For bigger configs you may use [Gist(s)](https://gist.github.com) or a service like Dropbox and
share a link to the ZIP file.
```

### Debug Output
Please provide a link to GitHub [Gist(s)](https://gist.github.com) containing complete debug
output. You can enable debug by using the commands below:
```shell
export TF_LOG_PATH=tf.log
export TF_LOG=TRACE
export GOVCD_LOG_FILE=go-vcloud-director.log
export GOVCD_LOG=true
```

On Windows the command instead of `export` is `set`.

Replicate the issue after setting the environment variables listed above and it should create two
new files in the working directory: `tf.log` and `go-vcloud-director.log`. The `tf.log` is a general
Terraform debug log (more information about it is in
https://www.terraform.io/docs/internals/debugging.html) while the `go-vcloud-director.log` is a
specific log file for `terraform-provider-vcfa` containing debug information about performed API
calls. Please attach both of them to your [Gist](https://gist.github.com).

### Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the `crash.log`.

### Expected Behavior
What should have happened?

### Actual Behavior
What actually happened?

### Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
1. `terraform apply`

### User Access rights
Information about user used. Role and/or more exact rights if it is customized.

### Important Factoids
Is there anything atypical about your accounts that we should know?

### References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
- Issue #0000
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_Request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: 🚀 Feature Request
about: I have a suggestion (and might want to implement myself 🙂)!
labels: enhancement
---

<!--- Please keep this note for the community --->

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

<!--- Thank you for keeping this note for the community --->

### Description

<!--- Please leave a helpful description of the feature request here. --->

### New or Affected Resource(s)

<!--- Please list the new or affected resources and data sources. --->

* vcfa_XXX

### Terraform Configuration (if it applies)

<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code --->

```hcl
Copy-paste your Terraform configurations here. Please **shrink HCL replicating the bug to minimum**
without modules. It will help us to respond and replicate the problem quicker. It may also uncover
some HCL error while doing so.

For bigger configs you may use [Gist(s)](https://gist.github.com) or a service like Dropbox and
share a link to the ZIP file.
```

### References

<!---
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests

Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor blog posts or documentation? For example:

--->

* Issue #0000
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Terraform Core Bug Reports and Feature Requests
url: https://github.com/hashicorp/terraform/issues/new/choose
about: Terraform Core, which handles the Terraform configuration language, CLI commands, and resource dependency graph, has its own codebase. Bug reports and feature requests for those pieces of functionality should be directed to that repository.
- name: Terraform Language or Workflow Questions
url: https://discuss.hashicorp.com/c/terraform-core
about: Please ask and answer language or workflow related questions through the Terraform Core Community Forum.
39 changes: 39 additions & 0 deletions .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: check-code
on:
push:
paths-ignore:
- '**.md'
- 'website/**'
pull_request:
paths-ignore:
- '**.md'
- 'website/**'

jobs:
build:
name: Check
runs-on: ubuntu-latest
env:
GO111MODULE: on

steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'

- name: vet
run: make vet

- name: static
run: make static

- name: test
run: make test

- name: tags
run: make tagverify
57 changes: 57 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
*.dll
*.exe
.DS_Store
example.tf
terraform.tfplan
terraform.tfstate
bin/
modules-dev/
/pkg/
website/.vagrant
website/.bundle
website/build
website/node_modules
.vagrant/
*.backup
./*.tfstate
.terraform/
*.log
*.bak
*~
.*.swp
.idea
.vscode/
*.iml
*.test
*.iml

# Ignore test coverage files
*.cover

vcfa_test_config*.json
vcfa/vcfa_test_config*.json
vcfa_test_config*.json
vcfa/go-vcloud-director.log
vcfa/test-artifacts
website/vendor
vcfa/org_user_pwd.txt
vcfa/vcfa_test_pass_list*.txt
tmp/
examples/**/terraform.tfvars
examples/**/.terraform*

# Test exclusions
!command/test-fixtures/**/*.tfstate
!command/test-fixtures/**/.terraform/
vcfa/*-tests-end-in-node-*-*.txt
vcfa/*-tests-planned-in-node-*-*.txt
vcfa/*-tests-processed-in-node-*-*.txt
vcfa/*-tests-retrieved-in-node-*-*.txt
vcfa/*-out-*.txt

# Go workspace
go.work
go.work.sum

# File cache directory
test-resources/cache/*
58 changes: 58 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
# goreleaser does not work with CGO, it could also complicate
# usage by users in CI/CD systems like Terraform Cloud where
# they are unable to install libraries.
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X github.com/vmware/terraform-provider-vcfa/vcfa.BuildVersion={{.Env.BUILDVERSION}}'
goos:
- freebsd
- windows
- linux
- darwin
goarch:
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
signs:
- artifacts: checksum
args:
# if you are using this is a GitHub action or some other automated pipeline, you
# need to pass the batch flag to indicate its not interactive.
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
# Visit your project's GitHub Releases page to publish this release.
draft: true
changelog:
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- go mod tidy
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0 (Unreleased)

Changes in progress for v1.0.0 are available at [.changes/v1.0.0](https://github.com/vmware/terraform-provider-vcfa/tree/main/.changes/v1.0.0) until the release.
Loading