Commit graph

226 commits

Author SHA1 Message Date
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
Mauritz Uphoff
fda9622cbc
feat: add new sql-server roles (#699)
* feat: add new sql-server roles

* feat: remove role validation
2025-03-03 12:18:44 +01:00
Marcel Jacek
380ff8c6d8
fix: expiration_timestamp of "stackit_objectstorage_credentials" cannot be parsed (#693)
* fix: expiration_timestamp of ```stackit_objectstorage_credentials```cannot be parsed

* implement review feedback
2025-02-24 14:19:16 +01:00
Marcel Jacek
8f2435be05
fix: new region field in object storage forces recreation (#689) 2025-02-21 15:12:39 +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
Alexander Dahmen
bded7e1114
Bugfix: MetricsRetentionDays not set correctly to model (#681)
Add missing set functions to Read() as well.
State need to be passed as pointer in order to be set correctly.

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-02-19 13:07:54 +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
Rüdiger Schmitz
3e8dcc542b
fix: make resource/data-source specific region attribute read-only (#682)
* fix: make resource/data-source specific region attribute read-only

* fix: implemented review feedback
2025-02-18 10:51:34 +01:00
Rüdiger Schmitz
bb472001de
feat: include preview versions as fallback (#674)
* feat: include preview versions as fallback

* feat: cleanup code

* fix: review findings

* fix: review findings

* fix: linter warning

* fix: applied review comments
2025-02-17 16:55:08 +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
Rüdiger Schmitz
9a9e1902e0
fix: corrected merge issue (#676) 2025-02-11 14:02:12 +01:00
Rüdiger Schmitz
e9af986913
fix: handle expiration date in regard to changed timezones (#667) 2025-02-11 10:03:53 +01:00
Rüdiger Schmitz
2923621ab0
Feat/stackittpr 20 region adjustments | tfp (migrate first service to new regions concept) (#664)
* feat: completed bucket and credential group

* feat: fix linter warnings

* feat: updated documentation

* feat: updated to current version of the regional api

* feat: implement review findings

* feat: implement further review findings

* fix: make sure region is stored for the data-source in the state
2025-02-10 14:28:33 +01:00
Mauritz Uphoff
c4e25f560b
Feat: add egress_address_ranges attribute to ske resource (#672)
* feat: add egress_address_ranges attribute to ske resource

* docs: generate new docs for ske
2025-02-10 10:14: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
Rüdiger Schmitz
8409f6b590
fix: introduced partial state setting (#668) 2025-02-06 11:40:18 +01:00
Marcel Jacek
531950f4aa
Extend mariadb_instance docs for monitoring_instance_id (#662) 2025-02-06 09:07:13 +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
75d6760299
fix: kubeconfig state will not be removed if the cluster does not exists anymore (#659)
* fix: kubeconfig state is not removed if the cluster no longer exists and kubeconfig can't be found (status code 404)
2025-01-30 11:43:18 +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
Rüdiger Schmitz
3642260cc4
fix: handle undefined creation time (#655) 2025-01-29 16:04:22 +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
Christopher Paul
11875602b8
Fix/logme params and update examples in dsa service docs (#644)
* APL-204: remove syslog use udp field from logme due to wrong implementation

* APL-208: update examples and regenerate logs

* fix linting error

* remove syslog-use-udp field from test

* re-generate docs

* remove doc changes that were generated by make command

* remove doc changes that were generated by make command

* remove doc changes that were generated by make command

* remove doc changes that were generated by make command

* remove doc changes that were generated by make command

* remove doc changes that were generated by make command

* remove doc changes that were generated by make command
2025-01-28 16:03:35 +01:00
Marcel Jacek
19fdcd5d10
fix: description of "server_network_interface_attachment" (#648) 2025-01-27 13:19:20 +01:00
Rüdiger Schmitz
2990f4507e
fix: correct parsing of maintenance window (#649)
* fix: correct parsing of maintenance window

* refactored dateparsing

* chore: fix go lint warnings

* fix: fix review finding

* fix: another review finding
2025-01-27 12:17:51 +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
stackit-pipeline
4106cf2170
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.21.1 (#643)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2025-01-23 16:02:18 +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
Lukas Hoehl
a1e7890d86
fix(postgresflex): continue if database is not found during read (#629)
Signed-off-by: Lukas Hoehl <lukas.hoehl@stackit.cloud>
2025-01-21 12:41:44 +01:00
Alexander Dahmen
3adff492b6
Update kubeconfig when invalid (#627)
- kubeconfig expires
- credentials rotation
- cluster recreation

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-01-20 14:18:49 +01:00
João Palet
1a66887c01
feat: Allow move state on new Observability resources (#593)
* feat: Allow move state on new Observability resources

* Extend description to explain how to move a argus resource to observability

* Update argus docs with examples how to move a resource to observability

---------

Co-authored-by: Marcel Jacek <Marcel.Jacek@stackit.cloud>
2025-01-20 09:54:30 +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
Rüdiger Schmitz
a297043c72
Feat/674070 tfp | cleanup logic for old ske credentials rotation flow (#611)
* feat: removed deprecated getCredentials call

* feat: update generated documentation

* feature: removed further kube_config references

* feature: updated documentation

* chore: integrated review findings
2024-12-19 08:30:34 +01:00
Marcel
d7e4ab2adb
Deprecate service_account_email config (#610)
* Deprecate service_account_email config
 - it could be extracted from the JWT if needed

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-12-13 10:42:17 +01:00
a_nackov
100704c0f4
ref 635294: server update schedules (#607)
Signed-off-by: Adrian Nackov <adrian.nackov@mail.schwarz>
2024-12-12 17:20:29 +00:00
João Palet
51485f8c0e
Fix inconsistent result after apply in SKE cluster node pool taint value (#606)
* fix: Inconsistent result after apply in taint value

* feat: Also add UseStateForUnknown
2024-12-03 11:35:08 +00:00
Alexander Dahmen
58e99b4d67
Update loadbalancer example to use stackit sources instead of openstack (#601)
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2024-12-02 13:52:12 +01: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
GokceGK
2a2d62a429
Onboard public_ip_associate resource (#582)
* onboard public_ip_associate resource

* add warnings

* add example

* edit warning message

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* add requiresReplace in network_interface_id

* change function name to toCreatePayload

* change deletion of the public ip association

* add unit test

* Add missing space between sentences

* update conflict warning message

* update conflict warning message

* Adjust warning message

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
Co-authored-by: João Palet <joao.palet@freiheit.com>
2024-11-22 10:14:44 +00:00
GokceGK
7b693acc2d
Add missing fields to datasource (#596)
* add missing fields to datasource

* split resource and datasource models
2024-11-22 08:25:17 +00: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
GokceGK
b1fb9ab9b6
Extend network resource fields (#576)
* deprecate nameservers filed

* onboard routed field

* onboard new ipv4 fields

* onboard new ipv6 fields

* update examples

* update examples

* update examples

* remove nameserver(deprecated) mapping

* make fields computed

* Revert "remove nameserver(deprecated) mapping"

This reverts commit e4bf1dc184289f3bddc10c5d3b2320966b529649.

* remove routed from update payload (not yet supported)

* Update docs/resources/network.md

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

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

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

* fix the field descriptions

* remove ipv6 from examples

* use nameservers as rollback value to support deprecated field

* extend acceptance tests

* add condition that nameserver and ipv4_nameserver cannot be provided at the same time

* extend acc test

* improve conditions in create payload

* adapt modify plan to support update and delete operations

* fix acceptance test

* deprecate prefixes and create ipv4_prefixes field

* fix unit tests

* fix update issues

* fix linter issues

* extend modifyPlan condition

* add validateConfig function

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

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

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

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

* update descriptions

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

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

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

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

* implement no_gateway field and condition check

* implement no_ipv6_gateway field and condition check

* update examples

* update examples and descriptions

* fix linter issues

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

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

* adapt descriptions

* apply acceptance comments

* adapt conditions in create and update

* add plan modifiers

* add requiresReplace

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-11-19 15:25:56 +01:00
Mauritz Uphoff
3ac1d50253
Feature: allow system components on nodepools (#591)
* feat: allow system components on nodepools

* docs: generated docs for ske

* lint: sort imports

* revert changes
2024-11-13 10:44:55 +00:00
João Palet
ea2da2cc25
fix: Fix formatting of key pair example (#592) 2024-11-12 17:45:43 +01:00