diff --git a/examples/dependency/definition.yaml b/examples/dependency/definition.yaml index acf5fc47..3bc3e0c5 100644 --- a/examples/dependency/definition.yaml +++ b/examples/dependency/definition.yaml @@ -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 diff --git a/examples/dependency/demo.yaml b/examples/dependency/demo.yaml index 8fc7ff1c..72a126d9 100644 --- a/examples/dependency/demo.yaml +++ b/examples/dependency/demo.yaml @@ -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 @@ -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 @@ -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