Skip to content

Commit e7a47ab

Browse files
Enable Omni in mothership after agent is installed (#10)
1 parent 19e2fa7 commit e7a47ab

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

main.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,6 @@ data "external" "liqo_external_cidr" {
127127
depends_on = [null_resource.wait_for_liqo_network]
128128
}
129129

130-
# Enabling CAST AI Omni functionality for a given cluster
131-
resource "castai_omni_cluster" "this" {
132-
cluster_id = var.cluster_id
133-
organization_id = var.organization_id
134-
135-
depends_on = [null_resource.wait_for_liqo_network]
136-
}
137-
138130
# CAST AI Omni Agent Helm Release
139131
resource "helm_release" "omni_agent" {
140132
name = local.omni_agent_release
@@ -179,5 +171,13 @@ resource "helm_release" "omni_agent" {
179171
}
180172
]
181173

182-
depends_on = [castai_omni_cluster.this]
174+
depends_on = [null_resource.wait_for_liqo_network]
175+
}
176+
177+
# Enabling CAST AI Omni functionality for a given cluster
178+
resource "castai_omni_cluster" "this" {
179+
cluster_id = var.cluster_id
180+
organization_id = var.organization_id
181+
182+
depends_on = [helm_release.omni_agent]
183183
}

0 commit comments

Comments
 (0)