From 29f800d936bf17b0e3ed3a1e47882705c3ae8f39 Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 14 Dec 2023 09:54:21 +0100 Subject: [PATCH] apps(discordbot-2b): Move stackgres script to separate file --- apps/discordbot-2b/app.yaml | 1 + apps/discordbot-2b/app/stackgres-scripts.yaml | 12 ++++++++++++ apps/discordbot-2b/app/stackgres.yaml | 13 ------------- 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 apps/discordbot-2b/app/stackgres-scripts.yaml diff --git a/apps/discordbot-2b/app.yaml b/apps/discordbot-2b/app.yaml index fb41c42..39a6b01 100644 --- a/apps/discordbot-2b/app.yaml +++ b/apps/discordbot-2b/app.yaml @@ -6,5 +6,6 @@ metadata: resources: - app/namespace.yaml - app/sealedsecret.yaml + - app/stackgres-scripts.yaml - app/stackgres.yaml - app/deploy.yaml diff --git a/apps/discordbot-2b/app/stackgres-scripts.yaml b/apps/discordbot-2b/app/stackgres-scripts.yaml new file mode 100644 index 0000000..ff0b8f9 --- /dev/null +++ b/apps/discordbot-2b/app/stackgres-scripts.yaml @@ -0,0 +1,12 @@ +apiVersion: stackgres.io/v1 +kind: SGScript +metadata: + namespace: discordbot-2b + name: cluster-scripts +spec: + scripts: + - name: init + scriptFrom: + secretKeyRef: + name: 2b-secret + key: init.sql diff --git a/apps/discordbot-2b/app/stackgres.yaml b/apps/discordbot-2b/app/stackgres.yaml index 2b68fc9..43a5f4c 100644 --- a/apps/discordbot-2b/app/stackgres.yaml +++ b/apps/discordbot-2b/app/stackgres.yaml @@ -1,17 +1,4 @@ apiVersion: stackgres.io/v1 -kind: SGScript -metadata: - namespace: discordbot-2b - name: cluster-scripts -spec: - scripts: - - name: init - scriptFrom: - secretKeyRef: - name: 2b-secret - key: init.sql ---- -apiVersion: stackgres.io/v1 kind: SGCluster metadata: namespace: discordbot-2b