fix oauth secret creation for most apps

This commit is contained in:
Maarten de Waard 2022-09-28 16:45:34 +02:00
parent 5e5b8ce200
commit 903f11cf47
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA

View file

@ -63,6 +63,14 @@ class App(db.Model):
if self.variables_template_filepath: if self.variables_template_filepath:
k8s.create_variables_secret(self.slug, 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): def __create_kustomization(self):
"""Creates the `add-{app_slug}` kustomization in the Kubernetes cluster""" """Creates the `add-{app_slug}` kustomization in the Kubernetes cluster"""
kustomization_template_filepath = \ kustomization_template_filepath = \