fix oauth secret creation for most apps
This commit is contained in:
parent
5e5b8ce200
commit
903f11cf47
1 changed files with 8 additions and 0 deletions
|
@ -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 = \
|
||||||
|
|
Loading…
Reference in a new issue