From 903f11cf477448d66cfc4895037bc859d9101791 Mon Sep 17 00:00:00 2001 From: Maarten de Waard Date: Wed, 28 Sep 2022 16:45:34 +0200 Subject: [PATCH] fix oauth secret creation for most apps --- areas/apps/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/areas/apps/models.py b/areas/apps/models.py index abc3448..fd12c6e 100644 --- a/areas/apps/models.py +++ b/areas/apps/models.py @@ -63,6 +63,14 @@ class App(db.Model): if self.variables_template_filepath: k8s.create_variables_secret(self.slug, self.variables_template_filepath) + k8s.create_variables_secret( + self.slug, + os.path.join( + self.__get_templates_dir(), + "stackspin-oauth-variables.yaml.jinja" + ) + ) + def __create_kustomization(self): """Creates the `add-{app_slug}` kustomization in the Kubernetes cluster""" kustomization_template_filepath = \