Commit graph

70 commits

Author SHA1 Message Date
Ruben Hönle
0c2f087ce6
chore(docs): update links to new STACKIT docs (#1085)
relates to STACKITTPR-450
2025-12-05 16:09:46 +00:00
Marcel Jacek
24b7387db9
feat: add logging for trace id (#1061)
relates to STACKITTPR-290
2025-11-27 10:06:18 +00:00
Ruben Hönle
52b879b436
refactor(docs): remove duplicate util func to format possible values (#1050) 2025-11-11 16:24:48 +01:00
Mauritz Uphoff
a81b7d49e7
chore(ci): add command to fmt testdata terraform files (#1042) 2025-11-06 18:01:44 +01:00
Marcel Jacek
4552b14edd
feat(iaas): add warning that behavior of network resource will change (#1031)
relates to STACKITTPR-366

* feat(iaas): add warning that behavior of network resource will change
* fix: changed payload for ipv6_nameservers
  * if is unset / null: ipv6_nameservers will not be sent
  * if set list / empty list: ipv6_nameserver will be sent with the set list / empty list
2025-11-03 13:04:15 +01:00
Mauritz Uphoff
fcc7a99488
feat: add cidr_list attribute to stackit_public_ip_ranges datasource (#1001)
* feat: add cidr_list attribute to stackit_public_ip_ranges datasource

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
2025-10-08 07:19:57 +00:00
Marcel Jacek
4a7106cc01
fix(iaas): wait for network area deletion until projects are deleted (#978)
* fix: add ReadyForDeletionWaitHandler to avoid error when deleting a network area with projects in deletion state
2025-09-11 13:26:32 +02:00
Mauritz Uphoff
7c1920f55e
chore(docs): improve docs for image_v2 and machine_type (#977)
* chore(docs): improve docs for image_v2 and machine_type

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

* review changes

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

---------

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
2025-09-03 10:23:44 +02:00
Mauritz Uphoff
9ac92b7ddc
Feat/implement advanced image search options (#967)
* feat: implement advanced search options for images

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

* review changes

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

---------

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
2025-09-02 11:32:35 +02:00
Mauritz Uphoff
fedaf72b62
Feat/add datasource to query machine types (#968)
* feat(iaas): add datasource to query machine types

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

* review

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

* review

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>

---------

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
2025-08-28 13:23:11 +02:00
Mauritz Uphoff
64787fff67
chore(iaas): remove deprecated machine flavors (#966) 2025-08-26 13:06:03 +00:00
Marcel Jacek
5f1e4ff192
feat(iaas): onboard iaas project datasource (#955)
* feat: onboard iaas project datasource
2025-08-15 17:01:25 +02:00
Alexander Dahmen
f16b83170a
fix(networkinterface): Recognize the removal of allowed_addresses and security_group_ids from terraform config (#940)
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-08-11 08:16:58 +02:00
Marcel Jacek
d9dc1d4495
feat(iaas): add iaas network v2 alpha (#899)
* add experimental network v2
2025-07-07 13:25:54 +02:00
Ruben Hönle
9ff9b8f610
feat(iaas): add experimental support for routing tables and routes (#896)
* Merged PR 788126: feat(iaas): Onboard routing tables

feat(iaas): Onboard routing tables

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Merged PR 793350: fix(routingtable): region attribute is missing in scheme

fix(routingtable): region attribute is missing in scheme

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Merged PR 797968: feat(iaas): onboarding of routing table routes

relates to STACKITTPR-241

* use iaasalpha sdk from github

* resolve todos

* remove routes from routing table model

* restructure packages

* acc tests routing tables

* add acc tests for routes

* chore(iaas): mark routing table resources as experimental

* chore(deps): use iaasalpha sdk v0.1.19-alpha

* Review feedback

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
Co-authored-by: Alexander Dahmen (EXT) <Alexander.Dahmen_ext@external.mail.schwarz>
Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-07-02 10:30:50 +02:00
Mauritz Uphoff
8a5de8c1b6
chore(docs): attach network interface via server attribute (#881) 2025-06-16 16:38:09 +02:00
Ruben Hönle
b313ef6a39
chore(terraform): use a util func to build internal terraform id (#869) 2025-06-12 14:41:57 +02:00
Ruben Hönle
281d31f615
chore(iaas): extract mapping of labels into util func (#867) 2025-06-05 13:46:33 +02:00
Ruben Hönle
5b044d275f
chore(docs): add possible values for security group rule protocol (#857)
relates to #816
2025-05-21 14:17:00 +00:00
Ruben Hönle
53ec994a7d
feat(iaas): set custom user-agent header for STACKIT API calls (#821)
relates to STACKITTPR-184
2025-05-14 16:46:16 +02:00
Marcel Jacek
c7c64a5806
feat(iaas): min/max acc tests (#811)
* feat(iaas): security group min/max acc test

* feat(iaas): image min/max acc test

* feat(iaas): KeyPair min/max acc test

* feat(iaas): Network area min/max acc test
- fix: wrong atLeast-validator for `minimum_prefix_length`

* feat(iaas): Network min/max acc test

* feat(iaas): Volume min/max acc test
- fix: volume update doesn't work if no name was defined
- fix: volume.server_id can not be set
- fix: error message volume.size returns value but was null

* feat(iaas): Network interfaces min/max acc test

* feat(iaas): Affinity groups acc test

* feat(iaas): Server min/max acc test
- stackit_server_volume_attach
- stackit_server_network_interface_attach
- stackit_server_service_account_attach

* fix(iaas): acc test
- image: fix read of Config.VirtioScsi
- keypair: add missing RequiresReplace() for name
- server: add missing UserData read in datasource and resource

* feat(iaas): public ip acc test
- fix: when a nic is assigned to a public ip, the field network_interface_id leads to recreation
2025-05-09 08:49:04 +02:00
Rüdiger Schmitz
44103a1ffd
fix(network): ipv4 prefix and length must be computed to avoid errors during creation (#779) 2025-04-11 15:20:56 +02:00
Marcel Jacek
c06b08e212
fix(iaas): image upload results in timeout (#773) 2025-04-10 13:44:30 +02:00
Marcel Jacek
d6749b6ce3
fix(STACKITTPR-168): improve error messages (#762)
* remove deprecated argus resources

* improve error messages
2025-04-04 14:18:16 +02:00
Rüdiger Schmitz
c7ed274647
Handle network prefixes correctly (#753)
* wip

* fix: corrected testcase

* fix: change prefix to workaround bug in current environment

* fix: made acceptance test more robust for randomized nameserver order

* fix: updated documentation

* fix: linter issue

* fix: acceptance test still relied on a fixed order of nameservers

* fix: fixed import acceptance testcase
2025-04-04 08:26:03 +02:00
Marcel Jacek
e2f32b597a
fix(iaas): server resource produces an unexpected new value for delete_on_termination (#755) 2025-04-02 09:50:17 +02:00
Alexander Dahmen
68859a3fad
fix(server): Handle boot bolume correctly (#749)
* fix(server): Handle boot bolume correctly

- Display id and delete_on_termination in datasource
- Handle id and delete_on_termination in resource

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* fixup

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-03-28 13:31:36 +01:00
Ruben Hönle
727d67af01
chore(iaas): move beta resources and datasources to GA (#717)
relates to STACKITTPR-103
2025-03-26 09:23:25 +01:00
Marcel Jacek
e989102d6b
fix: add error message that key pair doesn't exists (#732)
* Add error message that key pair doesn't exists when the API returns a 404

* Update error check
2025-03-21 12:44:20 +01:00
Rüdiger Schmitz
c257ac49e2
Fix/stackittpr 102 objectstorage handling region in individual resources (#711)
* Revert "fix: make resource/data-source specific region attribute read-only (#682)"

This reverts commit 3e8dcc542b.

* fix: Support individual regions

* fix: review findings
2025-03-12 09:49:47 +00:00
Alexander Dahmen
4cfdbc508f
fix(network-interface): Response returns name \"\" if not set (#706)
This has to be set to a nil value otherwise a name \"\"  is sent via the next request which results
in a failing validator

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-03-06 10:32:22 +01:00
Marcel Jacek
dd4013c1bc
feat: Onboard IaaS Public IP range datasource (#633)
* Add "stackit_public_ip_range" datasource
  * Add docs and example
2025-03-04 13:57:28 +01:00
Alexander Dahmen
a0c2c30ced
Ft/rework acceptance tests follow up (#684)
* Enable CI

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Add default local file for IaaS image test

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Opensearch acceptance test typo

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Postgresflex acceptance test fix ignore

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Redis acceptance test remove mid uuid

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Objectstorage acceptance test ignore region for import

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Add more environment variables for CI build

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-02-20 13:36:31 +01:00
Marcel Jacek
b7f56d1685
fix: state drift of "stackit_server" (#679)
* fix: State drift of "stackit_server" when using "stackit_server_network_interface_attach"

* fix: tests

* add acceptance tests for stackit_server_network_interface_attach
2025-02-18 14:33:39 +01:00
Alexander Dahmen
f0168cfed9
Ft/rework acceptance tests (#675)
* Rework IaaS acceptance tests

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Rework mongodb acceptance tests

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Rework observability acceptance tests

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Rework secretsmanager acceptance tests

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Rework loadbalancer acceptance tests

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Rework ske acceptance tests

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Update documentation

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-02-14 08:44:11 +01:00
Ruben Hönle
170041f807
fix: use file inputstream on file upload instead of in-memory buffer (#671)
relates to STACKITTPR-70

Co-authored-by: Ruben Hoenle <Ruben.Hoenle@stackit.cloud>
2025-02-07 15:12:05 +01:00
Alexander Dahmen
1a58bd6138
Validate volume resize on the schema (#660)
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-01-31 10:43:36 +01:00
Marcel Jacek
b5ce160d13
feat: Onboard affinity groups resource and data source (#652)
* onboard affinity_groups resource and data source
- add tests and descriptions
- fix: server doesn't use affinity_group value for payload

* Update descriptions
2025-01-30 11:07:32 +01:00
Marcel Jacek
bcc8be0822
fix: Updating values of "stackit_server" leads to an inconsistent result (#653)
* fix: updating values of "stackit_server" leads to an inconsistent result, when network_interfaces is set
2025-01-29 11:18:02 +01:00
Alexander Dahmen
b6f3c70f15
Allow deleting root volume when deleting server (#651)
Introduce delete_on_termination field.

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-01-29 09:23:11 +01:00
Marcel Jacek
19fdcd5d10
fix: description of "server_network_interface_attachment" (#648) 2025-01-27 13:19:20 +01:00
Rüdiger Schmitz
2ec95dc20f
fix: exclude zero address as for inadmissable cases (#650)
* fix: exclude zero address as for inadmissable cases

* fix: review finding
2025-01-27 12:17:34 +01:00
Rüdiger Schmitz
a2ed2b6068
fix: separated models for resource and data-source (#640) 2025-01-22 14:48:52 +01:00
Marcel Jacek
4d6f860b26
feature: Add "network_interfaces" field to server resource (#628)
* Add network_interfaces field to server resource

* Update docs

* Update description of stackit_server_network_interface_attach

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

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2025-01-22 11:22:39 +01:00
Rüdiger Schmitz
9b969ae583
fix: add missing status attribute to schema (#639)
* fix: add missing status attribute to schema

* fix: added review suggestion
2025-01-22 11:01:24 +01:00
Rüdiger Schmitz
f04ced9981
feat: Allow managing server state in stackit_server resource (#623)
* feat: implement state switching in resource

* chore: fix linter issues

* feat: fix testcases

* chore: update documentation

* feat: replace backoff implementation with canonical wait functionality

* feat: refactor update method to correctly handle state changes of shelved servers

* chore: reverted documentation changes

* feat: updated server documentation

* feat: configured desired_state as "write-only" attribute

* feat: update to command help
2025-01-15 11:28:50 +01:00
João Palet
700bdc90d0
Implement new stackit_image resource and datasource (#609)
* feat: Implement image resource and datasource

* feat: Add remaining config options

* feat: Make protected field only computed

* feat: Update dependency to use IaaS beta API

* fix: Minor fix in acc test

---------

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2025-01-09 11:57:25 +00:00
Vicente Pinto
80c9e58052
Update nic field description (#619) 2024-12-23 12:35:02 +00:00
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
GokceGK
1051995ad6
Change the public ip resource conflict warning message order (#600)
* change the warning message order

* change the warning message

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

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

* adapt warning in schema and docs

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-11-25 11:41:12 +01:00