Skip to content

Commit

Permalink
Merge pull request #53 from Jaesang/add-namespace
Browse files Browse the repository at this point in the history
Create 'lma' namespace before deploy 'lma' apps.
  • Loading branch information
seungkyua authored Sep 27, 2021
2 parents ab83bf4 + 5671c9e commit f60c168
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion templates/decapod-apps/lma-uniformed-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: lma-federation
namespace: argo
spec:
entrypoint: deploy
entrypoint: prepare
arguments:
parameters:
- name: site_name
Expand All @@ -18,6 +18,37 @@ spec:
- name: revision
value: main
templates:
- name: prepare
inputs: {}
outputs: {}
metadata: {}
steps:
- - name: configuration
template: configuration
arguments: {}
- - name: deploy
template: deploy
arguments: {}
- name: configuration
inputs: {}
outputs: {}
metadata: {}
container:
name: config
image: 'k8s.gcr.io/hyperkube:v1.18.8'
command:
- /bin/bash
- '-c'
- |
kubectl get ns lma
if [[ $? != 0 ]]; then
kubectl create ns lma
kubectl label ns lma name=lma
kubectl label ns lma taco-tls=enabled
fi
resources: {}
imagePullPolicy: IfNotPresent
activeDeadlineSeconds: 120
- name: deploy
dag:
tasks:
Expand Down

0 comments on commit f60c168

Please sign in to comment.