Commit graph

70 commits

Author SHA1 Message Date
João Palet
ade77eb544
Onboard MongoDB Flex instance (#86)
* Onboard instance resource

* Add options.type as required field

* Implement resource unit tests

* Implement data source

* Implement acc tests

* Adjust update acc test

* Fix typo

* Adjust update unit tests

* Adjustments after review

* Minor adjustment for uniformity

* Adjustments after review
2023-10-17 11:20:22 +02:00
Henrique Santos
6372434e56
Implement Secrets Manager instance (#85)
* Implement secrets manager instance resource

* Implement secrets manager data source

* Implement secrets manager acc tests

* Add secrets manager to provider

* Fix typos

* Fix test name

* Fix typo

* Fix instance name

* Lint fix

* Remove unnecessary modifier

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-16 11:37:34 +01:00
Henrique Santos
6e51bdd5bf
Object storage improvements (#84)
* Add example

* Rename bucket_name --> bucket

* Fix examples in wrong folder

* Add example

* Lint examples

* Fix examples

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-13 18:33:45 +01:00
Henrique Santos
7334c802ad
Changes to release workflow (#83)
* Add workflow_dispatch trigger

* Remove branch check

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-13 15:38:36 +01:00
Henrique Santos
248b9834ff
Object storage misc fixes (#82)
* Fix wrong reference

* Fix schema

* Fix mapFields not fetching credentials group id

* Change expiration timestamp

* Fix schema

* Remove fields that don't come in the GET response

* Add RFC3339SecondsOnly

* Change expiration timestamp to not support fractional seconds

* Set retry timeout

* Harmonize expiration timestamp

* Skip import check on credential keys

* Add error check

* Update docs

* Change field description

* Add test case, simplify test

* Add test case, simplify test

* Rename variable

* Generate docs

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-13 15:02:48 +01:00
João Palet
5a5ac6640c
Rename credentials_id field to credential_id (#80)
* Rename credentials_id field to credential_id

* Address review comments
2023-10-12 14:57:05 +01:00
Henrique Santos
b02db190bf
Acceptance tests data changes (#81)
* Update minor versions

* Fix sgw acl

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-12 14:42:45 +01:00
Henrique Santos
0fb7d0d793
Implement object storage credential (#79)
* Implement credential resource

* Implement test

* Fix test

* Implement data source

* Implement credential acc test

* Add objectstorage credential

* Add test for enableProject

* Add readCredentials test

* Removed unnecessary test case

* Generate docs

* Fix lint

* Fix field name

* Readd credentials group checks

* Fix comment

* Fix comment

* Remove auth

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-12 14:42:31 +01:00
stackit-pipeline
f9b245ffb4
Update module github.com/google/go-cmp to v0.6.0 (#77)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-12 12:04:44 +01:00
dependabot[bot]
e625bafe60
Bump golang.org/x/net from 0.15.0 to 0.17.0 (#78)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 12:04:19 +01:00
Vicente Pinto
b8d2d94156
Onboard object storage credentials group (#74)
* Onboard credentials group resource

* Update object storage acc test

* Fix typo

* Generate docs, add examples, fix typos

* Refactor map fiels

* Add unit test for readCredentialsGroups

* Fix lint issues§
g

* Use projectId from Model

* Fix errors§
g

* Fix test

* Simplify signature of enableProject

* Change comment

* Add TestEnableProject

* Rename variable

* Add enableProject test

* Remove unused test setting

* Fix wrong error message

* Improve test case, rename mocked data

* Fix typo

* Removed unnecessary test case

* Removed unnecessary test case

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-12 09:34:38 +01:00
João Palet
fee47a6400
Rename DSA credentials to credential (#76)
* Rename in LogMe

* Rename in other DSA

* Rename examples

* Rename folder names

* Rename in error messages
2023-10-11 09:54:08 +02:00
João Palet
bd286d3c2d
Update actions/checkout action to v4 (#75) 2023-10-10 17:03:45 +02:00
stackit-pipeline
7e09904bc0
Update module github.com/stackitcloud/stackit-sdk-go/services/objectstorage to v0.4.0 (#72)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-10 16:21:41 +02:00
stackit-pipeline
1eb856b150
Update module github.com/stackitcloud/stackit-sdk-go/services/argus to v0.4.0 (#71)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-10 16:21:20 +02:00
stackit-pipeline
09a0777128
Update module github.com/hashicorp/terraform-plugin-framework to v1.4.1 (#70)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-10 16:20:52 +02:00
stackit-pipeline
c5b34ed1bb
Update module golang.org/x/mod to v0.13.0 (#66)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-10 16:20:33 +02:00
Vicente Pinto
9ec45e6be8
Add disclaimer to key flow doc (#73)
* Add disclaimer to key flow doc

* Fix wrong options
2023-10-10 09:54:21 +01:00
Vicente Pinto
590d169c68
Update README and template with more info on key flow (#69)
* Update README and template with more info on key flow

* Changes after review
2023-10-09 15:37:50 +01:00
Vicente Pinto
621b726926
Update README authentication section (#68)
* Add key flow params to provider

* Update docs, add examples

* Update README
2023-10-09 11:24:12 +01:00
Vicente Pinto
bc27bc20db
Key flow authentication (#67)
* Add key flow params to provider

* Update docs, add examples
2023-10-09 08:15:14 +01:00
Henrique Santos
7354808f02
Update services dependencies (#64)
* Update services dependencies

* Move reference

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-04 15:18:23 +01:00
stackit-pipeline
70e269a357
Update module github.com/stackitcloud/stackit-sdk-go/services/redis to v0.3.0 (#63)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-03 08:33:45 +01:00
Vicente Pinto
985ef903f9
Update gh actions (#62) 2023-10-03 08:32:56 +01:00
stackit-pipeline
d9683265db
Update module github.com/stackitcloud/stackit-sdk-go/services/argus to v0.2.0 (#53)
* Update module github.com/stackitcloud/stackit-sdk-go/services/argus to v0.2.0

* Update operation after argus update

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>
2023-10-02 16:52:00 +01:00
stackit-pipeline
db9e05b326
Update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.2.0 (#60)
* Update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.2.0

* Fix ske acc test

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2023-10-02 09:29:46 +01:00
stackit-pipeline
8766b4e467
Update module github.com/hashicorp/terraform-plugin-go to v0.19.0 (#52)
* Update module github.com/hashicorp/terraform-plugin-go to v0.19.0

* Go get missing dependencies

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>
2023-10-02 08:52:21 +01:00
stackit-pipeline
492cdb7191
Update module github.com/hashicorp/terraform-plugin-framework to v1.4.0 (#51)
* Update module github.com/hashicorp/terraform-plugin-framework to v1.4.0

* Go get tf plugin sdk v2

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>
2023-10-02 08:51:46 +01:00
stackit-pipeline
21df72b399
Update module github.com/stackitcloud/stackit-sdk-go/services/redis to v0.3.0 (#58)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2023-10-02 08:50:57 +01:00
stackit-pipeline
a01373c095
Update module github.com/stackitcloud/stackit-sdk-go/services/logme to v0.3.0 (#54)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2023-10-02 08:47:56 +01:00
stackit-pipeline
9cd45d905e
Update module github.com/stackitcloud/stackit-sdk-go/services/mariadb to v0.3.0 (#55)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-02 08:39:41 +01:00
stackit-pipeline
7ceeab75eb
Update module github.com/stackitcloud/stackit-sdk-go/services/postgresflex to v0.2.0 (#56)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-02 08:39:27 +01:00
stackit-pipeline
fd47ea3a56
Update module github.com/stackitcloud/stackit-sdk-go/services/rabbitmq to v0.3.0 (#57)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-02 08:39:14 +01:00
stackit-pipeline
3fe1b36e15
Update module github.com/stackitcloud/stackit-sdk-go/services/resourcemanager to v0.2.0 (#59)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-10-02 08:37:24 +01:00
Henrique Santos
d926e2d559
Object Storage: implement bucket (#45)
* Add object storage dependency

* Add object storage

* Add object storage

* Implement bucket resource

* Add map fields test

* Fix typos

* Implement data source

* Add Object Storage bucket

* Fix typo

* Implement Object Storage acc tests

* Go mod tidy

* Reword description

* Fix typos

* Fix typo

* Implement check destroy

* Add region in check destroy

* Add timeout in check destroy

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-09-29 14:37:32 +01:00
Henrique Santos
175ce93f85
Fix data source references (#61)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-09-29 10:12:18 +01:00
Henrique Santos
49ec81ae25
Update module github.com/google/uuid to v1.3.1 (#27)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: João Palet <joao.palet@outlook.com>
2023-09-28 17:41:45 +02:00
Henrique Santos
98f382850a
Update module github.com/stackitcloud/stackit-sdk-go/services/dns to v0.2.0 (#39)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: João Palet <joao.palet@outlook.com>
2023-09-28 17:40:54 +02:00
Henrique Santos
b53ef3458f
Update module github.com/stackitcloud/stackit-sdk-go/services/opensearch to v0.3.0 (#42)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: João Palet <joao.palet@outlook.com>
2023-09-28 17:39:35 +02:00
Henrique Santos
367c37888e
Update module github.com/stackitcloud/stackit-sdk-go/services/postgresql to v0.3.0 (#44)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-09-28 17:32:20 +02:00
Henrique Santos
043c83ee14
Fix log typo (#37)
* Fix log typo

* Fix fix

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-09-27 16:34:54 +01:00
Henrique Santos
538fbd89b1
Update module github.com/stackitcloud/stackit-sdk-go/core to v0.2.0 (#28)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2023-09-27 16:27:13 +02:00
Henrique Santos
cb26399be6
Add details to log (#35)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-09-27 10:16:03 +01:00
João Palet
f8c9e4c0af
Move internal packages into internal folder (#33)
* Move internal packages into internal folder

* Fix testutil imports
2023-09-26 19:44:16 +02:00
Vicente Pinto
46be7cfafd
Add warning during ske cluster creation when invalid argus instance id is provided (#32)
* Add warning during cluster creation if argus instance id is invalid

* Update warning message

* Add ske v0.1.1
2023-09-26 18:00:07 +01:00
Vicente Pinto
d3cdbf0e2a
Argus/Postgresflex Credentials import documentation and fix (#22)
* Add documentation

* Remove password from datasource

* Fix bug§

* add warning

* Create logAndWarning function
2023-09-25 10:47:28 +01:00
Henrique Santos
9b5ca058ef
Renovate - Fix config, add setting to update import paths on major module updates (#26)
* Fix wrong config

* Update import paths on major module updates

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-09-21 18:24:11 +01:00
Henrique Santos
d025012733
Add renovate (#24)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-09-21 16:03:44 +01:00
Henrique Santos
4e8514df00
Logging and error handling improvements, bug fixes (#21)
- Uniformed logs and diagnostics:
  - Logging and adding to diagnostics is done by the highest level function (Create/Read/Update/Delete/Import) using `LogAndAddError`
  - Lower-level routines' signature changed to return error instead of writing to diagnostics
  - Standardize summary and details across services
  - Removed manual adding of relevant variables to details (they're in the context, TF adds them to logs)
- Changed validators to be closer to official implementation
- Fix logging wrong output after wait
- Fix Argus checking wrong diagnostics
- Fix Resource Manager not updating state after project update
- Fix unnecessary pointer in LogAndAddError
2023-09-21 14:52:52 +01:00
Vicente Pinto
29b8c91999
Refer to contribution guide on README (#23)
* Refer to migration guide on README

* Replace url with path
2023-09-21 09:59:06 +01:00