Skip to content

Commit

Permalink
fix: fixed edge-worker runtime property
Browse files Browse the repository at this point in the history
  • Loading branch information
siredmar committed Mar 29, 2022
1 parent 32b6218 commit d7f2bdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cue/components/edge-worker.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: {
Expand Down
3 changes: 2 additions & 1 deletion manifests/vela-caps/components/edge-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit d7f2bdd

Please sign in to comment.