Commit Graph

103 Commits

Author SHA1 Message Date
Mia-Cross e12f3dc07b
scaleway: terraform support (#15892)
* tasks dependencies

* FindAddresses should proceed even if LBID is empty

* refacto instance: handle several instances in IG + volumeSize in model

* refacto lb_backend: set servers' IPs in backend task rather than instance

* dns changes for tf support

* render Scaleway s3 objects + add zone to outputs

* add terraform support to documentation

* new instance unique name should be given according to actual instances names

* avoid untimely changes in tf + tag instance IPs to avoid orphaned IPs at cluster deletion

* update integration tests

* review comments

* add IPs to the resources to be deleted with the cluster

* add task + model for DNS record
2023-09-29 04:22:42 -07:00
srikiz e77e660ed9 More changes based on testing 2023-04-11 07:51:36 +05:30
srikiz 0360e170ea rebase to master 2023-04-11 07:51:34 +05:30
srikiz eb3214ab44 Initial changes for terraform support 2023-04-11 07:51:02 +05:30
Leïla MARABESE b4d230f8c2 scaleway integration test 2023-03-28 16:58:54 +02:00
justinsb 3a683e1444 Refactor terraform provider version logic
As suggested in review of 14926, this approach might be more concise
and clearer.
2023-01-04 13:40:15 -05:00
justinsb 707758f1e9 Support multiple terraform file providers
By adding them on-demand, it is arguably a little simpler as well.

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2023-01-04 08:14:18 -05:00
John Gardiner Myers 5c69274317 Simplify pointers to maps in API 2022-12-25 20:29:51 -08:00
John Gardiner Myers 7abacb9b3b Get default CheckExisting from Target 2022-12-20 12:00:37 -08:00
John Gardiner Myers 7c3e32369a Refactor Context into separate cloudup and nodeup types 2022-12-17 17:42:46 -08:00
John Gardiner Myers 264bf942da Miscellaneous Terraform refactors 2022-12-10 09:32:06 -08:00
John Gardiner Myers 9878f8a190 Miscellaneous Terraform refactors 2022-12-10 09:32:06 -08:00
John Gardiner Myers 0830a9680b Remove dead code 2022-12-10 09:32:02 -08:00
John Gardiner Myers dde963f3a4 Refactor writing Terraform outputs 2022-12-10 09:30:36 -08:00
John Gardiner Myers b128c67708 Refactor writing Terraform providers 2022-12-05 21:55:10 -08:00
John Gardiner Myers 624145faca toElement() never returns an error 2022-12-05 21:31:37 -08:00
John Gardiner Myers 5194f3a974 Refactor Terraform map code 2022-12-05 21:27:25 -08:00
John Gardiner Myers 272171e04a Remove dead code 2022-12-04 22:41:28 -08:00
John Gardiner Myers 4573a690f2 Refactor writing Terraform resources 2022-12-04 21:46:50 -08:00
John Gardiner Myers 6c1684d568 Address review comments 2022-12-03 15:14:24 -08:00
John Gardiner Myers 990ce77120 Refactor writing of Terraform data sources 2022-12-03 00:13:07 -08:00
John Gardiner Myers ffe3edd4ff Refactor writing of terraform block 2022-11-30 23:28:24 -08:00
John Gardiner Myers 61e52d1a1d Refactor LiteralFunctionExpression to take Literal args 2022-11-27 18:39:49 -08:00
John Gardiner Myers 70fe547deb Refactor terraformWriter.Literal's Value field 2022-11-26 17:27:34 -08:00
John Gardiner Myers d8c6c07799 Refactor terraformWriter.Literal's Index field 2022-11-26 17:11:22 -08:00
John Gardiner Myers cde34d8b56 Refactor terraformWriter.Literal's Tokens field 2022-11-26 17:03:37 -08:00
John Gardiner Myers 1b99cae617 Refactor rendering Terraform functions into constructor 2022-11-24 19:31:08 -08:00
John Gardiner Myers 225a64e991 Write Terraform vpc_cidr_block output for shared VPCs 2022-11-22 21:04:55 -08:00
John Gardiner Myers d661e573de Make terraformWriter.LiteralFunctionExpression() variadic 2022-11-22 21:04:55 -08:00
Ciprian Hacman 35ee342eb1 Add Terraform target support for Hetzner 2022-08-25 08:14:39 +03:00
Ciprian Hacman cb99db0757 Run make goimports 2022-08-17 07:03:33 +03:00
Kubernetes Prow Robot 6d264080ed
Merge pull request #13484 from olemarkus/no-bazel-targets
Remove bazel targets and tools
2022-04-17 23:16:41 -07:00
Ciprian Hacman 8b8dd8d2dd Use aws_s3_object instead of deprecated aws_s3_bucket_object 2022-04-13 16:49:03 +03:00
Ole Markus With ce2e877aeb Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
Peter Rifel 8031d96bb3
Upgrade terraform aws provider to 3.71.0 2021-12-25 08:38:20 -06:00
Peter Rifel e0555bb431
Remove unused json field tags from terraform structs 2021-12-24 14:17:23 -06:00
Peter Rifel e31dd982ac
Remove TerraformJSON feature flag and functionality 2021-12-24 14:17:23 -06:00
Ciprian Hacman ea7df00719 Run hack/update-gofmt.sh 2021-12-01 22:39:50 +02:00
Eng Zer Jun 425173ae9f
refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-12 15:37:18 +08:00
Peter Rifel 0449d6e36f
Upgrade TF to 0.15 and include the provider's configuration_aliases 2021-09-17 18:08:59 -05:00
Peter Rifel 0f67cb1edb
Include second tf provider when ConfigBase implements TerraformPath 2021-09-17 18:08:58 -05:00
Peter Rifel ff50a52ae0
Add API field for managed files terraform provider config 2021-09-17 18:08:58 -05:00
Peter Rifel 3ec1295cf0
Add support for writing lists of terraform literals 2021-09-17 18:08:57 -05:00
Peter Rifel eaea60ff07
Disallow TerraformJSON + TerraformManagedFiles and deprecate TerraformJSON 2021-09-17 06:42:07 -05:00
Peter Rifel 0bcd39e905
Add IPv6 IMDS terraform support
This requires bumping the minimum aws provider version to the version that includes the support
2021-09-16 20:02:03 -05:00
Peter Rifel c04f9e0a6a
Allow arbitrary length terraform literals
Terraform provider aliases are referenced with two "tokens": `aws.files`

This adds support for literal references with an arbitrary number of tokens
2021-09-12 07:32:30 -04:00
Kubernetes Prow Robot b8aa684bb5
Merge pull request #11901 from rifelpet/tf-project
Include GCP Project in terraform HCL2 output
2021-07-01 07:05:55 -07:00
Peter Rifel 13f4305b9c
Include GCP Project in terraform HCL2 output
This has been included in the JSON output but was missing from HCL2
2021-07-01 09:23:37 -04:00
Peter Rifel 32c6c0db02
Remove unnecessary parameters from terraform finish methods 2021-07-01 07:55:31 -04:00
Peter Rifel 01138a3995
Add support for arbitrary terraform functions
This allows terraformWriter.LiteralFunctionExpression to be used with any terraform function.

The arguments must be strings, which means that any string arguments must include quotes.
2021-05-19 22:40:34 -05:00