Skip to content

chore: fine tune bootstrap #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions bootstrap/crds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ resource "kubernetes_manifest" "customresourcedefinition_ogmiosports_demeter_run
"spec" = {
"group" = "demeter.run"
"names" = {
"categories" = []
"categories" = [
"demeter-port",
]
"kind" = "OgmiosPort"
"plural" = "ogmiosports"
"shortNames" = []
"shortNames" = [
"opt",
]
"singular" = "ogmiosport"
}
"scope" = "Namespaced"
Expand Down Expand Up @@ -43,6 +47,11 @@ resource "kubernetes_manifest" "customresourcedefinition_ogmiosports_demeter_run
"name" = "Auth Token"
"type" = "string"
},
{
"jsonPath" = ".spec.throughputTier"
"name" = "Throughput Tier"
"type" = "string"
},
]
"name" = "v1alpha1"
"schema" = {
Expand All @@ -60,6 +69,9 @@ resource "kubernetes_manifest" "customresourcedefinition_ogmiosports_demeter_run
]
"type" = "string"
}
"throughputTier" = {
"type" = "string"
}
"version" = {
"format" = "uint8"
"minimum" = 0
Expand All @@ -68,6 +80,7 @@ resource "kubernetes_manifest" "customresourcedefinition_ogmiosports_demeter_run
}
"required" = [
"network",
"throughputTier",
"version",
]
"type" = "object"
Expand Down
6 changes: 4 additions & 2 deletions bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ module "ogmios_v1_feature" {
source = "./feature"
namespace = var.namespace
operator_image_tag = var.operator_image_tag
metrics_delay = 60
metrics_delay = var.metrics_delay
extension_name = var.extension_name
api_key_salt = var.api_key_salt
}

module "ogmios_v1_proxy" {
depends_on = [kubernetes_namespace.namespace]
source = "./proxy"
namespace = var.namespace
replicas = 1
replicas = var.proxy_replicas
proxy_image_tag = var.proxy_image_tag
extension_name = var.extension_name
}
Expand Down Expand Up @@ -54,6 +55,7 @@ module "ogmios_instances" {
node_private_dns = each.value.node_private_dns
ogmios_version = each.value.ogmios_version
compute_arch = each.value.compute_arch
replicas = each.value.replicas
}

module "ogmios_services" {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/proxy/monitor.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "kubernetes_manifest" "operator_monitor" {
podMetricsEndpoints = [
{
port = "metrics",
path = "/"
path = "/metrics"
}
]
}
Expand Down
1 change: 1 addition & 0 deletions bootstrap/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,6 @@ variable "instances" {
node_private_dns = string
ogmios_version = string
compute_arch = string
replicas = number
}))
}