Skip to content

Commit

Permalink
Revert "feat: Add pod-pinner to CAST AI onboarding"
Browse files Browse the repository at this point in the history
This reverts commit d22cb0c.
  • Loading branch information
Andrej Kislovskij committed Dec 7, 2023
1 parent d22cb0c commit b612980
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 61 deletions.
55 changes: 0 additions & 55 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -244,61 +244,6 @@ resource "null_resource" "wait_for_cluster" {
}
}

resource "helm_release" "castai_pod_pinner" {
name = "castai-pod-pinner"
repository = "https://castai.github.io/helm-charts"
chart = "castai-pod-pinner"
namespace = "castai-agent"
create_namespace = true
cleanup_on_fail = true
wait = true

set {
name = "castai.clusterID"
value = castai_aks_cluster.castai_cluster.id
}

dynamic "set" {
for_each = var.api_url != "" ? [var.api_url] : []
content {
name = "castai.apiURL"
value = var.api_url
}
}

set_sensitive {
name = "castai.apiKey"
value = castai_aks_cluster.castai_cluster.cluster_token
}

dynamic "set" {
for_each = var.grpc_url != "" ? [var.grpc_url] : []
content {
name = "castai.grpcURL"
value = var.grpc_url
}
}

dynamic "set" {
for_each = var.castai_components_labels
content {
name = "podLabels.${set.key}"
value = set.value
}
}

set {
name = "replicaCount"
value = "0"
}

depends_on = [helm_release.castai_agent]

lifecycle {
ignore_changes = [set, version]
}
}

resource "helm_release" "castai_spot_handler" {
name = "castai-spot-handler"
repository = "https://castai.github.io/helm-charts"
Expand Down
6 changes: 0 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ variable "castai_api_token" {
default = ""
}

variable "grpc_url" {
type = string
description = "gRPC endpoint used by pod-pinner"
default = "grpc.cast.ai:443"
}

variable "aks_cluster_name" {
type = string
description = "Name of the cluster to be connected to CAST AI."
Expand Down

0 comments on commit b612980

Please sign in to comment.