From 34f7245564c8a36dbaca1edc4dad0ac363252bc8 Mon Sep 17 00:00:00 2001 From: varnastadues Date: Mon, 12 Aug 2024 13:27:41 +0300 Subject: [PATCH] fix: adjust workload-autoscaler deps, update readme --- README.md | 12 +++++++++--- main.tf | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b4242f2..121b7a4 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,7 @@ Usage examples are located in [terraform provider repo](https://github.com/casta | [terraform](#requirement\_terraform) | >= 0.13 | | [azuread](#requirement\_azuread) | >= 2.22.0 | | [azurerm](#requirement\_azurerm) | >= 3.7.0 | -| [castai](#requirement\_castai) | ~> 7.4 | +| [castai](#requirement\_castai) | ~> 7.10 | | [helm](#requirement\_helm) | >= 2.0.0 | ## Providers @@ -302,7 +302,7 @@ Usage examples are located in [terraform provider repo](https://github.com/casta |------|---------| | [azuread](#provider\_azuread) | >= 2.22.0 | | [azurerm](#provider\_azurerm) | >= 3.7.0 | -| [castai](#provider\_castai) | ~> 7.4 | +| [castai](#provider\_castai) | ~> 7.10 | | [helm](#provider\_helm) | >= 2.0.0 | | [null](#provider\_null) | n/a | @@ -337,6 +337,8 @@ No modules. | [helm_release.castai_pod_pinner](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource | | [helm_release.castai_pod_pinner_self_managed](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource | | [helm_release.castai_spot_handler](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource | +| [helm_release.castai_workload_autoscaler](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource | +| [helm_release.castai_workload_autoscaler_self_managed](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource | | [null_resource.wait_for_cluster](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource | | [azuread_client_config.current](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/client_config) | data source | @@ -366,12 +368,14 @@ No modules. | [evictor\_version](#input\_evictor\_version) | Version of castai-evictor chart. If not provided, latest version will be used. | `string` | `null` | no | | [grpc\_url](#input\_grpc\_url) | gRPC endpoint used by pod-pinner | `string` | `"grpc.cast.ai:443"` | no | | [install\_security\_agent](#input\_install\_security\_agent) | Optional flag for installation of security agent (https://docs.cast.ai/product-overview/console/security-insights/) | `bool` | `false` | no | +| [install\_workload\_autoscaler](#input\_install\_workload\_autoscaler) | Optional flag for installation of workload autoscaler (https://docs.cast.ai/docs/workload-autoscaling-configuration) | `bool` | `false` | no | +| [kvisor\_controller\_extra\_args](#input\_kvisor\_controller\_extra\_args) | Extra arguments for the kvisor controller. Optionally enable kvisor to lint Kubernetes YAML manifests, scan workload images and check if workloads pass CIS Kubernetes Benchmarks as well as NSA, WASP and PCI recommendations. | `map(string)` |
{
"image-scan-enabled": "true",
"kube-bench-enabled": "true",
"kube-linter-enabled": "true"
}
| no | | [kvisor\_values](#input\_kvisor\_values) | List of YAML formatted string values for kvisor helm chart | `list(string)` | `[]` | no | | [kvisor\_version](#input\_kvisor\_version) | Version of kvisor chart. If not provided, latest version will be used. | `string` | `null` | no | -| [kvisor\_controller\_extra\_args](#input\_kvisor\_controller\_extra\_args) | Map of extra arguments for the kvisor controller | `map(string)` |`{`
`kube-linter-enabled = true`
`image-scan-enabled = true`
`kube-bench-enabled = true`
`}`| no | | [node\_configurations](#input\_node\_configurations) | Map of AKS node configurations to create | `any` | `{}` | no | | [node\_resource\_group](#input\_node\_resource\_group) | n/a | `string` | n/a | yes | | [node\_templates](#input\_node\_templates) | Map of node templates to create | `any` | `{}` | no | +| [pod\_pinner\_values](#input\_pod\_pinner\_values) | List of YAML formatted string values for agent helm chart | `list(string)` | `[]` | no | | [pod\_pinner\_version](#input\_pod\_pinner\_version) | Version of pod-pinner helm chart. Default latest | `string` | `null` | no | | [resource\_group](#input\_resource\_group) | n/a | `string` | n/a | yes | | [self\_managed](#input\_self\_managed) | Whether CAST AI components' upgrades are managed by a customer; by default upgrades are managed CAST AI central system. | `bool` | `false` | no | @@ -380,6 +384,8 @@ No modules. | [subscription\_id](#input\_subscription\_id) | Azure subscription ID | `string` | n/a | yes | | [tenant\_id](#input\_tenant\_id) | n/a | `string` | n/a | yes | | [wait\_for\_cluster\_ready](#input\_wait\_for\_cluster\_ready) | Wait for cluster to be ready before finishing the module execution, this option requires `castai_api_token` to be set | `bool` | `false` | no | +| [workload\_autoscaler\_values](#input\_workload\_autoscaler\_values) | List of YAML formatted string with cluster-workload-autoscaler values | `list(string)` | `[]` | no | +| [workload\_autoscaler\_version](#input\_workload\_autoscaler\_version) | Version of castai-workload-autoscaler helm chart. Default latest | `string` | `null` | no | ## Outputs diff --git a/main.tf b/main.tf index 36b6cdf..734e3ad 100644 --- a/main.tf +++ b/main.tf @@ -737,7 +737,7 @@ resource "helm_release" "castai_workload_autoscaler" { value = "castai-cluster-controller" } - depends_on = [helm_release.castai_agent] + depends_on = [helm_release.castai_agent, helm_release.castai_cluster_controller] lifecycle { ignore_changes = [version] @@ -768,7 +768,7 @@ resource "helm_release" "castai_workload_autoscaler_self_managed" { value = "castai-cluster-controller" } - depends_on = [helm_release.castai_agent, helm_release.castai_workload_autoscaler] + depends_on = [helm_release.castai_agent, helm_release.castai_cluster_controller] } resource "castai_autoscaler" "castai_autoscaler_policies" {