mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-17 06:46:47 +00:00
[Backport release-1.5] Fix: address failure when rendering addon API schemas (#4445)
* Fix: address failure when rendering addon API schemas Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com> (cherry picked from commitde7a64346c) * Fix: address failure when rendering addon API schemas Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com> (cherry picked from commit284e673bad) * Test: add tests Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com> (cherry picked from commit1c0653e449) * Test: fix tests Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com> (cherry picked from commit78104068b1) * Test: fix tests Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com> (cherry picked from commit0442f823c8) Co-authored-by: Charlie Chiang <charlie_c_0129@outlook.com>
This commit is contained in:
committed by
GitHub
parent
853f44cf61
commit
35ae4e5ef5
27
pkg/addon/testdata/example/template.cue
vendored
Normal file
27
pkg/addon/testdata/example/template.cue
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
output: {
|
||||
apiVersion: "core.oam.dev/v1beta1"
|
||||
kind: "Application"
|
||||
metadata: {
|
||||
name: "example"
|
||||
namespace: "vela-system"
|
||||
}
|
||||
spec: {
|
||||
workflow: steps: [{
|
||||
name: "apply-ns"
|
||||
type: "apply-component"
|
||||
properties: component: "ns-example-system"
|
||||
}, {
|
||||
name: "apply-resources"
|
||||
type: "apply-remaining"
|
||||
}]
|
||||
components: [{
|
||||
name: "ns-example-system"
|
||||
type: "raw"
|
||||
properties: {
|
||||
apiVersion: "v1"
|
||||
kind: "Namespace"
|
||||
metadata: name: "example-system"
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
22
pkg/addon/testdata/example/template.yaml
vendored
22
pkg/addon/testdata/example/template.yaml
vendored
@@ -1,22 +0,0 @@
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: example
|
||||
namespace: vela-system
|
||||
spec:
|
||||
workflow:
|
||||
steps:
|
||||
- name: apply-ns
|
||||
type: apply-component
|
||||
properties:
|
||||
component: ns-example-system
|
||||
- name: apply-resources
|
||||
type: apply-remaining
|
||||
components:
|
||||
- name: ns-example-system
|
||||
type: raw
|
||||
properties:
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: example-system
|
||||
Reference in New Issue
Block a user