From 4a19377725deed8bec9894f75adc935891fb991f Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Sun, 22 Sep 2024 15:10:45 -0400 Subject: [PATCH] add blobstore templates --- templates/blob/service.yaml | 17 +++++++++++++++++ templates/blob/stack.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 templates/blob/service.yaml create mode 100644 templates/blob/stack.yaml diff --git a/templates/blob/service.yaml b/templates/blob/service.yaml new file mode 100644 index 0000000..b2c5046 --- /dev/null +++ b/templates/blob/service.yaml @@ -0,0 +1,17 @@ +apiVersion: deployments.plural.sh/v1alpha1 +kind: ServiceDeployment +metadata: + name: blobstores + namespace: infra +spec: + namespace: infra + git: + folder: services/blobstores + ref: main + repositoryRef: + kind: GitRepository + name: infra + namespace: infra + clusterRef: + name: mgmt + namespace: infra \ No newline at end of file diff --git a/templates/blob/stack.yaml b/templates/blob/stack.yaml new file mode 100644 index 0000000..ebf8a30 --- /dev/null +++ b/templates/blob/stack.yaml @@ -0,0 +1,25 @@ +apiVersion: deployments.plural.sh/v1alpha1 +kind: InfrastructureStack +metadata: + name: blobstore-{{ context.name }} +spec: + name: blobstore-{{ context.name }} + detach: false + type: TERRAFORM + approval: true + manageState: true + actor: console@plural.sh + configuration: + version: '1.8' + repositoryRef: + name: infra + namespace: infra + clusterRef: + name: mgmt + namespace: infra + git: + ref: main + folder: terraform/modules/blob/{{ context.type }} + variables: + region: {{ context.region }} + bucket_name: {{ context.name }} \ No newline at end of file