Skip to content

Commit 0b53ae6

Browse files
authored
Merge pull request #8 from commitdev/create-namespace-before-secrets
Create the namespace before creating secrets
2 parents 910d5bc + 3968886 commit 0b53ae6

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ workflows:
236236
config-environment: "staging"
237237
cluster-authentication-role-arn: "${AWS_CLUSTER_AUTH_ROLE_ARN_STAGING}"
238238
region: "${AWS_REGION}"
239-
namespace: "${AWS_ECR_REPO_NAME}"
239+
namespace: "<% .Name %>"
240240
tag: "${VERSION_TAG}"
241241
requires:
242242
- build_and_push
@@ -258,7 +258,7 @@ workflows:
258258
config-environment: "production"
259259
cluster-authentication-role-arn: "${AWS_CLUSTER_AUTH_ROLE_ARN_PRODUCTION}"
260260
region: "${AWS_REGION}"
261-
namespace: "${AWS_ECR_REPO_NAME}"
261+
namespace: "<% .Name %>"
262262
tag: "${VERSION_TAG}"
263263
requires:
264264
- queue/block_workflow

kubernetes/secrets/kustomization.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
3+
namespace: <% .Name %>
4+
5+
resources:
6+
- namespace.yml
7+
38
secretGenerator:
49
- name: <% .Name %>
510
env: secrets.env

kubernetes/secrets/namespace.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: <% .Name %>

0 commit comments

Comments
 (0)