Commit graph

60 commits

Author SHA1 Message Date
Diogo Ferrão
10b566c2f6
update examples (#395) 2024-06-10 19:40:38 +01:00
Diogo Ferrão
f941e53b15
Allow users to set Argus metrics storage retention policy (#393)
* implement crud commands

* resource testing

* acceptance tests

* move function to utils, cleanup tests

* fix linting

* use conversion pkg for int conversion, extend testing

* address PR comments

* address PR comments
2024-06-06 16:54:03 +01:00
Diogo Ferrão
32b1fc1ef8
Make SQLServer edition computed (#389)
* Make edition computed

* generate docs
2024-06-04 14:39:29 +01:00
Diogo Ferrão
04df2f2f89
Add examples, generate docs and fix acc tests (#386) 2024-06-04 13:13:05 +01:00
Vicente Pinto
335e1cabb6
Add sqlserverflex instance (#381)
* Draft implementation sqlserverflex instance

* Finish implementation

* Fix acc test

* Changes after review
2024-05-31 15:54:05 +01:00
João Palet
ac0840fceb
Allow specifying network ID in SKE cluster (#368) 2024-05-21 11:27:23 +01:00
Vicente Pinto
e2e5f19a29
Improve description for default fields (#369) 2024-05-21 11:14:16 +01:00
Vicente Pinto
e4bbcfd50a
Remove ssl note from redis credentials uri, mark uri as sensitive and update ske project deprecation date (#367)
* Remove ssl note from redis credential

* Mark uri as sensitive, change deprecation note of ske project

* Update date
2024-05-21 10:22:30 +01:00
Vicente Pinto
e850a952bd
Support SKE OS versions auto and forceful updates (#364)
* Deprecate os_version and add os_version_used

* Add os_version_min field

* Draft implementation for os_version_min

* Finish implementation

* Fix mapFields

* Update stackit/internal/services/ske/cluster/resource.go

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>

* Update stackit/internal/services/ske/cluster/resource.go

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>

* Update stackit/internal/services/ske/cluster/resource.go

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>

* Update stackit/internal/services/ske/cluster/resource.go

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>

* Improve descriptions

* Improve variable names

* Fix lint

* Extend acc test, generate docs

* Don't select automatically preview versions

* Update acc test

* Simplify code

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-05-20 18:03:50 +01:00
João Palet
76b8e5692d
Implement new stackit_network resource and datasource (#366)
* Copy file from DNS zone resource

* Implement resource

* Implement datasource

* Add examples

* Implement acceptance test; Some fixes

* Add docs

* Fix linter

* Fixes after review
2024-05-20 17:17:39 +01:00
Vicente Pinto
940b15e4b8
Fix kubernetes_version_min field logic (#363)
* new field kubernets_version_min and deprecate kubernetes_version

* Fix lint and tests

* Update acc test

* Deprecate datasource field, fix checkAllowPrivilegedContainers

* Update acc test, datasource and descriptions

* Update acc test

* Improve descriptions, fix bug

* Improve docs, fix acc test

* Update docs

* Update docs, fix acc test

* Update stackit/internal/services/ske/cluster/resource.go

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>

* Fix links

* Default ske auto-update to true

* Check current cluster version

* Add unit test

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-05-17 12:12:35 +01:00
Vicente Pinto
27b008a657
Support automatic kubernetes updates for stackit_ske_cluster (#360)
* new field kubernets_version_min and deprecate kubernetes_version

* Fix lint and tests

* Update acc test

* Deprecate datasource field, fix checkAllowPrivilegedContainers

* Update acc test, datasource and descriptions

* Update acc test

* Improve descriptions, fix bug

* Improve docs, fix acc test

* Update docs

* Update docs, fix acc test

* Update stackit/internal/services/ske/cluster/resource.go

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>

* Fix links

* Default ske auto-update to true

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-05-14 14:55:33 +01:00
João Palet
ee905a3a5f
Deprecate stackit_loadbalancer_credential and add new stackit_loadbalancer_observability_credential (#357)
* Copy over old resource files

* Adjustments to the new observability credential resource.go

* Register new resource in the provider

* Add example

* Adapt acc test

* Update docs

* Add deprecation message

* Fix linter

* Add deprecation message to dscription
2024-05-13 15:30:51 +01:00
Vicente Pinto
49b585923b
Update docs (#352) 2024-05-03 14:11:28 +00:00
Diogo Ferrão
7c1560d513
update docs (#330) 2024-04-16 13:41:42 +01:00
GokceGK
056c000acc
Update SKE project resource deprecation message (#313)
* remove redundant log message

* update description and deprecation message for project resource

* add missing space

* update docs
2024-03-26 11:11:21 +01:00
Diogo Ferrão
d0b0ba4cbb
Create guide to document Vault usage with Secrets Manager (#310)
* create guide

* Address comments

* remove frontmatter description and subsection

* Move guide to template file for generation

* update description and note
2024-03-26 08:39:47 +00:00
Diogo Ferrão
9528ca2307
Update Argus ACL documentation (#312)
* update argus ACL docs

* update datasource docs
2024-03-25 14:03:58 +00:00
GokceGK
0fc2a28469
Deprecate ske project resource (#309)
* add deprecation message

* edit acceptance test

* Enable project before creating first cluster // fix typo in function name

* add cluster existence check before deleting ske project // add deprecation message to project resource

* add region to acceptance test

* Update resource error message

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>

* Update resource error message

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>

* Update deprecation message

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>

* Update error message

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>

* remove model id assignment

* update error handling for cluster existence check while deleting project

* add nil check for clusters during project deletion

* add deprecation notice to documentation

* Update datasource deprecation message

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>

* improve condition handling

---------

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2024-03-25 13:23:06 +01:00
Diogo Ferrão
d6c677552f
Fix bug dns record name inconsistent (#307)
* add fqdn to model, map fqdn in mapFields

* add testing

* update examples, generate docs, fix linting

* addressed comments in PR

* add comment to acc tests, explaining ignore

* update docs
2024-03-25 11:45:29 +00:00
Diogo Ferrão
c2389be47b
Onboard Argus ACL (#304)
* resource create and schema/model

* consider empty value in resource creation

* Address issue in mapfields that came up in testing

* Unit testing the mapFields func

* extend update

* extend read

* extend datasource.go

* update example

* extended acceptance tests and generated docs

* update description and comments

* improve messages and var names, fix update acceptance test

* extend acceptance tests, improve error messages
2024-03-22 17:35:10 +00:00
Vicente Pinto
b79c88e858
Update documentation (#298)
* Update documentation

* Update stackit/internal/services/redis/credential/resource.go

Co-authored-by: João Palet <joao.palet@outlook.com>

* Add more info

* Update datasource

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-03-11 15:55:05 +00:00
Vicente Pinto
862dffca6e
Update docs (#289) 2024-03-07 14:20:27 +00:00
stackit-pipeline
959bb83931
fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.6.1 + examples fix (#284)
* Update module github.com/hashicorp/terraform-plugin-framework to v1.4.0

* Go get tf plugin sdk v2

* fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.6.1

* Update examples

* Update docs

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>
2024-03-07 14:19:45 +00:00
João Palet
f0890f9ddf
Add description for MongoDB Flex instance backup_schedule field (#282) 2024-03-04 15:55:07 +00:00
Vicente Pinto
7152a7af79
Add example for kubeconfig (#262) 2024-02-13 12:02:06 +00:00
Vicente Pinto
d5bd5fa402
Get credentials in cluster read and add default to kubeconfig expiration (#259)
* Get credentials in cluster read and add default to expiration

* Fix docs

* Fix docs

* Update warning
2024-02-09 16:59:00 +00:00
Vicente Pinto
bde1fc55e4
Deprecate kubeconfig field and add stackit_ske_kubeconfig resource (#256)
* Implement kubeconfig resource

* Update acc test, skip get credentials

* Update acc test

* Add warning on Create

* Add option to refresh

* Fix lint

* Add comment, generate docs

* Update stackit/internal/services/ske/cluster/resource.go

Co-authored-by: João Palet <joao.palet@outlook.com>

* Update stackit/internal/services/ske/kubeconfig/resource.go

Co-authored-by: João Palet <joao.palet@outlook.com>

* Changes after review

* Fix schema

* Gen docs

* Rename

* Credentials handling in datasource, update acc test

* Fix datasource

* Update descriptions

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-02-09 10:17:04 +00:00
João Palet
d8734270f5
Add new resource and datasource for Load Balancer credentials (#255)
* Implement and test credential resource and data source

* Fix descriptions in load balancer instance schema

* Extend acceptance tests

* Add acceptance test requirements to README

* Generate updated docs

* Fix linter issues

* Add examples and update docs

* Fix examples

* Improvements from review

* Remove credential data source
2024-02-08 12:49:05 +01:00
Henrique Santos
80666ec3d3
Fix documentation (#253)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2024-02-07 13:51:59 +00:00
Henrique Santos
a29c954c84
Add deprecation message for postgresql resources and data sources (#247)
* Update dependency

* Add deprecation messages

* Modify markdown description

* Add year

* Typo fix

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2024-02-06 16:05:19 +01:00
Henrique Santos
723af623d4
Update docs (#220)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2024-01-18 14:25:21 +00:00
Vicente Pinto
ad561a0367
Update example and remove regex validation (#207) 2024-01-12 17:32:51 +00:00
Vicente Pinto
ba19c9cc74
Update core and key flow documentation (#198)
* Update sdk and documentation of key flow

* Generate docs

* Update README

* Update README.md

Co-authored-by: João Palet <joao.palet@outlook.com>

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-01-09 14:06:24 +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
af78e8481a
Remove project_id from resourcemanager_project example (#163) 2023-12-13 14:46:26 +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
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
Henrique Santos
fc8d2663cd
Update docs (#113)
* Update docs

* Update docs

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-27 15:49:05 +01:00
João Palet
8625ac100a
Improve phrasing in README instruction (#109) 2023-10-27 11:40:40 +02: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
59ee1b529e
Secrets manager - Add examples, update docs (#95)
* Add examples, update docs

* Fix typo

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-10-19 16:03:42 +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
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
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