Fix: update export2config and export2secret example (#4940)

Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
(cherry picked from commit b2de4020a4)

Co-authored-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
This commit is contained in:
github-actions[bot]
2022-10-27 19:07:39 +08:00
committed by GitHub
co-authored by Jianbo Sun
parent 6c29b7b088
commit 427809cea7
2 changed files with 18 additions and 14 deletions
@@ -2,31 +2,33 @@
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: export-config
name: export2config
namespace: default
spec:
components:
- name: express-server
type: webservice
properties:
image: oamdev/hello-world
port: 8000
- name: export2config-demo-server
type: webservice
properties:
image: oamdev/hello-world
port: 8000
workflow:
steps:
- name: apply-server
type: apply-component
outputs:
outputs:
- name: status
valueFrom: output.status.conditions[0].message
properties:
component: express-server
component: export2config-demo-server
- name: export-config
type: export-config
type: export2config
inputs:
- from: status
parameterKey: data.serverstatus
properties:
configName: my-configmap
data:
testkey: testvalue
testkey: |
testvalue
value-line-2
```
@@ -6,7 +6,7 @@ metadata:
namespace: default
spec:
components:
- name: express-server
- name: express-server-sec
type: webservice
properties:
image: oamdev/hello-world
@@ -19,14 +19,16 @@ spec:
- name: status
valueFrom: output.status.conditions[0].message
properties:
component: express-server
component: express-server-sec
- name: export-secret
type: export-secret
type: export2secret
inputs:
- from: status
parameterKey: data.serverstatus
properties:
secretName: my-secret
data:
testkey: testvalue
testkey: |
testvalue
value-line-2
```