Vicente Pinto
cfaf8f2605
Fix object storage credential custom endpoint and resource manager regex commnet ( #178 )
2023-12-22 16:03:18 +00:00
Henrique Santos
c7effac5c7
Update SDK dependency ( #177 )
...
* Update dependencies
* Update dependencies
* Update dependencies
* Update dependencies
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-12-21 09:33:36 +00:00
Vicente Pinto
506d1afdc2
Fix error handling on object storage service enablement ( #165 )
...
* Fix error handling on objecto storage service enablement
* Add message about depends_on
* Update docs
2023-12-18 14:51:32 +00:00
Vicente Pinto
62b6a1b3de
Support project UUID identifier in resource manager project ( #161 )
...
* Add projectId to resource manager project, fix value conversion error
* Support both uuid and container id, update acceptance tests
* Update docs
* Fix unit tests
* Adapt acc test names
2023-12-13 14:17:28 +00:00
Vicente Pinto
45e8981350
Add UseStateForUnknown for all Computed fields that RequireReplacement and dont change after an update ( #149 )
2023-11-14 17:16:50 +00:00
Vicente Pinto
d1b10d23c1
SKE Cluster: fix extensions and hibernations mapping ( #135 )
...
* Fix bug in extensions.argus conversion
* Fix mapExtensions
* Fix extensions mapping, add test case
* Check disabled argus or acl independently
* Add last fixes
* Replace NewListValueFrom with NewListValue
* Remove unused argument
2023-11-08 16:01:35 +00:00
Henrique Santos
cbbf3a00c5
SKE Acc tests - Remove max_surge from min cluster ( #130 )
...
* Remove max_surge
* Simplify import
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-11-07 11:27:43 +00:00
Vicente Pinto
4728a49845
Fix bug in extensions.argus conversion ( #133 )
2023-11-06 13:01:20 +00:00
Vicente Pinto
0d438a4a9c
SKE Cluster - Change Extensions field model to use types.Object ( #127 )
...
* Convert SKE Extensions field to TF model
* Fix unit test
* Check error
* Update stackit/internal/services/ske/cluster/resource.go
Co-authored-by: João Palet <joao.palet@outlook.com>
* Fix error messages
* Replace ListValueMust with ListValue
* Replace types.ListValue with types.ListValueFrom
* Add context
* Add separator
---------
Co-authored-by: João Palet <joao.palet@outlook.com>
2023-11-06 10:59:36 +00:00
Vicente Pinto
03d0e28016
Move functions to conversion pkg ( #123 )
2023-11-03 08:49:05 +00:00
Henrique Santos
71bf63cbc9
Acceptance tests fixes ( #120 )
...
* Update Kubernetes version
* Update nodepool OS
* Revert Kubernetes version to 1.24
* Add maintenance field to cluster-min
* Remove hardcoded kubernetes version
* Remove hardcoded setting
* Revert minor version of Kubernetes upgrade
* Fix post test check destroy
* Fix missing pointer
* Fix labels using wrong delimiters
* Fix typo in provider config
* Lint fix
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-11-02 15:31:47 +00:00
Vicente Pinto
b6100ec8d5
Replace ValuePointer function with custom conversion ( #121 )
2023-11-02 15:28:06 +00:00
João Palet
b10302c6de
Use random UUIDs for LoadBalance XRequestID headers ( #119 )
2023-11-02 12:40:48 +01:00
Henrique Santos
852516e081
SKE Cluster - Change field model lists to use types.List ( #118 )
...
* Change cluster model lists to types.List
* Lint fix
* Fix inconsistent state
* Acc test fixes
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-31 17:35:03 +00:00
João Palet
7188e13e92
Onboard Load Balancer (part 4: acc tests, examples and documentation) ( #117 )
...
* Implement acceptance test
* Add resource and data source to the provider
* Add examples and markdown description
* Generate docs
* Adjustments after review
* Move load balancer supporting infrastructure from resource config to example
2023-10-31 18:13:50 +01:00
João Palet
b804dc789e
Onboard Load Balancer (part 3: add remaining CRUD login and datasource) ( #116 )
...
* Finish implementation for CRUD functionality
* Register resource in the provider
* Adjustments to resource
* Implement data source
* Unregister resource and data source from provider
* Fix external_address schema field
* Remove oneOf validators from datasource
2023-10-31 12:52:18 +01:00
Henrique Santos
245e10a8e8
Fix load balancer custom endpoint missing from schema ( #115 )
...
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-30 16:39:55 +00:00
João Palet
19a679e0bc
Onboard Load Balancer (part 2: add update payload and API response map helpers) ( #111 )
...
* Add mapFields and tests
* Extend Create function
* Adjust function signature
* Fix toCreatePayload
* Add toTargetPoolUpdatePayload and tests
* Wait for creation
* Use waiter response for mapFields
* Adjust after dependency update
2023-10-27 18:48:31 +02:00
Henrique Santos
8f5850cdf1
Update dependencies ( #112 )
...
* Update dependencies
* Remove set timeout
* Remove set sleep before wait
* Update to new signature, remove unnecessary calls
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-27 15:48:54 +01:00
João Palet
8323db836d
Onboard Load Balancer (part 1: implement creation payload helpers) ( #107 )
...
* Add initial resource schema and model
* Configure client
* Implement toCreatePayload and test
* Unwire load balancer resource from the provider
* Add schema fields descriptions
* Review adjustments
* Lint adjustments
2023-10-27 11:40:29 +02:00
João Palet
25992d6ae4
Increase create and update timeouts for instances ( #103 )
2023-10-24 17:57:47 +02:00
Henrique Santos
c3618f2b63
Update SDK dependencies ( #100 )
...
* Update dependencies
* Fix tests
* Fix field assignment
* Update field assignment
* Remove unused functions
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-24 14:54:04 +01:00
João Palet
e61bfe09a5
Set backupSchedule as required in MongoDB Flex instance ( #96 )
...
* Set backupSchedule as required in MongoDB Flex instance
* Update example and generate docs
* Add regex explanation comment
* Fix acceptance test
* Fix map fields
2023-10-20 14:38:19 +02:00
Henrique Santos
7a7f28a306
Implement Secrets Manager User, change ACL to Set ( #94 )
...
* Implement secrets manager user
* Add user tests
* Add secrets manager user
* Fix typo
* Change ACL to set
* Fix field name
* Change ACLs to set
* Fix typo
* Fix formatting
* Fix update not using existing password
* Add repeating ACLs to test case
* Fix signature
* Add user checks
* Reorder list
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-19 13:56:24 +01:00
Henrique Santos
e1265578ce
Implement Secrets Manager ACL ( #93 )
...
* Add CIDR validator
* Implement `syncACL`, add it to creation
* Rename function
* Rename variables
* Add mapACLs
* Implement instance update
* Add ACLs to acc test
* Add ACL to schema
* Add new line
* Fix not using the ACLs read from config
* Add test case where ACLs aren't set
* Fix lint
* Generate docs
* Add uniqueness check for ACLs
* Add repeated ACLs test cases
* Remove debug leftover
* Change test cases
* Rename data
* Add ACL description
* Generate docs
* Change ACL attribute type
* Remove test case
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-18 13:25:54 +01:00
João Palet
3c6748545d
Fix PostgresFlex references in MongoDB Flex ( #91 )
...
* Fix PostgresFlex references in MongoDB Flex
* Update docs
* Re-generate docs
2023-10-17 17:53:45 +02:00
Henrique Santos
9d11098102
Improve region details ( #90 )
...
* Make client config error message more clear
* Add missing log
* Add region detail to resource/data source description
* Generate docs
* Remove resourcemanager using region
* Apply changes to MongoDBFlex user
* Generate docs
* Fix wrong description
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-17 16:02:13 +01:00
João Palet
20f3496242
Onboard MongoDB Flex user ( #88 )
...
* Onboard user
* Add examples and generate docs
* Adjustments after review
2023-10-17 15:09:02 +02:00
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
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
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
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
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
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
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
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
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
João Palet
386ccac6b4
Extend DSA Reads to compute plan name and version from plan ID ( #20 )
...
* Extend Read to compute plan name and version from plan ID
* Lint
* Fix error handling; Pass client to loadPlanNameAndVersion
* Change error to warning
* Replicate to other DSA
* Update acc tests to test import of plan name and version
2023-09-20 11:00:08 +02:00