Skip to content

Commit

Permalink
env netbird fix (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
sijo5722-2021 authored Sep 26, 2024
1 parent d59f9dc commit b819948
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ spec:
- key: managed_svc_enabled
value: "${ARGOCD_ENV_managed_svc_enabled}"
- key: "k8s_cluster_type"
value: "${ARGOCD_ENV_k8s_cluster_type}"
value: "${ARGOCD_ENV_k8s_cluster_type}"
- key: cc_cluster_name
value: ${ARGOCD_ENV_cluster_name}

# All Terraform outputs are written to the connection secret.
providerConfigRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data "netbird_groups" "all" {
locals {
cc_user_group_id = [for group in data.netbird_groups.all.groups : group.id if strcontains(group.name, "${local.netbird_project_id}:${var.netbird_user_rbac_group}")][0]
env_k8s_peers_group_id = [for group in data.netbird_groups.all.groups : group.id if strcontains(group.name, "${var.env_name}-k8s-peers")][0]
cc_gw_group_id = [for group in data.netbird_groups.all.groups : group.id if strcontains(group.name, "cntrlcntr-gateway")][0]
cc_gw_group_id = [for group in data.netbird_groups.all.groups : group.id if strcontains(group.name, "${var.cc_cluster_name}-gateway")][0]
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ variable "managed_svc_enabled" {
variable "k8s_cluster_type" {
type = string
description = "k8s distribution if its eks/microk8s"
}
}

variable "cc_cluster_name" {
description = "control center cluster name"
}

0 comments on commit b819948

Please sign in to comment.