Commit graph

171 commits

Author SHA1 Message Date
Alexander Dahmen
3a378c7b38 feat: Update golangci-lint version to 1.62.0 and go version to 1.23
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2024-11-26 15:25:49 +01:00
stackit-pipeline
e11be37776
fix(deps): update stackit sdk modules (#597)
* fix(deps): update stackit sdk modules

* changes for the renamed method

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@stackit.cloud>
2024-11-21 10:58:53 +01:00
João Palet
b1f928f6be
Implement key pair resource (#588)
* Revert "Revert "Implement key pair resource (#578)" (#581)"

This reverts commit 600847a2ea.

* feat: Update iaas SDK module version; Use beta API in key pair resource
2024-11-11 11:08:05 +00:00
João Palet
600847a2ea
Revert "Implement key pair resource (#578)" (#581)
This reverts commit 153947fd7b.
2024-11-06 14:21:17 +00:00
João Palet
153947fd7b
Implement key pair resource (#578)
* feat: Implement key pair resource

* feat: Implement acceptance test

* fix: Minor fixes to server and public IP resources

* fix: Lint fixes

* fix: Generalize description

* feat: Update examples to read key from file; Add datasource example

* fix: Fix field descriptions

* fix: Fix example

* feat: Add link to key pair resource in server example

* feat: Add links to key pair resource in other examples
2024-11-05 09:50:55 +00:00
stackit-pipeline
42549adf72
fix(deps): update stackit sdk modules (#572)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-10-23 08:58:26 +02: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
stackit-pipeline
89dbf777fc
fix(deps): update stackit sdk modules (#558)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-10-15 09:39:42 +01:00
stackit-pipeline
a2adc42bb7
fix(deps): update stackit sdk modules (#554)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-10-14 12:16:51 +01:00
stackit-pipeline
ad316fb2c1
fix(deps): update stackit sdk modules (#539)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-10-07 11:29:09 +01:00
stackit-pipeline
95ba9d0491
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex to v0.6.0 (#538)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-09-24 16:20:19 +01:00
Vicente Pinto
a58940981e
Remove PostgreSQL (#526)
* Remove postgresql service

* Update index
2024-09-04 13:42:14 +01:00
stackit-pipeline
349ed981db
fix(deps): update stackit sdk modules (#525)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-09-04 10:54:00 +02:00
Vicente Pinto
75b1ede38b
Documentation update (#524)
* Update Auth guide

* Update docs
2024-09-03 16:50:18 +01:00
stackit-pipeline
c6cc7c9f00
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/iaas to v0.8.0 (#509)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-08-26 17:21:12 +01: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
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
stackit-pipeline
1773ec1dae
fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.10.0 (#505)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-08-13 14:37:54 +02:00
stackit-pipeline
f59eebf976
fix(deps): update stackit sdk modules (#506)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-08-13 14:35:16 +02:00
stackit-pipeline
d79ba2d0c7
fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.11.0 (#497)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-08-07 14:36:55 +02:00
stackit-pipeline
aface95620
fix(deps): update module golang.org/x/mod to v0.20.0 (#493)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-08-05 17:20:07 +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
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
stackit-pipeline
b878289951
fix(deps): update module github.com/hashicorp/terraform-plugin-framework-validators to v0.13.0 (#458)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-07-18 11:00:49 +02:00
Diogo Ferrão
02c4ad72b0
Move SKE Enable/Disable to the Service Enablement API (#467) 2024-07-16 13:42:01 +01:00
stackit-pipeline
a15bd14288
fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.9.0 (#459)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-07-10 11:30:47 +01:00
stackit-pipeline
de9337218d
fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.10.0 (#457)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-07-10 11:30:00 +01:00
stackit-pipeline
846a2ba181
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.17.0 (#450)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-07-08 09:25:21 +01:00
stackit-pipeline
60dad20983
fix(deps): update module golang.org/x/mod to v0.19.0 (#448)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-07-05 09:05:40 +01:00
stackit-pipeline
2a0998f511
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/postgresflex to v0.15.0 (#440)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-07-01 08:46:25 +02:00
stackit-pipeline
b605d8e095
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/logme to v0.16.0 (#433)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-06-27 08:19:30 +02:00
a_nackov
b5eb8bd379
ref 624723: server backup schedules (#416)
Signed-off-by: Adrian Nackov <adrian.nackov@mail.schwarz>
2024-06-26 11:51:06 +01:00
stackit-pipeline
be3e660ac3
fix(deps): update stackit sdk modules (#402)
* fix(deps): update stackit sdk modules

* update code with SDK breaking changes

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-06-19 11:47:39 +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
stackit-pipeline
dc58d12cb9
fix(deps): update module golang.org/x/mod to v0.18.0 (#391)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-06-10 13:29:08 +02:00
stackit-pipeline
92335c82bf
fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.9.0 (#390)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-06-10 13:18:37 +02: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
6db3a550e6
fix(deps): update stackit sdk modules to v0.15.0 (#382)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-05-31 10:23:54 +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
stackit-pipeline
35b10c602b
fix(deps): update stackit sdk modules to v0.14.0 (#371)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-05-23 15:42:02 +01:00
stackit-pipeline
a636628c8b
fix(deps): update module github.com/hashicorp/terraform-plugin-testing to v1.8.0 (#365)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-05-21 07:08:21 +02: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
stackit-pipeline
56036e8704
fix(deps): update stackit sdk modules (#362)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-05-15 16:58:08 +02:00
stackit-pipeline
94fbaf765c
fix(deps): update stackit sdk modules to v0.14.0 (#361)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-05-14 11:06:57 +01:00
stackit-pipeline
6eb1310056
fix(deps): update module github.com/hashicorp/terraform-plugin-go to v0.23.0 (#355)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-05-08 11:59:28 +01:00
stackit-pipeline
ed3a460a91
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.14.0 (#353)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-05-06 10:45:06 +01:00
stackit-pipeline
8ddcfc8e43
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/dns to v0.9.1 (#347)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-26 17:51:12 +01:00