Commit graph

267 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Diogo Ferrão
1c4a3ec963
BUGFIX fix seg fault in load balancer creation (#359) 2024-05-13 17:29:07 +01:00
João Palet
ee905a3a5f
Deprecate stackit_loadbalancer_credential and add new stackit_loadbalancer_observability_credential (#357)
* Copy over old resource files

* Adjustments to the new observability credential resource.go

* Register new resource in the provider

* Add example

* Adapt acc test

* Update docs

* Add deprecation message

* Fix linter

* Add deprecation message to dscription
2024-05-13 15:30:51 +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
Markus Brunsch
318d8e3263
updated license (#351) 2024-05-08 11:33:54 +01:00
GokceGK
1c36e5a300
Improve documentation (#354)
* Change title and description

* change the headers to have only one H1 header

* add links to documentation

* fix typos

* add useful links

* change title and description // add some links // fix typos

* Update README.md

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

* Update README.md

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

* fix link

* add correct link to issue reporting

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2024-05-07 13:47:06 +02: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
Vicente Pinto
49b585923b
Update docs (#352) 2024-05-03 14:11:28 +00:00
Diogo Ferrão
035efbd309
Fix replacement of mongoDB instances, make storage class require replace (#350)
* hotfix replacement of mongodb instances by adding delay to delete

* improve explaining comment

* increase delay time

* improve comments regarding the wait timer
2024-04-30 16:10:54 +01:00
João Palet
e48deaff59
Fix Argus scrape config internal models to use Terraform types (#349)
* Fix SAML2 model

* Fix BasicAuth model

* Fix Targets model

* Fixes after testing
2024-04-29 15:18:13 +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
Diogo Ferrão
46797a659a
support storage class update in postgresflex (#348) 2024-04-26 11:20:51 +02: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
João Palet
464884cabe
Remove deleted resources from Terraform state on Read (LB and DSA) (#340)
* Fix for load balancer resource

* Fix for lb credential resource

* Fix for all DSA resources

* Fix for lb datasource

* Fix for all DSA datasources

* Adjustments after review

* Remove early return from all datasources
2024-04-22 15:19:10 +01:00
Simon Stier
592007de7a
DNS: Fix rrsetNameLength validation (#345)
* fix rrsetNameLength validation

* remove string length validation entirely

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

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
2024-04-22 15:51:06 +02:00
GokceGK
89b509d622
Add 'how to use the provider' in the README of repo (#341)
* add 'how to use the provider' in the README of repo

* move how to part in Getting started
2024-04-22 11:20:44 +02:00
stackit-pipeline
3cadf793f6
fix(deps): update module github.com/hashicorp/terraform-plugin-go to v0.22.2 (#337)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-22 09:00:13 +02:00
stackit-pipeline
714699fcd6
fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.8.0 (#338)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-22 08:59:37 +02:00
dependabot[bot]
ac2f33007b
Bump golang.org/x/net from 0.21.0 to 0.23.0 (#339)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 08:58:41 +02:00
stackit-pipeline
db37d75887
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.13.0 (#334)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-18 09:52:48 +02:00
stackit-pipeline
75c4bcc339
chore(deps): update renovatebot/github-action action to v40.1.9 (#333)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-18 09:48:31 +02:00
GokceGK
94c718b1c2
Update GitHub actions (#332) 2024-04-17 08:11:26 +02:00
stackit-pipeline
0412440c83
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/loadbalancer to v0.12.0 (#329)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-16 16:54:32 +02:00
Diogo Ferrão
7c1560d513
update docs (#330) 2024-04-16 13:41:42 +01:00
Diogo Ferrão
9bd1da7cee
Bugfix inconsistent applies of ListAttributes (#328)
* sort the list of ACLs for MongoDBFlex

* Fix and test other cases of ListAttribute ordering

* fix linting

* revert sorting changes, introduce new reconcilestrlist function

* merge main

* Fix rabbitmq

* fix segmentation fault

* Improve testing

* pass context to mapfields, minor name fixes
2024-04-16 11:20:19 +01:00
stackit-pipeline
18d3f4d1fb
fix(deps): update stackit sdk modules (#327)
* fix(deps): update stackit sdk modules

* remove deprecated fields from credentials resources

* remove deprecated fields from credentials resources

* add newly added fields to credentials resources

* remove deprecated fields from credentials datasource

* add newly added credential fields to datasources

* update acceptance tests

---------

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Gökçe Gök Klingel <goekce.goek_klingel@mail.schwarz>
2024-04-15 09:52:35 +02:00
Vicente Pinto
4917eda1ad
DNS Record Set type requires replace (#325) 2024-04-09 16:12:00 +01:00
João Palet
e783c112d5
Extend contribution guidelines (new resource, datasource, service) (#322)
* Extend contribution guidelines (new resource, datasource, service)

* Improvements after review

* Fix formatting of table of contents

* Add required field to example

* Assorted fixes
2024-04-09 15:52:34 +01:00
stackit-pipeline
a19ac5a851
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/loadbalancer to v0.10.0 (#323)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-09 11:28:05 +01:00
stackit-pipeline
7db4af199f
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/postgresflex to v0.12.0 (#319)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-05 10:22:56 +01:00
stackit-pipeline
bb6a0d407a
fix(deps): update module golang.org/x/mod to v0.17.0 (#320)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-05 10:22:33 +01:00
stackit-pipeline
a764bad617
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/postgresflex to v0.11.0 (#317)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-03 09:45:27 +01:00
stackit-pipeline
f7e9ef0963
fix(deps): update module github.com/stackitcloud/stackit-sdk-go/services/ske to v0.11.0 (#316)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-04-01 08:56:48 +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
Diogo Ferrão
394d5bf8d6
Onboard Argus (ACL): fix edge cases (#314)
* fix empty acl update/create, update CIDR validator

* fix sigsegv in test, acl description

* Split field mapping, better handle edge cases

* Update stackit/internal/services/argus/instance/resource.go

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

---------

Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
2024-03-26 13:54:09 +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
Diogo Ferrão
d0b0ba4cbb
Create guide to document Vault usage with Secrets Manager (#310)
* create guide

* Address comments

* remove frontmatter description and subsection

* Move guide to template file for generation

* update description and note
2024-03-26 08:39:47 +00:00
Diogo Ferrão
9528ca2307
Update Argus ACL documentation (#312)
* update argus ACL docs

* update datasource docs
2024-03-25 14:03:58 +00: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
Diogo Ferrão
d6c677552f
Fix bug dns record name inconsistent (#307)
* add fqdn to model, map fqdn in mapFields

* add testing

* update examples, generate docs, fix linting

* addressed comments in PR

* add comment to acc tests, explaining ignore

* update docs
2024-03-25 11:45:29 +00:00
Diogo Ferrão
7223a5244c
update go version (#308) 2024-03-25 10:30:16 +00:00
Diogo Ferrão
c2389be47b
Onboard Argus ACL (#304)
* resource create and schema/model

* consider empty value in resource creation

* Address issue in mapfields that came up in testing

* Unit testing the mapFields func

* extend update

* extend read

* extend datasource.go

* update example

* extended acceptance tests and generated docs

* update description and comments

* improve messages and var names, fix update acceptance test

* extend acceptance tests, improve error messages
2024-03-22 17:35:10 +00:00
stackit-pipeline
8eb14a1136
fix(deps): update module github.com/hashicorp/terraform-plugin-framework to v1.7.0 (#306)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
2024-03-22 08:34:41 +00:00