Commit Graph

755 Commits

Author SHA1 Message Date
Iramis Valentin c59396d19a
add basic tests around CRDs 2025-03-26 18:45:06 +00:00
Silvio Moioli 3eb7d2508e
docs: fix broken links
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2025-01-24 12:48:28 +01:00
Silvio Moioli 52126f1521
DEVELOPING: add architectural notes
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2025-01-24 12:37:06 +01:00
Silvio Moioli 4844f25dad
Merge pull request #39 from git-ival/byo-aws-vpc 2025-01-23 09:46:54 +01:00
Iramis Valentin c033f3a3db
add setup required for BYO VPC, remove dead commented code 2025-01-22 18:29:13 +00:00
Iramis Valentin e8422c2e83
add type hints to variables to ensure opentofu parses them as the intended types 2025-01-22 18:13:46 +00:00
Silvio Moioli c3ab7655b8
Merge pull request #38 from rancher/fix-image-import 2025-01-22 10:07:03 +01:00
Iramis Valentin dca6a122d3
enable byo vpc functionality 2025-01-22 07:33:15 +00:00
Iramis Valentin 5608fcc69a
update .gitignore 2025-01-22 07:32:34 +00:00
Alejandro Ruiz f6b58e5c86 Use correct cluster name when importing images into k3d 2025-01-21 16:27:23 +01:00
Silvio Moioli e6156ad134
Merge pull request #36 from rancher/arbitrary-values 2025-01-21 11:33:45 +01:00
Alejandro Ruiz d8e1c3dbd7 Rename key to rancher_values 2025-01-20 12:10:46 +01:00
Alejandro Ruiz 696f30021f Add support for specifying arbitrary helm values for installing Rancher 2025-01-17 17:37:08 +01:00
Iramis Valentin 3b34f54993
Merge pull request #33 from moio/fix_waiting_downstream
Bugfix: wait for webhook to be ready downstream as well
2025-01-07 15:20:41 -05:00
Silvio Moioli 73d05eebf2
Merge pull request #32 from moio/generic_modules
Main changes:

- create generic modules for anything that gets deployed onto a VM such as k3s, RKE2, etcd and so on. Any backend that can create VMs can use those modules without any changes
- create a generic module for the whole test setup (upstream + downstream + tester clusters). Any backend can use it by either providing a module to create VMs (on top of which k3s/RKE2 are deployed) or a module to deploy full clusters (eg. AKS, k3d)
  - massively simplify mains by leveraging the above module
- drop the openstack and SSH modules. At the moment we have no concrete use of them. We can bring them back anytime - if needed
- rebase the Azure backend. This now has its own dartfile, so it can be used by dartboard (the executable - before it was basically broken). With the rebase it gets all the goodies of the new dartfile based architecture (eg. downstream templates) and the new generic modules functionality too
- rebase the k3d backend. With the rebase it gets all the goodies of the new dartfile based architecture
- rename things aggressively around a few concepts

node: a Linux VM we can SSH into
cluster: a Kubernetes cluster - optionally made up of nodes
network: anything that glues clusters and nodes together (actual networks, firewalls, rules bastion hosts...)
test environment: an upstream cluster, any number of downstream clusters and a downstream cluster in a network
main: substantially a Tofu file creating a test environment
2025-01-07 11:27:54 +01:00
Silvio Moioli ebec690fd7
aws: enlarge bastion host size
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-20 08:34:30 +01:00
Silvio Moioli 3627b70587
fix aws default dart
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-19 20:13:31 +01:00
Silvio Moioli 4386e6de8e
refactoring: renaming: remove the concept of backend from jargon
Use "variables" and "config" instead

Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-19 16:25:06 +01:00
Silvio Moioli b1abb20d52
refactoring: rename 'backend' to 'node_module'
That's what it really is.

Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-19 15:38:57 +01:00
Silvio Moioli 0594557d3e
restore the possibility of deploying just one upstream cluster
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-19 15:37:03 +01:00
Silvio Moioli a502ab4d9d
Bugfix: wait for webhook to be ready downstream as well
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-19 12:53:19 +01:00
Silvio Moioli 003251b482
bugfix: missing variable passing
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-19 12:51:48 +01:00
Silvio Moioli b139bd8504
align k3d modules and main as well
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-19 12:50:54 +01:00
Silvio Moioli e41a90f163
forego defaults and simplify mains
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 15:15:19 +01:00
Silvio Moioli 9b1290d0c4
drop outdated examples
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:23:04 +01:00
Silvio Moioli cf77d6a1b7
README: clarify scope
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 0b6c60aecf
README: remove obsoleted part
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 91bfa5eb51
drop ssh module
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli a932cb9ed1
drop openstack (at least for now)
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 6fe6c4d6dc
uniform azure backend
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 6c64257498
add missing variables
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 4621f734ad
aws: fix variable name
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 8c97ac7e27
add missing value
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 39f3dbbf69
bugfix: pass variables to init
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli a352ed21f7
refactoring: uniform cluster modules, simplify test_environment
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli fda6b86778
whitespace fixes
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 9f789fad69
refactoring: rename files for uniformity
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli a8dc62f9fb
aws, generic: uniform naming
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 6e6e7d4f6a
aws: move backend-specific variables at end
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 6f5427b889
aws: uniform naming
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli e0e1196fb5
Split AWS modules into AWS proper and generic parts
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 99226c3b2b
refactoring: move all ssh modules in own directory
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli b59ea8dc62
refactoring: move all generic modules in own directory
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli c45e27d4f8
refactoring: move all openstack modules in own directory
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 07c700eb72
refactoring: move all k3d modules in own directory
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 882cb262a8
refactoring: move all azure modules in own directory
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli c48df101c4
refactoring: move all aws modules in own directory
Signed-off-by: Silvio Moioli <silvio@moioli.net>
2024-12-18 14:21:41 +01:00
Silvio Moioli 612983cba0
bugfix: set monitoring taints correctly (#31) 2024-12-09 10:06:24 +01:00
Silvio Moioli 2d87743565
Unbreak AWS cluster naming (#30) 2024-12-09 10:06:00 +01:00
Iramis Valentin e7a3f5042e
Handle tofu workspaces and store stateful files in workspace-specific dirs (#29) 2024-12-05 14:08:28 +01:00