Skip to content

Commit

Permalink
Create 'lma' namespace before deploy 'lma' apps.
Browse files Browse the repository at this point in the history
because 'lma' namespace must exist before deploy 'lma' apps.
  • Loading branch information
Jaesang committed Sep 27, 2021
1 parent 7bcaf35 commit 5671c9e
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 @@ -16,6 +16,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 5671c9e

Please sign in to comment.