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