Use salt pillars to pass test arguments during cluster creation.

This commit is contained in:
gmarek
2015-05-26 10:43:48 +02:00
parent b0d31fb794
commit 5bb7eec5ab
8 changed files with 99 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
{% set params = "{{pillar['log_level']}}" -%}
# test_args has to be kept at the end, so they'll overwrite any prior configuration
{% if pillar['scheduler_test_args'] is defined -%}
{% set params = params + " " + pillar['scheduler_test_args'] -%}
{% endif -%}
{
"apiVersion": "v1",
"kind": "Pod",
@@ -16,7 +23,7 @@
"command": [
"/bin/sh",
"-c",
"/usr/local/bin/kube-scheduler --master=127.0.0.1:8080 {{pillar['log_level']}} 1>>/var/log/kube-scheduler.log 2>&1"
"/usr/local/bin/kube-scheduler --master=127.0.0.1:8080 {{params}} 1>>/var/log/kube-scheduler.log 2>&1"
],
"livenessProbe": {
"httpGet": {