Skip to content

Commit 4de9912

Browse files
Add a dedicated parameter to specify OMNI agent helm chart version (#15)
1 parent 82fdcb7 commit 4de9912

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ provider "castai" {
414414
| service_cidr | Service CIDR for network configuration | `string` | - | yes |
415415
| reserved_subnet_cidrs | List of reserved subnet CIDRs | `list(string)` | `[]` | no |
416416
| api_url | CAST AI API URL | `string` | `"https://api.cast.ai"` | no |
417+
| omni_agent_chart_version | OMNI agent Helm chart version | `string` | `"v1.1.4"` | no |
417418
| skip_helm | Skip installing Helm charts (for GitOps workflows) | `bool` | `false` | no |
418419

419420
## Outputs
@@ -556,6 +557,7 @@ MIT
556557
| <a name="input_cluster_region"></a> [cluster\_region](#input\_cluster\_region) | K8s cluster region | `string` | n/a | yes |
557558
| <a name="input_cluster_zone"></a> [cluster\_zone](#input\_cluster\_zone) | K8s cluster zone | `string` | `""` | no |
558559
| <a name="input_k8s_provider"></a> [k8s\_provider](#input\_k8s\_provider) | Kubernetes cloud provider (gke, eks, aks) | `string` | n/a | yes |
560+
| <a name="input_omni_agent_chart_version"></a> [omni\_agent\_chart\_version](#input\_omni\_agent\_chart\_version) | OMNI agent helm chart version | `string` | `"v1.1.4"` | no |
559561
| <a name="input_organization_id"></a> [organization\_id](#input\_organization\_id) | CAST AI organization ID | `string` | n/a | yes |
560562
| <a name="input_pod_cidr"></a> [pod\_cidr](#input\_pod\_cidr) | Pod CIDR for network configuration | `string` | n/a | yes |
561563
| <a name="input_reserved_subnet_cidrs"></a> [reserved\_subnet\_cidrs](#input\_reserved\_subnet\_cidrs) | List of reserved subnet CIDR's (relevant for GKE) | `list(string)` | `[]` | no |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ resource "helm_release" "omni_agent" {
120120
name = local.omni_agent_release
121121
repository = local.castai_helm_repository
122122
chart = local.omni_agent_chart
123+
version = var.omni_agent_chart_version
123124
namespace = local.omni_namespace
124125
create_namespace = false
125126
cleanup_on_fail = true

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ variable "reserved_subnet_cidrs" {
6666
default = []
6767
}
6868

69+
variable "omni_agent_chart_version" {
70+
description = "OMNI agent helm chart version"
71+
type = string
72+
default = "v1.1.4"
73+
}
74+
6975
variable "skip_helm" {
7076
description = "Skip installing any helm release; allows managing helm releases using GitOps"
7177
type = bool

0 commit comments

Comments
 (0)