mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
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:
co-authored by
Jianbo Sun
parent
6c29b7b088
commit
427809cea7
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user