Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation #3

Open
wants to merge 84 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
271d5d2
Add docs autogeneration submodule
schirevko Oct 13, 2022
cf49257
Update cluster labels desc (#83)
npoxopob Oct 31, 2022
32ac5cd
Update submodule
schirevko Nov 1, 2022
e8b4c4c
Update description strings for documentation
schirevko Nov 2, 2022
e98b082
Update documentation
Nov 2, 2022
7f00982
Update kubernetes cluster labels description (#90)
npoxopob Nov 29, 2022
14498d9
Update documentation (#92)
vkcs-terraform-bot Nov 29, 2022
635584d
Update readme
schirevko Nov 21, 2022
d841dff
Use default store for resource_vkcs_images_image if region doesnt hav…
schirevko Oct 20, 2022
e64590d
Add ip field to resource_vkcs_db_instance
schirevko Nov 29, 2022
71cc4ac
Update documentation
Nov 30, 2022
badadd8
Add instances information and shrink options to resource_vkcs_db_cluster
schirevko Aug 12, 2022
1febebe
Update documentation
Dec 12, 2022
dfda136
Update submodule
schirevko Dec 12, 2022
ec9a03a
Remove unreleased from v0.1.14 changelog
schirevko Dec 12, 2022
6558814
Update dbaas examples
schirevko Jan 9, 2023
1149a2d
Update documentation
Jan 9, 2023
bcdbb3b
Fix error of ignoring db's restore_point field
paaanic Mar 15, 2023
36cae51
Bump golang.org/x/text from 0.3.7 to 0.3.8
dependabot[bot] Feb 23, 2023
64c7819
Bump golang.org/x/net from 0.0.0-20220526153639-5463443f8c37 to 0.7.0
dependabot[bot] Mar 16, 2023
4a4449d
Update submodule
schirevko Mar 16, 2023
4db8489
Update k8s version in examples
paaanic Mar 17, 2023
77c4a1e
Update documentation
Mar 20, 2023
789d0ab
Add "export_location_path" computed field to resource_vkcs_sharedfile…
paaanic Mar 21, 2023
60cf9ef
Make "export_location_path" field of data_source_vkcs_sharedfilesyste…
paaanic Mar 22, 2023
2d469f1
Update documentation
Mar 22, 2023
82b20e8
Add vkcs_lb_loadbalancer datasource
paaanic Mar 22, 2023
0e3c660
Update network dependencies in tests
paaanic Mar 24, 2023
8ddc6c0
Fix error of of not expecting disk "retyping" status
paaanic Mar 24, 2023
7ccd907
Add loadbalancer_id computed field to resource_vkcs_db_cluster
paaanic Mar 21, 2023
075735a
Add "instances" computed field to resource_vkcs_db_cluster_with_shard…
paaanic Mar 21, 2023
a28cecd
Update documentation
Mar 24, 2023
79d4679
Make "security_group_ids" field of resource_vkcs_lb_loadbalancer depr…
paaanic Mar 22, 2023
455fffc
Update documentation
Mar 24, 2023
fe0aaeb
Fix error of not finding referenced network resources with sdn = "sprut"
paaanic Mar 24, 2023
dd0ce0e
Add deprecation warning to port argument of net options in db resources
paaanic Mar 25, 2023
c880025
Add fixed_ip_v4 and replica_of conflict warning
paaanic Mar 25, 2023
d0f2049
Add subnet_id argument to network of db resources
paaanic Mar 25, 2023
e06408f
Add note to db resources network.uuid with warning on empty value
paaanic Mar 25, 2023
004b2f0
Update documentation
Mar 27, 2023
30dccaf
Fix error of incorrect setting compute instance "access_ip_v4" to ""
paaanic Mar 28, 2023
03cdf09
Fix incoherent release updates
paaanic Mar 28, 2023
22024b9
Add acc test for retyping blockstorage_volume
paaanic Mar 28, 2023
a6fe6b8
Update documentation
Mar 28, 2023
2a7f682
Remove unreleased tag from v0.1.15 changelog
paaanic Mar 29, 2023
a64dc5d
Remove acc test for loadbalancer security groups
paaanic Mar 29, 2023
a5182ec
Set Magnum microversion header in client initialization
ftersin Apr 1, 2023
66c111c
Get cloud containers API version from config
ftersin Apr 1, 2023
3a8ebcb
Fix TestAccDatabaseDataSourceInstance_basic
ftersin Apr 1, 2023
08dff0a
Update documentation
Apr 3, 2023
b6b4e1a
Release v0.1.16
ftersin Apr 4, 2023
ff5d495
Update submodule
schirevko Apr 4, 2023
910b963
Add provider for public DNS
paaanic Apr 5, 2023
8906d06
Bump CI actions
ftersin Apr 1, 2023
ec2756f
Fix tests on windows
ftersin Apr 1, 2023
52f0d8f
Ignore test changing in CHANGELOG checking
ftersin Apr 1, 2023
e652dab
Update documentation
Apr 5, 2023
aaa1d12
Fix line ending
ftersin Apr 6, 2023
062f1b5
Cloud monitoring for DB
ftersin Apr 2, 2023
27e41f1
Add "new since" for cloud_monitoring_enabled
ftersin Apr 6, 2023
ff7a6ea
Update documentation
Apr 6, 2023
6701572
Deprecate multiple networks in DB instances/clusters
ftersin Apr 3, 2023
fc7246d
Add security_group argument to DB instance/cluster resources
ftersin Apr 2, 2023
a815804
Update documentation
Apr 6, 2023
5ffab09
Update submodule
schirevko Apr 6, 2023
66da140
Add vkcs_db_datastores datasource
paaanic Apr 6, 2023
d472560
Add vkcs_db_datastore datasource
paaanic Apr 5, 2023
b998439
Add vkcs_db_datastore_capabilities datasource
paaanic Apr 6, 2023
a56eab0
Add vkcs_db_datastore_parameters datasource
paaanic Apr 6, 2023
c6fafd5
Update CHANGELOG.md
paaanic Apr 6, 2023
4c75797
Remove setting ip version in data_vkcs_sharedfilesystem_sharenetwork
paaanic Apr 6, 2023
d07c847
Update examples for datastore params and caps
paaanic Apr 6, 2023
e14af50
Update documentation
Apr 6, 2023
e98121a
Fix line ending
ftersin Apr 6, 2023
9fa0a73
Fix line ending
ftersin Apr 6, 2023
2175add
Update submodule
schirevko Apr 6, 2023
bbb6e5b
Release v0.2.0
ftersin Apr 6, 2023
e3928a4
Fix test for vkcs_publicdns_record import
paaanic Apr 7, 2023
fff4b13
Fix reading shards info
paaanic Apr 12, 2023
7aa8664
Update modifying logic for vkcs_db_cluster and vkcs_db_cluster_with_s…
paaanic Apr 12, 2023
d93ff3f
Release v0.2.1
paaanic Apr 13, 2023
618c1d9
Update submodule
paaanic Apr 13, 2023
92680e3
Update submodule
paaanic Apr 14, 2023
d8b8d30
Update documentation
Apr 17, 2023
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf
3 changes: 2 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ on:
pull_request:
paths:
- 'vkcs/**'
- '!vkcs/**_test.go'
jobs:
error:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: tj-actions/changed-files@v23.1
- uses: tj-actions/changed-files@v35
id: changelog
with:
files: |
Expand Down
41 changes: 19 additions & 22 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
go-mod:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Checkout code
uses: actions/checkout@v2
- name: Check go mod
run: |
go mod tidy
Expand All @@ -28,9 +28,13 @@ jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.18
- name: lint
uses: golangci/golangci-lint-action@v2.5.2
uses: golangci/golangci-lint-action@v3
with:
version: latest
# skip cache because of flaky behaviors
Expand All @@ -41,23 +45,22 @@ jobs:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.18 # test only the latest go version to speed up CI
go-version: 1.18 # test only release go version to speed up CI
- name: Run tests
run: make.exe test
continue-on-error: true
tests-on-macos:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.18 # test only the latest go version to speed up CI
go-version: 1.18 # test only release go version to speed up CI
- name: Run tests
run: make test
tests-on-unix:
Expand All @@ -66,19 +69,13 @@ jobs:
strategy:
matrix:
golang:
- 1.17
- 1.18
- 1.19
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.golang }}
- uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Run tests
run: make test
run: make test
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.18
-
Expand All @@ -42,10 +42,10 @@ jobs:
run: CURRENT_TAG=$(git describe --abbrev=0 --match='v*.*.*' --tags); PREVIOUS_TAG=$(git describe --abbrev=0 --exclude="$CURRENT_TAG" --match='v*.*.*' --tags); sed -n -e "0,/#### $CURRENT_TAG/d" -e "/#### $PREVIOUS_TAG/q;p" CHANGELOG.md > release-notes.txt
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.5.0
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist --release-notes=release-notes.txt
args: release --clean --release-notes=release-notes.txt
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# GitHub sets this automatically
Expand Down
40 changes: 39 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,45 @@ description: |-

# VKCS Provider's changelog

#### v0.1.13 (unreleased)
#### v0.2.1
- Support shards/instances/volumes resizing in DB cluster with shards
- Fix reading state of DB cluster with shards

#### v0.2.0
- Provide support for Public DNS service
- Add datasources for DB datastores
- Add datasources for DB datastore capabilities and configuration parameters
- Support cloud monitoring for DB instances/clusters
- Add security_group argument to DB instance/cluster resources
- Fix searching of shared network with datasource

#### v0.1.16
- Add config option to run against clouds with old cloud containers API

#### v0.1.15
- Fix error of incorrect setting a value of resource_vkcs_compute_instance.access_ip_v4 to an empty string
- Add "subnet_id" argument to resource_vkcs_db_instance.network, resource_vkcs_db_cluster.network, and resource_vkcs_db_cluster_with_shards.shard.network
- Add a warning that is thrown when arguments "network.fixed_ip_v4" and "replica_of" of resource_vkcs_db_instance are set simultaneously
- Deprecate "port" argument of resource_vkcs_db_instance.network, resource_vkcs_db_cluster.network, and resource_vkcs_db_cluster_with_shards.shard.network
- Fix error of not resolving referenced network resources that were created with sdn = "sprut"
- Deprecate "security_group_ids" argument of resource_vkcs_lb_loadbalancer
- Add "instances" computed attribute to resource_vkcs_db_cluster_with_shards.shard
- Add "loadbalancer_id" computed attribute to resource_vkcs_db_cluster
- Fix error of not expecting "retyping" status when modifying resource_vkcs_blockstorage_volume.volume_type
- Add vkcs_lb_loadbalancer datasource
- Make "export_location_path" attribute of data_source_vkcs_sharedfilesystem_share computed
- Add "export_location_path" computed attribute to resource_vkcs_sharedfilesystem_share
- Fix error of ignoring "restore_point" argument in resource_vkcs_db_instance and resource_vkcs_db_cluster

#### v0.1.14
- Add "instances" computed field to resource_vkcs_kubernetes_cluster
- Add ability to control which cluster instances should remain after shrinking cluster via "shrink_options" field of resource_vkcs_kubernetes_cluster
- Add "ip" computed field to resource_vkcs_db_instance
- Allow creation of resource_vkcs_images_image in clouds without s3 support
- Added description for cluster_node_volume_type labels field in resource_vkcs_kubernetes_cluster

#### v0.1.13
- Updated description for labels field in resource_vkcs_kubernetes_cluster
- Added conflicts_with property to remote_group_id and remote_ip_prefix fields of resource_vkcs_networking_secgroup_rule
- Added deprecation warning to ethertype field of resource_vkcs_networking_secgroup_rule
- Removed dns_name and dns_domain attributes from resource_vkcs_networking_floatingip
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ terraform plan

Provider development
--------------------
To start improve it grab the repository, build it and install into local registry repository.
To start improving grab the repository, build it and install into local registry repository.
Builds for MacOS, Windows and Linux are available.
The example is for MacOS.
```sh
Expand All @@ -47,8 +47,18 @@ EOF
$ terraform init
```

When submitting PR make sure that if golang code has been changed, PR has updates to CHANGELOG.md. Add description of changes under last version with "(unreleased)" mark.

Documenting provider
--------------------
To update documentation contents, please, update "description" field of necessary resource/data_source schema and create/modify documentation templates.
Documentation templates are located in templates/ folder.
PR with renewed provider documentation is generated automatically when updates are merged into master branch.

Publishing provider
-------------------
Before publishing, remove "(unreleased)" mark from CHANGELOG in separate PR. After this PR is merged, you can publish the provider.

Provider publishes via action [release](https://github.com/vk-cs/terraform-provider-vkcs/blob/master/.github/workflows/release.yml).
To call the action create new tag.
```sh
Expand Down
2 changes: 1 addition & 1 deletion automation
11 changes: 1 addition & 10 deletions docs/data-sources/vkcs_blockstorage_snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,7 @@ data "vkcs_blockstorage_snapshot" "snapshot_1" {


## Attributes Reference
- `most_recent` **Boolean** See Argument Reference above.

- `name` **String** See Argument Reference above.

- `region` **String** See Argument Reference above.

- `status` **String** See Argument Reference above.

- `volume_id` **String** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `description` **String** The snapshot's description.

- `id` **String** ID of the resource.
Expand Down
13 changes: 1 addition & 12 deletions docs/data-sources/vkcs_blockstorage_volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,7 @@ data "vkcs_blockstorage_volume" "volume_1" {


## Attributes Reference
- `bootable` **String** See Argument Reference above.

- `metadata` <strong>Map of </strong>**String** See Argument Reference above.

- `name` **String** See Argument Reference above.

- `region` **String** See Argument Reference above.

- `status` **String** See Argument Reference above.

- `volume_type` **String** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `availability_zone` **String** The name of the availability zone of the volume.

- `id` **String** ID of the resource.
Expand Down
5 changes: 1 addition & 4 deletions docs/data-sources/vkcs_compute_availability_zones.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ data "vkcs_compute_availability_zones" "zones" {}


## Attributes Reference
- `region` **String** See Argument Reference above.

- `state` **String** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `id` **String** Hash of the returned zone list.

- `names` **String** The names of the availability zones, ordered alphanumerically, that match the queried `state`
Expand Down
23 changes: 1 addition & 22 deletions docs/data-sources/vkcs_compute_flavor.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,7 @@ data "vkcs_compute_flavor" "small" {


## Attributes Reference
- `disk` **Number** See Argument Reference above.

- `flavor_id` **String** See Argument Reference above.

- `is_public` **Boolean** See Argument Reference above.

- `min_disk` **Number** See Argument Reference above.

- `min_ram` **Number** See Argument Reference above.

- `name` **String** See Argument Reference above.

- `ram` **Number** See Argument Reference above.

- `region` **String** See Argument Reference above.

- `rx_tx_factor` **Number** See Argument Reference above.

- `swap` **Number** See Argument Reference above.

- `vcpus` **Number** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `extra_specs` <strong>Map of </strong>**String** Key/Value pairs of metadata for the flavor.

- `id` **String** ID of the found flavor.
Expand Down
7 changes: 1 addition & 6 deletions docs/data-sources/vkcs_compute_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ data "vkcs_compute_instance" "instance" {


## Attributes Reference
- `id` **String** See Argument Reference above.

- `region` **String** See Argument Reference above.

- `user_data` **String** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `access_ip_v4` **String** The first IPv4 address assigned to this server.

- `availability_zone` **String** The availability zone of this server.
Expand Down
5 changes: 1 addition & 4 deletions docs/data-sources/vkcs_compute_keypair.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ data "vkcs_compute_keypair" "kp" {


## Attributes Reference
- `name` **String** See Argument Reference above.

- `region` **String** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `fingerprint` **String** The fingerprint of the OpenSSH key.

- `id` **String** ID of the resource.
Expand Down
5 changes: 1 addition & 4 deletions docs/data-sources/vkcs_compute_quotaset.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ data "vkcs_compute_quotaset" "quota" {


## Attributes Reference
- `project_id` **String** See Argument Reference above.

- `region` **String** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `cores` **Number** The number of allowed server cores.

- `id` **String** ID of the resource.
Expand Down
5 changes: 1 addition & 4 deletions docs/data-sources/vkcs_db_backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ data "vkcs_db_backup" "db-backup" {


## Attributes Reference
- `backup_id` **String** See Argument Reference above.

- `description` **String** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `created` **String** Backup creation timestamp

- `datastore` **Object** Object that represents datastore of backup
Expand Down
3 changes: 1 addition & 2 deletions docs/data-sources/vkcs_db_config_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ data "vkcs_db_config_group" "db-config-group" {


## Attributes Reference
- `config_group_id` **String** See Argument Reference above.

In addition to all arguments above, the following attributes are exported:
- `created` **String** Timestamp of config group's creation.

- `datastore` **Object** Object that represents datastore of backup
Expand Down
11 changes: 1 addition & 10 deletions docs/data-sources/vkcs_db_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,5 @@ data "vkcs_db_database" "db-database" {


## Attributes Reference
- `id` **String** See Argument Reference above.

- `charset` **String** See Argument Reference above.

- `collate` **String** See Argument Reference above.

- `dbms_id` **String** See Argument Reference above.

- `name` **String** See Argument Reference above.

No additional attributes are exported.

Loading