diff --git a/src/nebari_plugin_self_registration/__init__.py b/src/nebari_plugin_self_registration/__init__.py index dd8bcf5..4686f60 100644 --- a/src/nebari_plugin_self_registration/__init__.py +++ b/src/nebari_plugin_self_registration/__init__.py @@ -34,6 +34,7 @@ class SelfRegistrationConfig(Base): approved_domains: Optional[List[str]] = [] coupons: Optional[List[str]] = [] registration_group: Optional[str] = "" + registration_message: Optional[str] = "" affinity: SelfRegistrationAffinityConfig = SelfRegistrationAffinityConfig() @@ -147,6 +148,7 @@ def input_vars(self, stage_outputs: Dict[str, Dict[str, Any]]): "approved_domains": self.config.self_registration.approved_domains, "coupons": self.config.self_registration.coupons, "registration_group": self.config.self_registration.registration_group, + "registration_message": self.config.self_registration.registration_message, "project_name": self.config.escaped_project_name, "realm_id": keycloak_config["realm_id"], "client_id": CLIENT_NAME, diff --git a/src/nebari_plugin_self_registration/terraform/main.tf b/src/nebari_plugin_self_registration/terraform/main.tf index 5658eaf..834a133 100644 --- a/src/nebari_plugin_self_registration/terraform/main.tf +++ b/src/nebari_plugin_self_registration/terraform/main.tf @@ -21,6 +21,7 @@ module "self-registration" { ingress_host = var.ingress_host self_registration_sa_name = local.self_registration_sa_name registration_group = var.registration_group + registration_message = var.registration_message namespace = var.namespace keycloak_base_url = var.external_url keycloak_config = module.keycloak.config diff --git a/src/nebari_plugin_self_registration/terraform/modules/self-registration/main.tf b/src/nebari_plugin_self_registration/terraform/modules/self-registration/main.tf index 8bb71a0..31e384d 100644 --- a/src/nebari_plugin_self_registration/terraform/modules/self-registration/main.tf +++ b/src/nebari_plugin_self_registration/terraform/modules/self-registration/main.tf @@ -79,6 +79,7 @@ resource "helm_release" "self_registration" { approved_domains = var.approved_domains account_expiration_days = var.account_expiration_days registration_group = var.registration_group + registration_message = var.registration_message keycloak = { server_url = var.keycloak_base_url realm_name = var.realm_id diff --git a/src/nebari_plugin_self_registration/terraform/modules/self-registration/variables.tf b/src/nebari_plugin_self_registration/terraform/modules/self-registration/variables.tf index e9ec6cd..02a7905 100644 --- a/src/nebari_plugin_self_registration/terraform/modules/self-registration/variables.tf +++ b/src/nebari_plugin_self_registration/terraform/modules/self-registration/variables.tf @@ -51,6 +51,12 @@ variable "registration_group" { type = string } +variable "registration_message" { + description = "Custom message to display to registering users" + type = string + default = "" +} + variable "self_registration_sa_name" { description = "Name of K8S service account for Self Registration app workloads" type = string diff --git a/src/nebari_plugin_self_registration/terraform/variables.tf b/src/nebari_plugin_self_registration/terraform/variables.tf index 65155b7..a4b7a79 100644 --- a/src/nebari_plugin_self_registration/terraform/variables.tf +++ b/src/nebari_plugin_self_registration/terraform/variables.tf @@ -74,6 +74,12 @@ variable "registration_group" { default = "" } +variable "registration_message" { + description = "Custom message to display to registering users" + type = string + default = "" +} + variable "affinity" { type = object({ enabled = optional(bool, true)