Commit graph

63 commits

Author SHA1 Message Date
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
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
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
Rüdiger Schmitz
3642260cc4
fix: handle undefined creation time (#655) 2025-01-29 16:04:22 +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
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
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
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
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
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
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
fc27f65925
fix: Make SKE cluster hibernations timezone field Computed (#584) 2024-11-08 14:46:25 +00: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
João Palet
ae5ccdcd9f
Set SKE extension Argus instance ID field to Optional (#502) 2024-08-12 13:24:06 +02: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
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
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
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
923764172d
Add note regarding update to SKE cluster node pools (#421) 2024-06-25 14:57:49 +01:00
João Palet
89b03f1a75
Leave SKE cluster list length validations for the API (#425) 2024-06-25 14:44:21 +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
Vicente Pinto
29bf7cbb31
Fix os_version and os_version_min conflicting fields (#376)
* Make cluster network computed

* Fix field conflict

* Replace computed with better mapping

* Fix comment

* Update unit test§
2024-05-27 11:22:35 +01:00
Vicente Pinto
ecaf622f55
Fix cluster network mapping (#375)
* Make cluster network computed

* Replace computed with better mapping

* Fix comment

* Update unit test§
2024-05-27 09:18:10 +01:00
João Palet
ac0840fceb
Allow specifying network ID in SKE cluster (#368) 2024-05-21 11:27:23 +01:00
Vicente Pinto
e2e5f19a29
Improve description for default fields (#369) 2024-05-21 11:14:16 +01:00
Vicente Pinto
e4bbcfd50a
Remove ssl note from redis credentials uri, mark uri as sensitive and update ske project deprecation date (#367)
* Remove ssl note from redis credential

* Mark uri as sensitive, change deprecation note of ske project

* Update date
2024-05-21 10:22:30 +01:00
Vicente Pinto
e850a952bd
Support SKE OS versions auto and forceful updates (#364)
* Deprecate os_version and add os_version_used

* Add os_version_min field

* Draft implementation for os_version_min

* Finish implementation

* Fix mapFields

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

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

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

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

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

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

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

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

* Improve descriptions

* Improve variable names

* Fix lint

* Extend acc test, generate docs

* Don't select automatically preview versions

* Update acc test

* Simplify code

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-05-20 18:03:50 +01:00
Vicente Pinto
940b15e4b8
Fix kubernetes_version_min field logic (#363)
* new field kubernets_version_min and deprecate kubernetes_version

* Fix lint and tests

* Update acc test

* Deprecate datasource field, fix checkAllowPrivilegedContainers

* Update acc test, datasource and descriptions

* Update acc test

* Improve descriptions, fix bug

* Improve docs, fix acc test

* Update docs

* Update docs, fix acc test

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

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

* Fix links

* Default ske auto-update to true

* Check current cluster version

* Add unit test

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-05-17 12:12:35 +01:00
Vicente Pinto
27b008a657
Support automatic kubernetes updates for stackit_ske_cluster (#360)
* new field kubernets_version_min and deprecate kubernetes_version

* Fix lint and tests

* Update acc test

* Deprecate datasource field, fix checkAllowPrivilegedContainers

* Update acc test, datasource and descriptions

* Update acc test

* Improve descriptions, fix bug

* Improve docs, fix acc test

* Update docs

* Update docs, fix acc test

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

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

* Fix links

* Default ske auto-update to true

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-05-14 14:55:33 +01:00
João Palet
66d6ec2bd0
Remove deleted resources and datasources from Terraform state on Read (all remaining services) (#346)
* Remove deleted resources and datasources from state on Read

* Simplify code

* Fix function description

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

* Fix function description

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

* Fix whitespace

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-04-23 08:59:43 +01:00
Diogo Ferrão
6e61caee19
Bugfix SKE downgrade replace in place (#315)
* add requireif to schema, extend acc testing

* fix acceptance test

* improve testing
2024-03-27 15:45:16 +00:00
GokceGK
056c000acc
Update SKE project resource deprecation message (#313)
* remove redundant log message

* update description and deprecation message for project resource

* add missing space

* update docs
2024-03-26 11:11:21 +01:00
GokceGK
0fc2a28469
Deprecate ske project resource (#309)
* add deprecation message

* edit acceptance test

* Enable project before creating first cluster // fix typo in function name

* add cluster existence check before deleting ske project // add deprecation message to project resource

* add region to acceptance test

* Update resource error message

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

* Update resource error message

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

* Update deprecation message

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

* Update error message

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

* remove model id assignment

* update error handling for cluster existence check while deleting project

* add nil check for clusters during project deletion

* add deprecation notice to documentation

* Update datasource deprecation message

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

* improve condition handling

---------

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2024-03-25 13:23:06 +01:00
Vicente Pinto
b79c88e858
Update documentation (#298)
* Update documentation

* Update stackit/internal/services/redis/credential/resource.go

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

* Add more info

* Update datasource

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-03-11 15:55:05 +00:00
Vicente Pinto
9d3d888178
Small acc test fixes (#279) 2024-02-26 16:01:12 +00:00
Vicente Pinto
d1ceb77081
Return available ske versions in the error message (#278) 2024-02-26 09:55:04 +00:00
Vicente Pinto
d5bd5fa402
Get credentials in cluster read and add default to kubeconfig expiration (#259)
* Get credentials in cluster read and add default to expiration

* Fix docs

* Fix docs

* Update warning
2024-02-09 16:59:00 +00:00
Vicente Pinto
e9b2d7aa91
Remove UseStateForUnknown for kubeconfig field in ske cluster (#258)
* Remove UseStateForUnknown

* Fix acc test
2024-02-09 11:59:34 +00:00
Vicente Pinto
bde1fc55e4
Deprecate kubeconfig field and add stackit_ske_kubeconfig resource (#256)
* Implement kubeconfig resource

* Update acc test, skip get credentials

* Update acc test

* Add warning on Create

* Add option to refresh

* Fix lint

* Add comment, generate docs

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

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

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

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

* Changes after review

* Fix schema

* Gen docs

* Rename

* Credentials handling in datasource, update acc test

* Fix datasource

* Update descriptions

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-02-09 10:17:04 +00:00
Vicente Pinto
ad561a0367
Update example and remove regex validation (#207) 2024-01-12 17:32:51 +00:00
Vicente Pinto
1e103ac7fe
Move checkAllowPriviledgedContainers to the Create and Update functions in the SKE resource (#206)
* Move checkAllowPriviledgedContainers to the Create and Update functions

* Remove ValidateConfig

* Add comment
2024-01-12 17:32:08 +00:00
Henrique Santos
b6801a89b9
Rename model for uniformity, add comments (#197)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2024-01-09 10:33:26 +00:00
Henrique Santos
c7effac5c7
Update SDK dependency (#177)
* Update dependencies

* Update dependencies

* Update dependencies

* Update dependencies

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-12-21 09:33:36 +00:00
Vicente Pinto
d1b10d23c1
SKE Cluster: fix extensions and hibernations mapping (#135)
* Fix bug in extensions.argus conversion

* Fix mapExtensions

* Fix extensions mapping, add test case

* Check disabled argus or acl independently

* Add last fixes

* Replace NewListValueFrom with NewListValue

* Remove unused argument
2023-11-08 16:01:35 +00:00
Henrique Santos
cbbf3a00c5
SKE Acc tests - Remove max_surge from min cluster (#130)
* Remove max_surge

* Simplify import

---------

Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
2023-11-07 11:27:43 +00:00
Vicente Pinto
4728a49845
Fix bug in extensions.argus conversion (#133) 2023-11-06 13:01:20 +00:00
Vicente Pinto
0d438a4a9c
SKE Cluster - Change Extensions field model to use types.Object (#127)
* Convert SKE Extensions field to TF model

* Fix unit test

* Check error

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

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

* Fix error messages

* Replace ListValueMust with ListValue

* Replace types.ListValue with types.ListValueFrom

* Add context

* Add separator

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2023-11-06 10:59:36 +00:00