Skip to content

Commit

Permalink
update test examples per changes related to 'RegisterObj' task
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitsh committed May 16, 2024
1 parent 7de87db commit 6053fb7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion resources/templates/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: example.com/v1
kind: MyObject
metadata:
name: "{{._NAME_}}"
namespace: test
namespace: {{or .namespace "default"}}
spec:
runPolicy:
coScheduling: null
Expand All @@ -16,6 +16,7 @@ spec:
obj-name: test
instance: {{.instance}}
spec:
replicas: {{.replicas}}
containers:
- name: test
args:
Expand Down
20 changes: 12 additions & 8 deletions resources/tests/test-custom-resource.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: test-custom-resource
description: submit custom resource
tasks:
- id: register
type: RegisterObj
params:
template: "resources/templates/example.yml"
nameFormat: "job{{._ENUM_}}"
podNameFormat: "{{._NAME_}}-[0-9]+"
podCount: "{{.replicas}}"
- id: job
type: SubmitObj
params:
count: 1
grv:
group: example.com
version: v1
resource: myobjects
template: "resources/templates/example.yml"
overrides:
name: 1
refTaskId: register
count: 4
params:
namespace: test
replicas: 2
instance: lnx2000
command: "sleep infinity"
image: ubuntu
Expand Down

0 comments on commit 6053fb7

Please sign in to comment.