Skip to content

Commit 6bba330

Browse files
authored
add a production version of the app that will deploy (#100)
* add a production version of the app that will deploy on v0.x.x tags * update linting
1 parent 739526c commit 6bba330

30 files changed

+271
-5
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
GREEN='\033[0;32m'
3030
NC='\033[0m'
3131
32-
for f in overlays/*; do
32+
for f in overlays/*/*; do
3333
echo 'Building ' $f
3434
tfile=$(mktemp)
3535
kustomize build -o $tfile $f

applications/development.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
server: https://kubernetes.default.svc
1818
project: default
1919
source:
20-
path: overlays/development
20+
path: overlays/development/spi
2121
repoURL: [email protected]:solarperformanceinsight/spi-deploy.git
2222
targetRevision: HEAD
2323
syncPolicy:
@@ -36,7 +36,7 @@ spec:
3636
server: https://kubernetes.default.svc
3737
project: default
3838
source:
39-
path: overlays/mysql
39+
path: overlays/development/mysql
4040
repoURL: [email protected]:solarperformanceinsight/spi-deploy.git
4141
targetRevision: HEAD
4242
syncPolicy:
@@ -55,7 +55,7 @@ spec:
5555
server: https://kubernetes.default.svc
5656
project: default
5757
source:
58-
path: overlays/redis
58+
path: overlays/development/redis
5959
repoURL: [email protected]:solarperformanceinsight/spi-deploy.git
6060
targetRevision: HEAD
6161
syncPolicy:

applications/production.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: production
5+
labels:
6+
name: production
7+
require-tls: 'spi'
8+
---
9+
apiVersion: argoproj.io/v1alpha1
10+
kind: Application
11+
metadata:
12+
name: production
13+
namespace: argocd
14+
spec:
15+
destination:
16+
namespace: production
17+
server: https://kubernetes.default.svc
18+
project: default
19+
source:
20+
path: overlays/production/spi
21+
repoURL: [email protected]:solarperformanceinsight/spi-deploy.git
22+
targetRevision: v0
23+
syncPolicy:
24+
automated:
25+
prune: true
26+
selfHeal: true
27+
---
28+
apiVersion: argoproj.io/v1alpha1
29+
kind: Application
30+
metadata:
31+
name: mysql
32+
namespace: argocd
33+
spec:
34+
destination:
35+
namespace: production
36+
server: https://kubernetes.default.svc
37+
project: default
38+
source:
39+
path: overlays/production/mysql
40+
repoURL: [email protected]:solarperformanceinsight/spi-deploy.git
41+
targetRevision: v0
42+
syncPolicy:
43+
automated:
44+
prune: true
45+
selfHeal: true
46+
---
47+
apiVersion: argoproj.io/v1alpha1
48+
kind: Application
49+
metadata:
50+
name: redis
51+
namespace: argocd
52+
spec:
53+
destination:
54+
namespace: production
55+
server: https://kubernetes.default.svc
56+
project: default
57+
source:
58+
path: overlays/production/redis
59+
repoURL: [email protected]:solarperformanceinsight/spi-deploy.git
60+
targetRevision: v0
61+
syncPolicy:
62+
automated:
63+
prune: true
64+
selfHeal: true
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)