Diogo Ferrão
33e4417e61
Improve Argus metrics data retention policy ( #401 )
...
* update argus instance examples
* Set update metrics to default when not provided
* address PR comments
2024-06-12 16:28:46 +01:00
stackit-pipeline
bd3e04e134
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/iaas to v0.4.0 ( #397 )
...
* fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/iaas to v0.4.0
* add network to the return value of createNetwork
* add info logs
* remove obsolete logs and return value
---------
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
2024-06-11 13:24:21 +02: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
stackit-pipeline
6af9c0dcbb
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.16.0 ( #379 )
...
* fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.16.0
* Rename data type
---------
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>
2024-05-28 08:30:13 +00:00
stackit-pipeline
ba7bf10db7
fix(deps): update stackit sdk modules ( #373 )
...
* fix(deps): update stackit sdk modules
* Fix lint
---------
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>
2024-05-27 11:54:57 +01:00
Vicente Pinto
29bf7cbb31
Fix os_version and os_version_min conflicting fields ( #376 )
...
* Make cluster network computed
* Fix field conflict
* Replace computed with better mapping
* Fix comment
* Update unit test§
2024-05-27 11:22:35 +01:00
Vicente Pinto
ecaf622f55
Fix cluster network mapping ( #375 )
...
* Make cluster network computed
* Replace computed with better mapping
* Fix comment
* Update unit test§
2024-05-27 09:18:10 +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
Diogo Ferrão
1c4a3ec963
BUGFIX fix seg fault in load balancer creation ( #359 )
2024-05-13 17:29:07 +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
Diogo Ferrão
035efbd309
Fix replacement of mongoDB instances, make storage class require replace ( #350 )
...
* hotfix replacement of mongodb instances by adding delay to delete
* improve explaining comment
* increase delay time
* improve comments regarding the wait timer
2024-04-30 16:10:54 +01:00
João Palet
e48deaff59
Fix Argus scrape config internal models to use Terraform types ( #349 )
...
* Fix SAML2 model
* Fix BasicAuth model
* Fix Targets model
* Fixes after testing
2024-04-29 15:18:13 +01:00
Diogo Ferrão
46797a659a
support storage class update in postgresflex ( #348 )
2024-04-26 11:20:51 +02:00
João Palet
66d6ec2bd0
Remove deleted resources and datasources from Terraform state on Read (all remaining services) ( #346 )
...
* Remove deleted resources and datasources from state on Read
* Simplify code
* Fix function description
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
* Fix function description
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
* Fix whitespace
---------
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-04-23 08:59:43 +01:00
João Palet
464884cabe
Remove deleted resources from Terraform state on Read (LB and DSA) ( #340 )
...
* Fix for load balancer resource
* Fix for lb credential resource
* Fix for all DSA resources
* Fix for lb datasource
* Fix for all DSA datasources
* Adjustments after review
* Remove early return from all datasources
2024-04-22 15:19:10 +01:00
Simon Stier
592007de7a
DNS: Fix rrsetNameLength validation ( #345 )
...
* fix rrsetNameLength validation
* remove string length validation entirely
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
---------
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-04-22 15:51:06 +02:00
Diogo Ferrão
9bd1da7cee
Bugfix inconsistent applies of ListAttributes ( #328 )
...
* sort the list of ACLs for MongoDBFlex
* Fix and test other cases of ListAttribute ordering
* fix linting
* revert sorting changes, introduce new reconcilestrlist function
* merge main
* Fix rabbitmq
* fix segmentation fault
* Improve testing
* pass context to mapfields, minor name fixes
2024-04-16 11:20:19 +01:00
stackit-pipeline
18d3f4d1fb
fix(deps): update stackit sdk modules ( #327 )
...
* fix(deps): update stackit sdk modules
* remove deprecated fields from credentials resources
* remove deprecated fields from credentials resources
* add newly added fields to credentials resources
* remove deprecated fields from credentials datasource
* add newly added credential fields to datasources
* update acceptance tests
---------
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
2024-04-15 09:52:35 +02:00
Vicente Pinto
4917eda1ad
DNS Record Set type requires replace ( #325 )
2024-04-09 16:12:00 +01:00
Diogo Ferrão
6e61caee19
Bugfix SKE downgrade replace in place ( #315 )
...
* add requireif to schema, extend acc testing
* fix acceptance test
* improve testing
2024-03-27 15:45:16 +00:00
Diogo Ferrão
394d5bf8d6
Onboard Argus (ACL): fix edge cases ( #314 )
...
* fix empty acl update/create, update CIDR validator
* fix sigsegv in test, acl description
* Split field mapping, better handle edge cases
* Update stackit/internal/services/argus/instance/resource.go
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
---------
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2024-03-26 13:54:09 +00: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
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
9f73a568c4
Increase timeouts ( #301 )
...
* Increase timeouts
* Remove timeout from loadbalancer delete
* Incresae timeout for loadbalancer create
2024-03-13 13:37:25 +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
Peter Stolz
3ea0f81900
fix: set min ttl to 60 ( #293 )
2024-03-11 15:13:35 +00:00
João Palet
f0890f9ddf
Add description for MongoDB Flex instance backup_schedule field ( #282 )
2024-03-04 15:55:07 +00:00
stackit-pipeline
71177d8348
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/core to v0.10.0 ( #280 )
...
* fix(deps): update module github.com/stackitcloud/stackit-sdk-go/core to v0.10.0
* Remove usages of RetryTimeout in tests
---------
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: João Palet <joao.palet@freiheit.com>
2024-02-28 14:47:24 +00:00
Vicente Pinto
9d3d888178
Small acc test fixes ( #279 )
2024-02-26 16:01:12 +00:00
Vicente Pinto
d1ceb77081
Return available ske versions in the error message ( #278 )
2024-02-26 09:55:04 +00:00
Jorge Turrado Ferrero
32d176ee86
fix: validates the record conent based on record type ( #267 )
...
* fix: validates the record conent based on record type
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
* fix typo
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
* apply feedback
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
* apply feedback
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
---------
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
2024-02-20 15:17:27 +00:00
Henrique Santos
a88688ce93
Deprecate setting for JWKS custom endpoint ( #272 )
...
* Update core
* Deprecate JWKS custom endpoint
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2024-02-19 15:22:21 +00:00
Henrique Santos
3700ad3018
Fix loadbalancer internal models to use TF types ( #264 )
...
* Unexport types
* Modify structs to use TF types, uniformize comments
* Adapt to new models
* Adapt to new models
* Adapt tests
* Bug fixes
* Lint fix
* Fix bugs
* Fix wrong reference
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
* Rename variable
* Rename variable
* Rename variables
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2024-02-15 09:55:56 +00:00
Vicente Pinto
8b74ec2700
Fix load balancer acc tes ( #263 )
2024-02-13 13:40:58 +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
e9b2d7aa91
Remove UseStateForUnknown for kubeconfig field in ske cluster ( #258 )
...
* Remove UseStateForUnknown
* Fix acc test
2024-02-09 11:59:34 +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
Mouhsen Ibrahim
91b2c42a19
Add support to ServerNameIndicators for load balancers ( #251 )
...
* Add support to ServerNameIndicators for load balancers
* Change argument type to a pointer
* Replace custom struct with TF struct
* Fix names for server_name_indicators fields
* Add Optional
---------
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
Co-authored-by: vicentepinto98 <vicente.pinto@freiheit.com>
2024-02-08 15:01:16 +00:00