Commit graph

484 commits

Author SHA1 Message Date
GokceGK
48d9291329
Fix credential and credential group not found issue (#567)
* fix credential and group not found issue

* simplify error handling
2024-10-21 15:01:12 +02:00
Vicente Pinto
09e2469a79
Update acc test (#570) 2024-10-21 13:31:26 +01:00
Vicente Pinto
93fe2fe89f
IaaS Release (#543)
* IaaS Volume (#541)

* Onboard IaaS Volume

* Labels mapping

* Add acceptance test

* Remove source field

* Fix lint

* Add examples and docs

* Fix lint

* Fix lint

* Fix lint

* Volume source field (#542)

* Onboard IaaS Volume

* Labels mapping

* Add acceptance test

* Remove source field

* Fix lint

* Add examples and docs

* Fix lint

* Fix lint

* Fix lint

* Add source field supoort

* Fix labels and source mapping

* Remove unecessary source mapping

* Move methods to conversion pkg

* Revert change

* Update stackit/internal/services/iaas/volume/datasource.go

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

* Update stackit/internal/services/iaas/volume/resource.go

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

* Update stackit/internal/services/iaas/volume/resource.go

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

* Update stackit/internal/services/iaas/volume/resource.go

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

* Changes after review

* Change after revie

---------

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

* Onboard IaaS security groups (#545)

* onboard iaas security group

* add examples and generate docs

* fix linter issues

* fix deletion

* Update stackit/internal/services/iaas/securitygroup/resource.go

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

* rename data source example file

* update docs

* remove field

* remove field

* remove plan modifier from the name field

* refactor labels in mapFields

* change function from utils to conversion

* remove rules from the security group

* update docs

* add security group acceptance test

* add plan modifiers to stateful field

* sort imports

* change stateful description

---------

Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>

* IaaS Server baseline configuration (#546)

* Server resource schema

* Implemente CRUD methods and unit testsg

* Bug fixes

* Bug fix

* Make variable private

* Remove delete_on_termination and update descriptions

* Add security_group field to initial networking

* Add examples and acc test

* Generate docs

* Fix lint

* Fix lint issue

* Fix unit test

* Update desc

* Gen docs

* Onboard IaaS network interface (#544)

* implement network interface

* handle labels

* add CIDR validation

* fix linter issues and generate docs

* remove computed from the allowed addresses and fix the conditions

* Update stackit/internal/services/iaas/networkinterface/resource.go

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

* Update stackit/internal/services/iaas/networkinterface/datasource.go

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

* apply code review changes

* remove status from schema

* remove unnecessary GET call

* Update stackit/internal/services/iaas/networkinterface/resource.go

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

* Update stackit/internal/services/iaas/networkinterface/resource.go

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

* rename nic_security to security

* add beta markdown description

* use existing validateIP function

* use utils function for the options listing

* refactor labels

* change function from utils to conversion

* make allowed addresses a list of strings

* add acceptance test for network interfaces

* fix acceptance test

* rename security_groups as security_group_ids

* extend descriptions

* fix acc test

---------

Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>

* rename volume data source example (#552)

Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>

* add requires replace to ipv4 and ipv6 fields (#549)

Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>

* Server resource improvements (#548)

* Improvements to server resource

* Fix example

* Remove useStateForUnknown

* Update SDK modules

* Update iaasalpha moduel (#555)

* Remove initial networking field (#556)

* Server attachment resources (#557)

* Server attachemnt resources

* Add examples

* Update volume datasource example

* Fix linting issues

* Fix linting

* Fix examples formatting

* Update go.mod

* Revert iaas to v0.11

* Onboard iaas public ip (#551)

* onboard public ip

* onboard public ip

* add public ip acceptance test

* Update examples/data-sources/stackit_public_ip/data-source.tf

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

* add plan modifier to IP

* change type in the volume data source

* add network_interface field to public ip resource

* rename network_interface to network_interface_id

* remove obsolete checks

* extend unit tests

* add network_interface_id in example

* extend unit test

* extend acceptance test

* sort imports

---------

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

* Add labels to network, network are and network area route resources (#559)

* Fix network_interface example

* Extend network, network area and network area route with labels

* Revert iaas to v0.11.0

---------

Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>

* Onboard iaas security group rule (#553)

* onboard security group rule

* add security group rule to acceptance test

* change type in examples

* fix acc test issues

* extend example with objects

* remove obsolete field from acceptance test

* remove unnecessary plan modifier

* adapt schema fields

* adapt schema fields

* add requires replace to all fields

* extend descriptions with protocol limitations

* rename subfield protocol to number

* add requires replace to objects

* make icmp_parameters fields required

* add empty field checks for nested objects

* make max and min fields required in the port_range object

* make number field computed in the protocol object

* add UseStateForUnknown in protocol number

* remove obsolete unit test

* add checks for empty protocol and adapt unit test

* add atLeastOneOf validation in protocol fields

* fix linter issues

* Add project existence check before deleting SNA (#561)

* add project list check and error in network area deletion

* Update stackit/internal/services/iaas/networkarea/resource.go

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

---------

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

* Example server use cases and other fixes (#560)

* Add example usage to server resource

* Update examples

* Fix beta warning

* Update docs and examples

* Remove size from example

* Fix server description, fix security group rule error message

* Other fixes

* remove field from datasource

---------

Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>

* Security group rule fixes (#562)

* Add example usage to server resource

* Update examples

* Fix beta warning

* Update docs and examples

* Remove size from example

* Fix server description, fix security group rule error message

* Other fixes

* Fixes to sec group rule

* Fix lint

* Change after review

---------

Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>

* Fix server example (#565)

* Fix server example

* Fixes to examples, add CIDR validation to nic

* Migrate iaasalpha to iaas (#568)

* Migrate iaasalpha to iaas

* Fix lint

* Update example

* Improvements to security group rule (#569)

* Improvements to security group rule

* Fix lint

* Fix example and remove computed from description

* Fix formatting

* Update description

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
2024-10-18 16:37:41 +01:00
Christian Hamm
04ce56b3d6
Increase the target count per pool from 250 to 1000 to be ready for large SKE clusters (#550)
Co-authored-by: Christian Hamm <Christian.Hamm@mail.schwarz>
2024-10-10 11:15:01 +01:00
GokceGK
204e49600c
Extend max_surge and max_unavailable descriptions (#533)
* extend max_surge and max_unavailable descriptions

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

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

* update docs

---------

Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
Co-authored-by: João Palet <joao.palet@outlook.com>
2024-09-16 10:43:41 +01:00
GokceGK
01bbce60fc
Add requiresreplace to members (#535)
* add requiresreplace to members

* remove modifyPlan

---------

Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
2024-09-16 10:43:03 +01:00
GokceGK
4347c6ea2d
Handle project members (#531)
* deprecate members field and make it valid only in creation

* remove owner and members from datasource

* Revert "remove owner and members from datasource"

This reverts commit 31d2302166cc85abd84c2c72a0ac2ce6e70ec103.

* update acc test

* add creation limitation in members description

---------

Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
2024-09-13 09:57:08 +02:00
GokceGK
4de8552303
Handle nameservers as optional field in network (#521)
* make nameservers optional

* fix typo in unit test

* update docs

* Add UseStateForUnkown

---------

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2024-09-09 10:58:25 +02:00
Vicente Pinto
aba728487f
Remove leftovers (#529) 2024-09-05 10:52:39 +01:00
Vicente Pinto
fe777fd9bc
Remove leftover Postgresql code and documentation (#527)
* Remove leftover postgresql code

* Remove examples

* revert go.mod

* Revert loadbalancer doc
2024-09-04 16:16:24 +01:00
Vicente Pinto
a58940981e
Remove PostgreSQL (#526)
* Remove postgresql service

* Update index
2024-09-04 13:42:14 +01:00
GokceGK
fc5f63bc86
remove deprecated jwks endpoint (#523) 2024-09-03 08:55:37 +02:00
GokceGK
686c76bbdb
fix network create wait handler (#517) 2024-08-26 15:03:40 +00:00
GokceGK
9c89e02e4c
Revert "Revert "Rename argus to observability (#510)" (#515)" (#516)
This reverts commit ddcbc77685.
2024-08-26 11:28:35 +02:00
João Palet
ddcbc77685
Revert "Rename argus to observability (#510)" (#515)
This reverts commit cc3cf05307.
2024-08-23 12:29:17 +01:00
João Palet
07af7d3ae0
Fix project resource ModifyPlan (#514) 2024-08-23 10:46:05 +01:00
João Palet
820586864e
Only show warning on project members field if config not empty (#513) 2024-08-23 10:13:22 +02:00
GokceGK
043f1d6331
Add uri to user resources for MongoDB Flex and PostgreSQL Flex (#512)
* add uri to mongodb user resource

* add uri to postgresflex user resource

* update docs

* extend warning about empty uri

* extend warning about empty uri
2024-08-23 09:41:49 +02:00
João Palet
a73706d82f
Add warning to project members fields and remove field from docs (#511) 2024-08-23 08:34:47 +01:00
GokceGK
cc3cf05307
Rename argus to observability (#510)
* Create observability resources

* add deprecation message to argus

* add warning to readme

* remove warning from readme

* add info back to migration md

* Update MIGRATION.md

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

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-08-23 09:29:52 +02:00
stackit-pipeline
24f3731b33
fix(deps): update stackit sdk modules (#507)
* fix(deps): update stackit sdk modules

* update function names

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
2024-08-21 08:53:48 +02:00
GokceGK
6b41cba59a
fix the parameters handling in instance creation (#508) 2024-08-20 13:14:33 +02:00
GokceGK
5f3faacd7f
Remove user role field validation from MongoDB flex user resource (#503)
* remove validation

* change field description
2024-08-12 15:40:35 +02:00
João Palet
ae5ccdcd9f
Set SKE extension Argus instance ID field to Optional (#502) 2024-08-12 13:24:06 +02:00
GokceGK
0ec376686c
Fix Load Balander acceptance test (#501)
* replace deprecated disable function

* fix order of go imports
2024-08-09 16:42:52 +02:00
GokceGK
b58bd0f640
Onboard iaas network area (#500)
* Onboard network-area resource (#469)

* onboard network-area resource

* fix update network ranges

* fix linter issues

* add organization id to test util

* add examples

* change project count to computed and adapt unit tests

* extend acceptance tests

* add docs

* fix linter issues

* add datasource to provider

* remove routes from the datasource schema

* remove obsolete api cals

* remove raw response from create network area

* change network ranges to list of objects

* update examples

* fix linter issues

* Update stackit/internal/services/iaas/networkarea/resource.go

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

* add network range id to schema

* map network_range_id

* fix unit tests

* adapt acceptance test

* fix acceptance tests

* Update stackit/internal/services/iaas/iaas_acc_test.go

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

---------

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

* Add network area to beta resources list (#481)

* add network area to beta resources list

* add accidentally removed line

* add accidentally removed line

* Fix multi range creation issue (#483)

* fix multi range creation issue

* fix network range update issue

* fix some unit tests

* fix order issue

* Update stackit/internal/services/iaas/networkarea/resource.go

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

* add unit test to cover the reconciled list

---------

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

* Onboard IaaS network area route (#491)

* onboard network area route

* generate docs

* add route to beta resources

* extend acceptance test

* fix import id handling

* Update next_hop description

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

* Update prefix description

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

* change descriptions in datasource

* add IP and CIDR validators

* use requiresReplace in resource

* improve error logs

* change the create response handling

* update docs

* change route and route id detection

---------

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

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-08-09 12:38:35 +02:00
a_nackov
52db4797c2
Embed tzdata for rrule for alpine like env (#495)
Signed-off-by: Adrian Nackov <adrian.nackov@mail.schwarz>
2024-08-08 10:28:52 +01:00
GokceGK
5a695387d1
fix ske acceptance test (#496) 2024-08-06 16:39:00 +02:00
Kumm-Kai
93c7afe73e
feat(SKE): support for DNS extension (#492)
* Feat(SKE): support DNS extension

* generate docs

* fix attributes required/optional

* add comment to acceptance test DNS zones

* regenerate docs

* fix typos

* generate docs
2024-08-06 15:39:58 +02:00
João Palet
4b00bf1021
Fix update of PostgreSQL Flex instance flavor (#494)
* Fix update of PostgreSQL Flex instance flavor

* Fix linter
2024-08-05 13:52:36 +01:00
João Palet
5807e2ba2f
Fix inconsistent result after apply in PostgreSQL Flex database (#488) 2024-08-01 11:24:23 +01:00
GokceGK
1e767d56dc
Fix service enablement custom endpoint (#489)
* add service enablement custom endpoint

* generate docs
2024-08-01 08:54:49 +02:00
João Palet
2810545ef7
Add additional backup configurations to MongoDB Flex instance resource (#486)
* Extend resource and datasource

* Extend acc test

* Extend example

* Generate docs

* Fix linter

* Update stackit/internal/services/mongodbflex/instance/datasource.go

Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>

---------

Co-authored-by: GokceGK <161626272+GokceGK@users.noreply.github.com>
2024-07-31 10:55:14 +01:00
João Palet
8dc894cacc
Preserve order of project members even if API re-orders them (#484)
* Preserve order of project members even if API re-orders them

* Adjust role field description

* Fix backwards compatibility of deprecated owner_email field

* Fix typo
2024-07-30 13:32:49 +01:00
João Palet
63b07c4422
Document possible values for project member role (#482)
* Document possible values for project member role

* Update docs
2024-07-29 12:22:11 +01:00
João Palet
31ce9ab36d
Allow managing members in the project resource (#480)
* Extend resource and datasource

* Adapt acc test to work without members

* Extend acc test and adjust resource

* Generate docs

* Fix lint

* Fix unit test

* Uniformize description with datasource and extend unit test

* Improve role field description

* Update TF state before adding/removing members

* Remove unused function

* Move intermediate map top state to mapProjectFields

* Improve code
2024-07-29 09:57:06 +01:00
João Palet
af7d789945
Adjust mapping of LB API response when private network only field is … (#477)
* Adjust mapping of LB API response when private network only field is null

* Improve comment

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

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-07-23 11:37:57 +01:00
stackit-pipeline
40ce90999b
fix(deps): update stackit sdk modules (#473)
* fix(deps): update stackit sdk modules

* Adaptations to solve issues caused by sdk breaking changes

* downgrade loadbalancer

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
2024-07-22 09:45:06 +02:00
Diogo Ferrão
a35b887315
Onboard Argus alert configs (#449)
* Onboard Argus alert config receivers (#439)

* initial schema and to payload

* finish receiver resource implementation (schema, topayload and mapfields)

* fix toUpdate payload lists

* fix resource and datasource on alert config attr removal, add testing

* fix linting and testing

* initial test map fields

* improve testing, remove logging

* rename vars in acc testing

* refactor mapAlertConfig

* improve mock alert config, fix testing

* make the mock alert config receivers match the default

* generate docs

* Onboard Argus Alert Config global configuration (#446)

* initial implementation

* initial map fields

* extend datasource, finish resource impl and extend acc testing

* remove unmapped fields

* add all attributes back

* remove commented inhibit rules

* generate docs, fix testing

* address PR comments

* Onboard Alert Config route (#447)

* Initial implementation

* add schema to datasource, improve acc testing

* fix linting, generate docs

* address PR comments

* fix and improve acceptance tests

* update test titles (comments)

* address acceptance comments (#452)

* Onboard Argus Alert Config child routes in Route (#463)

* initial schema and map fields implementation

* initial working solution

* improve implementation, generate docs

* fix description, add more unit testing

* address PR comments

* add unit and acc testing, fix datasource schema, fix plan_id mapping

* add checks to acceptance testing

* update acceptance tests
2024-07-18 15:05:35 +01:00
Diogo Ferrão
f762c4800b
Fix SKE enablement using Service Enablement API (#472)
* Replace ske wait with enablement wait in service enablement

* Move GetServiceStatus to the enablement api, ignore linting on GetCredential
2024-07-18 14:28:13 +01:00
Diogo Ferrão
02c4ad72b0
Move SKE Enable/Disable to the Service Enablement API (#467) 2024-07-16 13:42:01 +01:00
João Palet
e3da2ebbb4
Fix field string validators (#465) 2024-07-12 14:14:44 +01:00
João Palet
a9c50fceab
Fix inconsistent result after creating SKE cluster with empty node po… (#461)
* Fix inconsistent result after creating SKE cluster with empty node pool taints

* Improve code readability

* Suggestions from review
2024-07-11 14:10:00 +01:00
João Palet
34388eb361
Implement PostgreSQL Flex database resource and data source (#453)
* Implement db resource

* Implement db data source

* Extend acc test

* Improve logs in other resources

* Add examples

* Generate docs

* Fix linter
2024-07-09 14:05:58 +01:00
João Palet
3fb28d1248
Document possible values of schema fields (#455)
* Document possible values of schema fields

* Change from possible to supported
2024-07-09 13:14:38 +01:00
João Palet
aec518b8f3
Add description for the parameters field of DSA instances (#445)
* Add description for the parameters field of DSA instances

* Improve sentence
2024-07-02 19:02:19 +01:00
João Palet
78793f49ff
Extend OpenSearch instance parameters (#443)
* Extend OpenSearch instance parameters

* Fix bug in parameter modelling

* Improve monitoring_instance_id field documentation

* Fix unit test
2024-07-02 09:30:47 +01:00
João Palet
7e51a0a5d5
Fix SKE cluster maintenance updated outside TF causing error (#444)
* Fix SKE cluster maintenance updated outsise TF causing error

* Add comment to logic

* Simplify code
2024-07-02 09:26:47 +01:00
João Palet
b54c671082
Extend MariaDB instance parameters (#441)
* Extend MariaDB instance parameters

* Fix linter

* Improve monitoring_instance_id field documentation

* Add documentation for graphite field

* Add Argus instance as example to monitoring_instance_id description

* Specify that a STACKIT monitoring instance is expected
2024-07-01 17:35:37 +01:00
João Palet
a08dbd8926
Extend LogMe instance parameters (#438)
* Extend LogMe instance parameters

* Update acc test

* Add more field descriptions

* Improve code and tests

* Add more fields to acc test

* Fix linter

* Add float parameter
2024-07-01 12:09:26 +01:00