From 6d1c5b75b78a071666e78132eda36bb3bbba055c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 9 Oct 2019 21:35:36 +0200 Subject: [PATCH] fix yaml --- .../scaling/hello-world-go-concurrency.yml | 7 ++++-- functions/scaling/hello-world-go.yml | 3 +++ .../scaling/hello-world-py-concurrency.yml | 3 +++ functions/scaling/hello-world-py.yml | 5 ++++- functions/scaling/isprime-go-concurrency.yml | 3 +++ functions/scaling/isprime-go.yml | 3 +++ functions/scaling/isprime-py-concurrency.yml | 3 +++ functions/scaling/isprime-py.yml | 3 +++ functions/simple/helloworld-py.yml | 22 +++++++++---------- functions/simple/isprime-py.yml | 20 ++++++++--------- 10 files changed, 46 insertions(+), 26 deletions(-) diff --git a/functions/scaling/hello-world-go-concurrency.yml b/functions/scaling/hello-world-go-concurrency.yml index 19bf62f..abe1842 100644 --- a/functions/scaling/hello-world-go-concurrency.yml +++ b/functions/scaling/hello-world-go-concurrency.yml @@ -1,7 +1,7 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service metadata: - name: helloworld-go-sc-cc + name: helloworld-py-sc-cc namespace: default spec: template: @@ -18,4 +18,7 @@ spec: autoscaling.knative.dev/maxScale: "100" spec: containers: - - image: tormachris/hello-world-go + - image: tormachris/hello-world-py + env: + - name: TARGET + value: "Go" diff --git a/functions/scaling/hello-world-go.yml b/functions/scaling/hello-world-go.yml index 127defc..fd346a3 100644 --- a/functions/scaling/hello-world-go.yml +++ b/functions/scaling/hello-world-go.yml @@ -13,3 +13,6 @@ spec: spec: containers: - image: tormachris/hello-world-go + env: + - name: TARGET + value: "Go" diff --git a/functions/scaling/hello-world-py-concurrency.yml b/functions/scaling/hello-world-py-concurrency.yml index ab45be7..e77ef25 100644 --- a/functions/scaling/hello-world-py-concurrency.yml +++ b/functions/scaling/hello-world-py-concurrency.yml @@ -19,3 +19,6 @@ spec: spec: containers: - image: tormachris/hello-world-py + env: + - name: TARGET + value: "Py" diff --git a/functions/scaling/hello-world-py.yml b/functions/scaling/hello-world-py.yml index 011a42e..0c3bd38 100644 --- a/functions/scaling/hello-world-py.yml +++ b/functions/scaling/hello-world-py.yml @@ -1,7 +1,7 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service metadata: - name: hello-world-py-sc + name: helloworld-py-sc namespace: default spec: template: @@ -13,3 +13,6 @@ spec: spec: containers: - image: tormachris/hello-world-py + env: + - name: TARGET + value: "Go" diff --git a/functions/scaling/isprime-go-concurrency.yml b/functions/scaling/isprime-go-concurrency.yml index 2ffdce5..a7e1afc 100644 --- a/functions/scaling/isprime-go-concurrency.yml +++ b/functions/scaling/isprime-go-concurrency.yml @@ -19,3 +19,6 @@ spec: spec: containers: - image: tormachris/isprime-go + env: + - name: TARGET + value: 107107 diff --git a/functions/scaling/isprime-go.yml b/functions/scaling/isprime-go.yml index b169e01..02237e3 100644 --- a/functions/scaling/isprime-go.yml +++ b/functions/scaling/isprime-go.yml @@ -13,3 +13,6 @@ spec: spec: containers: - image: tormachris/isprime-go + env: + - name: TARGET + value: 107107 diff --git a/functions/scaling/isprime-py-concurrency.yml b/functions/scaling/isprime-py-concurrency.yml index b632e2a..aa0bae0 100644 --- a/functions/scaling/isprime-py-concurrency.yml +++ b/functions/scaling/isprime-py-concurrency.yml @@ -19,3 +19,6 @@ spec: spec: containers: - image: tormachris/isprime-py + env: + - name: TARGET + value: "Py" diff --git a/functions/scaling/isprime-py.yml b/functions/scaling/isprime-py.yml index 92a4cb3..c8cc760 100644 --- a/functions/scaling/isprime-py.yml +++ b/functions/scaling/isprime-py.yml @@ -13,3 +13,6 @@ spec: spec: containers: - image: tormachris/isprime-py + env: + - name: TARGET + value: "Py" diff --git a/functions/simple/helloworld-py.yml b/functions/simple/helloworld-py.yml index 175149f..0314fe8 100644 --- a/functions/simple/helloworld-py.yml +++ b/functions/simple/helloworld-py.yml @@ -1,15 +1,13 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service -metadata: - name: helloworld-python +metadata: + name: helloworld-py namespace: default -spec: - template: - spec: - containers: - - - env: - - - name: TARGET - image: "tormachris/hello-world-py" - value: "Python" +spec: + template: + spec: + containers: + - image: "tormachris/hello-world-py" + env: + - name: TARGET + value: "Py" diff --git a/functions/simple/isprime-py.yml b/functions/simple/isprime-py.yml index 260e15a..d4211cc 100644 --- a/functions/simple/isprime-py.yml +++ b/functions/simple/isprime-py.yml @@ -1,15 +1,13 @@ apiVersion: serving.knative.dev/v1alpha1 kind: Service -metadata: +metadata: name: isprime-py namespace: default -spec: - template: - spec: - containers: - - - env: - - - name: TARGET - image: "tormachris/isprime-py" - value: 107107 +spec: + template: + spec: + containers: + - image: "tormachris/isprime-py" + env: + - name: TARGET + value: 107107