Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
update yaml to add more scenarios
Browse files Browse the repository at this point in the history
Signed-off-by: Hongchao Deng <[email protected]>
  • Loading branch information
hongchaodeng committed Sep 28, 2020
1 parent 3d2f130 commit 97b69a0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/dependency/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
apiVersion: core.oam.dev/v1alpha2
kind: TraitDefinition
metadata:
name: foo.example.com
name: foos.example.com
spec:
definitionRef:
name: foo.example.com
40 changes: 29 additions & 11 deletions examples/dependency/demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ spec:
metadata:
name: source
# Uncomment the following and apply again will make dependency satisfied.
# status:
# key: test
status:
key:
- name: a
value: aa
- name: b
value: bb
key: test

# Uncommnet below to test append array
# status:
# key:
# - name: a
# value: aa
# - name: b
# value: bb
---
apiVersion: core.oam.dev/v1alpha2
kind: Component
Expand All @@ -28,10 +30,12 @@ spec:
kind: Foo
metadata:
name: sink
spec:
key:
- name: exist
value: existtt

# Uncommnet below to test append array
# spec:
# key:
# - name: exist
# value: existtt
---
apiVersion: core.oam.dev/v1alpha2
kind: ApplicationConfiguration
Expand All @@ -49,3 +53,17 @@ spec:
dataOutputName: example-key
toFieldPaths:
- "spec.key"

# Uncomment to test trait
# traits:
# - trait:
# apiVersion: example.com/v1
# kind: Foo
# metadata:
# name: source
# # Uncomment the following and apply again will make dependency satisfied.
# # status:
# # key: test
# dataOutputs:
# - name: example-key
# fieldPath: status.key

0 comments on commit 97b69a0

Please sign in to comment.