-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: vela dry-run render results should be affected by override poli…
…cy and deploy workflowstep (#4815) * [Feature] vela dry-run render results should be affected by override policy and deploy workflowstep Signed-off-by: cezhang <c1zhang.dev@gmail.com> * multiple input files support; policy,workflow support; new flag: merge orphan policy or workflow Signed-off-by: cezhang <c1zhang.dev@gmail.com> * add more tests Signed-off-by: cezhang <c1zhang.dev@gmail.com> * fix comment issues Signed-off-by: cezhang <c1zhang.dev@gmail.com> * add tests Signed-off-by: cezhang <c1zhang.dev@gmail.com> * fix e2e Signed-off-by: cezhang <c1zhang.dev@gmail.com> * fix tests Signed-off-by: cezhang <c1zhang.dev@gmail.com> Signed-off-by: cezhang <c1zhang.dev@gmail.com>
- Loading branch information
Showing
25 changed files
with
977 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. | ||
# Definition source cue file: vela-templates/definitions/internal/topology.cue | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: PolicyDefinition | ||
metadata: | ||
name: mypolicy | ||
namespace: vela-system | ||
spec: | ||
schematic: | ||
cue: | ||
template: | | ||
output: { | ||
apiVersion: "testing/v1" | ||
kind: "Policy" | ||
policy: { | ||
name: parameter.name | ||
} | ||
} | ||
parameter: { | ||
name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: Application | ||
metadata: | ||
name: testing-app | ||
namespace: default | ||
spec: | ||
components: | ||
- name: testing-dryrun | ||
type: webservice | ||
properties: | ||
image: oamdev/hello-world:v1 | ||
ports: | ||
- port: 8000 | ||
expose: true | ||
traits: | ||
- type: scaler | ||
properties: | ||
replicas: 1 | ||
policies: | ||
- name: target-default | ||
type: topology | ||
properties: | ||
clusters: [ "local" ] | ||
namespace: "default" | ||
- name: target-prod | ||
type: topology | ||
properties: | ||
clusters: [ "local" ] | ||
namespace: "prod" | ||
- name: deploy-ha | ||
type: override | ||
properties: | ||
components: | ||
- type: webservice | ||
traits: | ||
- type: scaler | ||
properties: | ||
replicas: 3 | ||
workflow: | ||
steps: | ||
- name: deploy2default | ||
type: deploy | ||
properties: | ||
policies: [ "target-default" ] | ||
- name: deploy2prod | ||
type: deploy | ||
properties: | ||
policies: [ "target-prod", "deploy-ha" ] |
Oops, something went wrong.