Commit graph

450 commits

Author SHA1 Message Date
3dbf79c95f
fix: refactor sqlserver handle optional encryption (#27)
All checks were successful
Publish / Check GoReleaser config (push) Successful in 12s
Publish / Publish provider (push) Successful in 17m14s
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #27
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-02-02 10:52:21 +00:00
a5a388f238
chore: refactor import urls after repo move (#26)
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #26
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-02-02 10:01:27 +00:00
4153035eae
fix: pgsql_api_updates (#16)
Some checks failed
Publish / Check GoReleaser config (push) Successful in 4s
Release / goreleaser (push) Failing after 23s
Publish / Publish provider (push) Failing after 6m29s
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #16
2026-01-30 10:59:24 +00:00
f3d66c7569
fix: refactor postgres genereated files (#15)
Some checks failed
Publish / Check GoReleaser config (push) Successful in 4s
Release / goreleaser (push) Failing after 28s
Publish / Publish provider (push) Failing after 6m28s
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #15
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-01-30 10:37:50 +00:00
a9df5b0ff5
fix: refactor publish command (#14)
Some checks failed
Publish / Check GoReleaser config (push) Successful in 5s
Release / goreleaser (push) Failing after 27s
Publish / Publish provider (push) Failing after 4m4s
feat: add connection info

fix: prevent postgresql from failing when encryption is empty

## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #14
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-01-30 10:15:49 +00:00
0a21d9f0f2
fix: refactor package generation (#10)
Some checks failed
Publish / Check GoReleaser config (push) Successful in 5s
Release / goreleaser (push) Failing after 27s
Publish / Publish provider (push) Failing after 6m43s
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #10
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-01-29 16:00:09 +00:00
9f41c4da7f
feat: auto generated files and new structure (#4)
Some checks failed
Publish / Check GoReleaser config (push) Successful in 4s
Release / goreleaser (push) Failing after 29s
Publish / Publish provider (push) Failing after 4m24s
## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #4
Reviewed-by: Andre_Harms <andre.harms@stackit.cloud>
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-01-29 14:10:25 +00:00
979220be66
chore: adjust pagination for postgres database and flavor listing (#20)
* feat: implement pagination for database listing

* fix: change database_id attribute type from string to int64

* refactor: rename getDatabase to getDatabaseById for clarity

* fix: improve error handling for database not found scenario

* feat: add validation for database_id and name attributes; implement separate functions for fetching databases by ID and name

* feat: implement database client interface and update database fetching functions

* refactor: rename matcher to filter for clarity and update pagination logic

* feat: implement flavors retrieval with pagination and filtering support

* refactor: rename flavor import for consistency and clarity

* feat: add support for InstanceStatePending in wait handler logic

* refactor: simplify GetFlavorsRequest and GetFlavorsRequestExecute by removing pagination parameters

* refactor: improve readability of test cases by formatting function signatures and restructuring test runs

* refactor: remove pagination parameters from GetFlavorsRequest in test case

* refactor: simplify function signatures and improve readability in datasource and resource files

* refactor: add descriptions for user-related attributes in datasource schema

* refactor: enhance user resource schema with additional attributes and improve logging

* refactor: delete unused file

* refactor: standardize formatting and improve function naming for user resource management

* refactor: remove skip from TestMapFields and update roles initialization in resource tests

* fix: golangci lint issues

* fix: golangci lint issues again

* fix: golangci lint issues again
2026-01-16 16:23:10 +01:00
Marcel S. Henselin
0150fea302
Feat/separate functions (#19)
* chore: work save

* fix: refactor flavors

* fix: refactor pg user and database

* fix: refactor flavor parameters

* fix: refactor tf script

* chore: work save

* chore: work save

* chore: work save

---------

Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2026-01-13 12:19:12 +01:00
910551f09d fix: fix tests 2025-12-30 17:14:37 +01:00
468841db57 fix: linting cleanup 2025-12-30 16:43:42 +01:00
29f693308e fix: re-implement acl part in top level
feat: implement tf identity
2025-12-30 16:30:18 +01:00
9a18db49ad fix: add missing pagination to api client
fix: add missing docs
2025-12-30 11:50:36 +01:00
7d66568003 fix: adjust tests to new api version with acl in network segment 2025-12-30 08:04:53 +01:00
5cab4b79ee chore: work save 2025-12-30 07:43:57 +01:00
ff9f47edc3 fix: fixed some tests 2025-12-29 11:10:42 +01:00
Marcel S. Henselin
5b6576da1c
Fix/fix tests (#18)
* fix: fix and adjust tests to new api

* fix: add missing testdata file

* fix: add missing docs

* fix: ignore docs flow for now

* fix: fix  linting
2025-12-29 07:12:30 +01:00
Marcel S. Henselin
25fb4453f0
Feat/alpa postgres database (#15)
* chore: implement datasource

* chore: register datasource

---------

Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
2025-12-23 11:38:05 +01:00
76b61859da fix: add missing functions 2025-12-22 17:02:38 +01:00
b08b32ef1d fix: add psql datasource 2025-12-22 11:17:38 +01:00
d01ae71b75 fix: int64 user_id and some more 2025-12-22 10:56:04 +01:00
Marcel S. Henselin
6aac685ed4
Feat/alpa postgres user (#14)
* chore: add stackit_postgresflexalpha_user resource

* chore: refactor postgresflex user resource to postgresflexalpha

* chore: refactor wait handlers and update API client interfaces for postgresflexalpha

* chore: add stackit_postgresflexalpha_user data source example

* fix: refactor sqlserverflexalpha user resource and enhance schema with status and default_database

---------

Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
2025-12-22 10:02:25 +01:00
Marcel S. Henselin
f0414ab3b9
Feat/alpa sqlserver user (#13)
* fix: update API client references to use sqlserverflexalpha package

* chore: add stackit_sqlserverflexalpha_user resource and instance_id variable

* fix: refactor sqlserverflexalpha user resource and enhance schema with status and default_database

---------

Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
2025-12-22 09:41:03 +01:00
Marcel S. Henselin
9e04ab2630
Fix: pgsql fix (#10)
* fix: remove license header from files

* fix: updated docs and sample
---------

Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2025-12-22 09:23:53 +01:00
Marcel S. Henselin
99f2853ae5
Feat: alpha sqlserver user (#12)
* fix: remove unused attribute types and functions from backup models

* fix: update API client references to use sqlserverflexalpha package

* fix: update package references to use sqlserverflexalpha and modify user data source model

* fix: add sqlserverflexalpha user data source to provider

* fix: add sqlserverflexalpha user resource and update related functionality

* chore: add stackit_sqlserverflexalpha_user resource and instance_id variable

* fix: refactor sqlserverflexalpha user resource and enhance schema with status and default_database

* chore: remove not needed service files

* chore: cleanup import in utils

* fix: provider name change

* fix: clone missing doc files

* fix: docs adjustments

* fix: docs CI scripts

* fix: docs naming

* fix: remove guides from docs

* fix: adjust examples

* fix: remove obsolete doc templates

* fix: docs adjustments

* fix: add missing doc file

* fix: temp rename file

---------

Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2025-12-19 15:15:42 +01:00
Marcel S. Henselin
c9193e0237
Feat: alpha postgres user (#11)
* chore: add stackit_postgresflexalpha_user resource

* chore: refactor postgresflex user resource to postgresflexalpha

* chore: refactor wait handlers and update API client interfaces for postgresflexalpha

* chore: add stackit_postgresflexalpha_user data source example

---------

Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
2025-12-19 15:07:44 +01:00
Marcel S. Henselin
944a75295f
Fix: fix imports and names (#9)
* fix: add missing entries and correct refs

* fix: add missing docs

---------

Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2025-12-19 12:34:16 +01:00
Marcel S. Henselin
db080dc89a
Feat/add sqlserver user (#8)
fix: correct wrong import

---------

Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2025-12-19 12:00:51 +01:00
Marcel S. Henselin
70db08f43f
Feat/mssql alpha instance (#7)
* chore: add missing resources

---------

Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2025-12-19 11:55:29 +01:00
Marcel S. Henselin
08afbcf574
fix: add missing entries (#6)
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2025-12-19 11:51:46 +01:00
Marcel S. Henselin
ce2f3fca00
Feat/alpa postgres user (#5)
* chore: add stackit_postgresflexalpha_user resource

* chore: refactor postgresflex user resource to postgresflexalpha

* chore: refactor wait handlers and update API client interfaces for postgresflexalpha

* chore: add stackit_postgresflexalpha_user data source example

---------

Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
2025-12-19 11:48:21 +01:00
7de63b5b8e Merge branch 'main' into alpha
# Conflicts:
#	docs/data-sources/sqlserverflexalpha_user.md
#	docs/index.md
#	docs/resources/postgresflexalpha_instance.md
#	docs/resources/sqlserverflexalpha_user.md
#	examples/data-sources/stackitprivatepreview_postgresflexalpha_database/data-source.tf
#	examples/data-sources/stackitprivatepreview_postgresflexalpha_instance/data-source.tf
#	examples/data-sources/stackitprivatepreview_postgresflexalpha_user/data-source.tf
#	examples/data-sources/stackitprivatepreview_sqlserverflexalpha_instance/data-source.tf
#	examples/data-sources/stackitprivatepreview_sqlserverflexalpha_user/data-source.tf
#	examples/provider/provider.tf
#	examples/resources/stackitprivatepreview_postgresflexalpha_database/resource.tf
#	examples/resources/stackitprivatepreview_postgresflexalpha_instance/resource.tf
#	examples/resources/stackitprivatepreview_postgresflexalpha_user/resource.tf
#	examples/resources/stackitprivatepreview_sqlserverflexalpha_instance/resource.tf
#	examples/resources/stackitprivatepreview_sqlserverflexalpha_user/resource.tf
#	go.mod
#	go.sum
#	golang-ci.yaml
#	main.go
#	scripts/check-docs.sh
#	scripts/lint-golangci-lint.sh
#	scripts/project.sh
#	scripts/replace.sh
#	scripts/tfplugindocs.sh
#	stackit/internal/conversion/conversion.go
#	stackit/internal/conversion/conversion_test.go
#	stackit/internal/core/core.go
#	stackit/internal/core/core_test.go
#	stackit/internal/features/beta.go
#	stackit/internal/features/beta_test.go
#	stackit/internal/features/experiments.go
#	stackit/internal/features/experiments_test.go
#	stackit/internal/services/postgresflexalpha/database/datasource.go.bak
#	stackit/internal/services/postgresflexalpha/database/resource.go.bak
#	stackit/internal/services/postgresflexalpha/database/resource_test.go.bak
#	stackit/internal/services/postgresflexalpha/instance/datasource.go.bak
#	stackit/internal/services/postgresflexalpha/instance/resource.go
#	stackit/internal/services/postgresflexalpha/instance/use_state_for_unknown_if_flavor_unchanged_modifier.go
#	stackit/internal/services/postgresflexalpha/postgresflex_acc_test.go
#	stackit/internal/services/postgresflexalpha/user/datasource.go
#	stackit/internal/services/postgresflexalpha/user/datasource_test.go
#	stackit/internal/services/postgresflexalpha/user/resource.go
#	stackit/internal/services/postgresflexalpha/user/resource_test.go
#	stackit/internal/services/postgresflexalpha/utils/util.go
#	stackit/internal/services/postgresflexalpha/utils/util_test.go
#	stackit/internal/services/sqlserverflexalpha/instance/datasource.go
#	stackit/internal/services/sqlserverflexalpha/instance/resource.go
#	stackit/internal/services/sqlserverflexalpha/sqlserverflex_acc_test.go
#	stackit/internal/services/sqlserverflexalpha/testdata/resource-max.tf
#	stackit/internal/services/sqlserverflexalpha/testdata/resource-min.tf
#	stackit/internal/services/sqlserverflexalpha/user/datasource.go
#	stackit/internal/services/sqlserverflexalpha/user/resource.go
#	stackit/internal/services/sqlserverflexalpha/utils/util.go
#	stackit/internal/services/sqlserverflexalpha/utils/util_test.go
#	stackit/internal/testutil/testutil.go
#	stackit/internal/testutil/testutil_test.go
#	stackit/internal/utils/attributes.go
#	stackit/internal/utils/attributes_test.go
#	stackit/internal/utils/headers.go
#	stackit/internal/utils/headers_test.go
#	stackit/internal/utils/regions.go
#	stackit/internal/utils/regions_test.go
#	stackit/internal/utils/use_state_for_unknown_if.go
#	stackit/internal/utils/use_state_for_unknown_if_test.go
#	stackit/internal/utils/utils.go
#	stackit/internal/utils/utils_test.go
#	stackit/internal/validate/validate.go
#	stackit/internal/validate/validate_test.go
#	stackit/provider.go
#	stackit/provider_acc_test.go
#	stackit/testdata/provider-all-attributes.tf
#	stackit/testdata/provider-credentials.tf
#	stackit/testdata/provider-invalid-attribute.tf
2025-12-19 11:33:29 +01:00
45073a716b chore: empty main branch 2025-12-19 11:29:31 +01:00
feef0b61d6 chore: fixing tests 2025-12-19 09:49:19 +01:00
a861661036 feat: add sqlserver instance 2025-12-19 09:05:48 +01:00
Marcel S. Henselin
5381516661
feat: mssql alpha instance (#2)
* fix: remove unused attribute types and functions from backup models

* fix: update API client references to use sqlserverflexalpha package

* fix: update package references to use sqlserverflexalpha and modify user data source model

* fix: add sqlserverflexalpha user data source to provider

* fix: add sqlserverflexalpha user resource and update related functionality

* chore: add stackit_sqlserverflexalpha_user resource and instance_id variable

* fix: refactor sqlserverflexalpha user resource and enhance schema with status and default_database

---------

Co-authored-by: Andre Harms <andre.harms@stackit.cloud>
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
2025-12-19 08:56:46 +01:00
Ruben Hönle
459122c88e
fix(utils): return updated ctx in SetAndLogStateFields func (#1100) 2025-12-18 14:37:56 +00:00
df25ceffd4 chore: cleanup alpha branch 2025-12-17 16:14:25 +01:00
Marcel S. Henselin
c07c81b091
Merge branch 'stackitcloud:main' into alpha 2025-12-17 16:09:23 +01:00
Ruben Hönle
53a3697850
feat(iaas): support for v2 API (#1070)
relates to STACKITTPR-313
2025-12-17 15:40:46 +01:00
mitterle-sit
460c18c202
fix(observability/instance): adjust drift (#1044)
fixes #1003
2025-12-16 16:12:15 +01:00
3b07f3f1d3 chore: add missing folders 2025-12-11 11:15:54 +01:00
30070d8470 chore: initial push to be able to work together 2025-12-11 09:59:41 +01:00
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
8a609d4ab8
fix(ske): read only attributes produces noise (#1081)
* fix(ske): read-only attributes produces noise

* feat: add new planmodifier `UseStateForUnknownIf`
2025-12-04 12:32:18 +00:00
Mauritz Uphoff
0e9b97a513
feat(access-token): add ephemeral access-token resource (#1068)
* feat(access-token): add ephemeral access-token resource

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
2025-12-03 10:13:28 +01: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
d1e12fcf64
fix(serverupdate, serverbackup): respect custom endpoint values (#1072)
relates to #1071
2025-11-26 15:25:18 +01:00
Ruben Hönle
7709986560
feat(kms): add wrapping key resource and datasource (#1060)
relates to STACKITTPR-416
2025-11-18 16:53:58 +01:00
Ruben Hönle
5e8c7a7369
feat(kms): add key resource and datasource (#1055)
relates to STACKITTPR-411
2025-11-17 10:58:11 +00:00