# SPDX-License-Identifier: GPL-2.0-only ## Providers variable "kubeconfig_path" { default = "~/.kube/config" description = "Path to the kubeconfig file" type = string nullable = false } variable "kubeconfig_context" { default = "default" description = "Context to use to access the cluster" type = string nullable = false } ## Application variable "app_name" { default = "invidious" description = "Application name, used by various resources such as deployment, ingress, container, ..." type = string nullable = false validation { condition = length(regexall("[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*", var.app_name)) > 0 error_message = "Invalid value for 'app_name', must respect RFC 1123" } } variable "app_configuration" { default = { INVIDIOUS_CONFIG = < 0 error_message = "Invalid value for 'service_account_name', must respect RFC 1123" } } variable "service_account_additional_annotations" { default = {} description = "Additional annotations for the app's service account" type = map(any) } variable "service_account_labels" { default = {} description = "Labels for the service account used by the app" type = map(any) }