Skip to content

Commit

Permalink
feat(kupo): update kupo for extra annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Ales Verbic <[email protected]>
  • Loading branch information
verbotenj committed Feb 23, 2025
1 parent a1fb513 commit 45ce098
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
8 changes: 8 additions & 0 deletions stage3/env.auto.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
# enable_cardano_ogmios = false
# enable_cardano_kupo = false
# enable_cardano_utxorpc = false
# kupo_proxy_blue_extra_annotations = {
# "external-dns.alpha.kubernetes.io/cloudflare-proxied" = "true"
# "external-dns.alpha.kubernetes.io/hostname" = "proxy-blue.kupo.dmtr.host"
# }
# kupo_proxy_green_extra_annotations = {
# "external-dns.alpha.kubernetes.io/cloudflare-proxied" = "true"
# "external-dns.alpha.kubernetes.io/hostname" = "proxy-green.kupo.dmtr.host"
# }
23 changes: 13 additions & 10 deletions stage3/kupo.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ module "ext_cardano_kupo_crds" {
}

module "ext_cardano_kupo" {
source = "git::https://github.com/demeter-run/ext-cardano-kupo.git//bootstrap"
# source = "git::https://github.com/demeter-run/ext-cardano-kupo.git//bootstrap"
source = "git::https://github.com/blinklabs-io/demeter-ext-cardano-kupo.git//bootstrap?ref=feat/add-extra-annotations"
for_each = toset([for n in toset(["v1"]) : n if var.enable_cardano_kupo])
namespace = "ftr-kupo-${each.key}"
cloud_provider = var.cloud_provider
Expand All @@ -52,15 +53,17 @@ module "ext_cardano_kupo" {
# per_min_dcus = local.kupo_v1_per_min_dcus
# per_request_dcus = local.kupo_v1_per_request_dcus
# track_dcu_usage = local.kupo_v1_track_dcu_usage
api_key_salt = local.kupo_v1_api_key_salt
ingress_class = local.kupo_v1_ingress_class
extension_subdomain = local.kupo_v1_extension_subdomain
dns_zone = local.kupo_v1_dns_zone
proxy_green_image_tag = local.kupo_v1_proxy_green_image_tag
proxy_green_replicas = local.kupo_v1_proxy_green_replicas
proxy_blue_image_tag = local.kupo_v1_proxy_blue_image_tag
proxy_blue_replicas = local.kupo_v1_proxy_blue_replicas
proxy_resources = local.kupo_v1_proxy_resources
api_key_salt = local.kupo_v1_api_key_salt
ingress_class = local.kupo_v1_ingress_class
extension_subdomain = local.kupo_v1_extension_subdomain
dns_zone = local.kupo_v1_dns_zone
proxy_green_extra_annotations = var.kupo_proxy_green_extra_annotations
proxy_green_image_tag = local.kupo_v1_proxy_green_image_tag
proxy_green_replicas = local.kupo_v1_proxy_green_replicas
proxy_blue_extra_annotations = var.kupo_proxy_blue_extra_annotations
proxy_blue_image_tag = local.kupo_v1_proxy_blue_image_tag
proxy_blue_replicas = local.kupo_v1_proxy_blue_replicas
proxy_resources = local.kupo_v1_proxy_resources
cells = {
"cell1" = {
pvc = {
Expand Down
12 changes: 12 additions & 0 deletions stage3/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ variable "enable_cardano_kupo" {
default = false
}

variable "kupo_proxy_blue_extra_annotations" {
description = "Extra annotations for the proxy blue service"
type = map(string)
default = {}
}

variable "kupo_proxy_green_extra_annotations" {
description = "Extra annotations for the proxy green service"
type = map(string)
default = {}
}

variable "kupo_v1_api_key_salt" {
description = "shared salt used for generating API keys"
default = ""
Expand Down

0 comments on commit 45ce098

Please sign in to comment.