Skip to content

Commit

Permalink
feat: Support license as a secretKeyRef
Browse files Browse the repository at this point in the history
  • Loading branch information
amanpruthi committed Sep 17, 2024
1 parent 11076f4 commit 02995e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,12 @@ module "wandb" {
spec = {
values = {
global = {
host = local.url
license = var.license
host = local.url
license = var.license
licenseSecret = {
name = var.license_secret_name, ## this will support wandb-operator chart version 0.17.9
key = var.license_secret_key_name
}
cloudProvider = "aws"
extraEnv = var.other_wandb_env

Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -516,3 +516,15 @@ variable "clickhouse_endpoint_service_id" {
description = "The service ID of the VPC endpoint service for Clickhouse"
default = ""
}

variable "license_secret_name" {
type = string
description = "Wandb licence secret name"
default = ""
}

variable "license_secret_key_name" {
type = string
description = "Wandb licence secret key name"
default = ""
}

0 comments on commit 02995e6

Please sign in to comment.