From d7f2bdd9f7ccef0fe366ef2479b5d95a02b7213c Mon Sep 17 00:00:00 2001 From: Armin Schlegel Date: Tue, 29 Mar 2022 07:49:10 +0200 Subject: [PATCH] fix: fixed edge-worker runtime property --- cue/components/edge-worker.cue | 3 ++- manifests/vela-caps/components/edge-worker.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cue/components/edge-worker.cue b/cue/components/edge-worker.cue index ad25703..81102e4 100644 --- a/cue/components/edge-worker.cue +++ b/cue/components/edge-worker.cue @@ -113,7 +113,7 @@ template: { image: string // +usage=Specify runtimes that shall receive the application. If not specified, the application will be deployed on all runtimes. - runtime?: [...string] + runtime: [...string] // +usage=Specify image pull policy for your service imagePullPolicy?: string @@ -171,6 +171,7 @@ template: { readinessProbe?: #HealthProbe } + // Note: parameter.runtime MUST not be an optional property, otherwise the deployment will fail. #MatchExpressions: [ "node-role.kubernetes.io/edge", "node-role.kubernetes.io/agent", parameter.runtime ] #HealthProbe: { diff --git a/manifests/vela-caps/components/edge-worker.yaml b/manifests/vela-caps/components/edge-worker.yaml index 31cdb3e..0257626 100644 --- a/manifests/vela-caps/components/edge-worker.yaml +++ b/manifests/vela-caps/components/edge-worker.yaml @@ -106,7 +106,7 @@ spec: image: string // +usage=Specify runtimes that shall receive the application. If not specified, the application will be deployed on all runtimes. - runtime?: [...string] + runtime: [...string] // +usage=Specify image pull policy for your service imagePullPolicy?: string @@ -162,6 +162,7 @@ spec: // +usage=Instructions for assessing whether the container is in a suitable state to serve traffic. readinessProbe?: #HealthProbe } + // Note: parameter.runtime MUST not be an optional property, otherwise the deployment will fail. #MatchExpressions: [ "node-role.kubernetes.io/edge", "node-role.kubernetes.io/agent", parameter.runtime] #HealthProbe: {