summaryrefslogtreecommitdiffstats
path: root/setup/projects/adei/templates/60-adei.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'setup/projects/adei/templates/60-adei.yml.j2')
-rw-r--r--setup/projects/adei/templates/60-adei.yml.j222
1 files changed, 19 insertions, 3 deletions
diff --git a/setup/projects/adei/templates/60-adei.yml.j2 b/setup/projects/adei/templates/60-adei.yml.j2
index 41840e4..1bff206 100644
--- a/setup/projects/adei/templates/60-adei.yml.j2
+++ b/setup/projects/adei/templates/60-adei.yml.j2
@@ -32,6 +32,10 @@ objects:
kind: Service
metadata:
name: "{{ cfg.name }}"
+ labels:
+ adei-type: "{{ pod_type }}"
+ adei-name: "{{ name }}"
+ adei-setup: "${setup}"
spec:
selector:
name: "{{ cfg.name }}"
@@ -43,6 +47,10 @@ objects:
kind: Route
metadata:
name: "{{ cfg.name }}"
+ labels:
+ adei-type: "{{ pod_type }}"
+ adei-name: "{{ name }}"
+ adei-setup: "${setup}"
spec:
host: "{{ cfg.node }}"
to:
@@ -59,11 +67,15 @@ objects:
kind: CronJob
metadata:
name: "{{ cfg.name }}"
+ labels:
+ adei-type: "{{ pod_type }}"
+ adei-name: "{{ name }}"
+ adei-setup: "${setup}"
spec:
schedule: "{{ cfg.cron }}"
concurrencyPolicy: "Forbid"
- successfulJobsHistoryLimit: "2"
- failedJobsHistoryLimit: "2"
+ successfulJobsHistoryLimit: "{{ adei_pod_history_limit }}"
+ failedJobsHistoryLimit: "{{ adei_pod_history_limit }}"
jobTemplate:
spec:
completions: "1"
@@ -78,9 +90,13 @@ objects:
kind: DeploymentConfig
metadata:
name: "{{ cfg.name }}"
+ labels:
+ adei-type: "{{ pod_type }}"
+ adei-name: "{{ name }}"
+ adei-setup: "${setup}"
spec:
replicas: "{{ cfg.replicas }}"
- revisionHistoryLimit: 2
+ revisionHistoryLimit: "{{ adei_pod_history_limit }}"
selector:
name: "{{ cfg.name }}"
strategy: