mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-14 05:16:49 +00:00
* Feat: add export config and secret def (cherry picked from commited1f7c787d) * Fix: change the def name and optimize the example (cherry picked from commit2d626c872a) * Fix: fix the name in def (cherry picked from commit1e92d64767) Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com>
29 lines
671 B
YAML
29 lines
671 B
YAML
apiVersion: core.oam.dev/v1beta1
|
|
kind: Application
|
|
metadata:
|
|
name: export-config
|
|
namespace: default
|
|
spec:
|
|
components:
|
|
- name: express-server
|
|
type: webservice
|
|
properties:
|
|
image: crccheck/hello-world
|
|
port: 8000
|
|
workflow:
|
|
steps:
|
|
- name: apply-server
|
|
type: apply-component
|
|
outputs:
|
|
- name: status
|
|
valueFrom: output.status.conditions[0].message
|
|
properties:
|
|
component: express-server
|
|
- name: export-config
|
|
type: export-config
|
|
inputs:
|
|
- from: status
|
|
parameterKey: data.serverstatus
|
|
properties:
|
|
configName: my-configmap
|