-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: bump vela to v1.5.0-beta.1 (#70)
* Feat: bump vela to v1.5.0-beta.1 Signed-off-by: qiaozp <[email protected]> * go.sum Signed-off-by: qiaozp <[email protected]>
- Loading branch information
Showing
13 changed files
with
234 additions
and
334 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
44 changes: 44 additions & 0 deletions
44
pkg/resources/static/vela/charts/vela-core/templates/defwithtemplate/apply-once.yaml
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,44 @@ | ||
# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. | ||
# Definition source cue file: vela-templates/definitions/internal/apply-once.cue | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: PolicyDefinition | ||
metadata: | ||
annotations: | ||
definition.oam.dev/description: Configure the behaviour of preventing configuration drift. | ||
name: apply-once | ||
namespace: {{ include "systemDefinitionNamespace" . }} | ||
spec: | ||
schematic: | ||
cue: | ||
template: | | ||
#ApplyOnceStrategy: { | ||
// +usage=Specify the path of the resource that allow configuration drift | ||
path: [...string] | ||
} | ||
#ApplyOncePolicyRule: { | ||
// +usage=Specify how to select the targets of the rule | ||
selector?: #ResourcePolicyRuleSelector | ||
// +usage=Specify the strategy for configuring the resource level configuration drift behaviour | ||
strategy: #ApplyOnceStrategy | ||
} | ||
#ResourcePolicyRuleSelector: { | ||
// +usage=Select resources by component names | ||
componentNames?: [...string] | ||
// +usage=Select resources by component types | ||
componentTypes?: [...string] | ||
// +usage=Select resources by oamTypes (COMPONENT or TRAIT) | ||
oamTypes?: [...string] | ||
// +usage=Select resources by trait types | ||
traitTypes?: [...string] | ||
// +usage=Select resources by resource types (like Deployment) | ||
resourceTypes?: [...string] | ||
// +usage=Select resources by their names | ||
resourceNames?: [...string] | ||
} | ||
parameter: { | ||
// +usage=Whether to enable apply-once for the whole application | ||
enable: *false | bool | ||
// +usage=Specify the rules for configuring apply-once policy in resource level | ||
rules?: [...#ApplyOncePolicyRule] | ||
} | ||
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
40 changes: 40 additions & 0 deletions
40
pkg/resources/static/vela/charts/vela-core/templates/defwithtemplate/garbage-collect.yaml
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,40 @@ | ||
# Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. | ||
# Definition source cue file: vela-templates/definitions/internal/garbage-collect.cue | ||
apiVersion: core.oam.dev/v1beta1 | ||
kind: PolicyDefinition | ||
metadata: | ||
annotations: | ||
definition.oam.dev/description: Configure the garbage collect behaviour for the application. | ||
name: garbage-collect | ||
namespace: {{ include "systemDefinitionNamespace" . }} | ||
spec: | ||
schematic: | ||
cue: | ||
template: | | ||
#GarbageCollectPolicyRule: { | ||
// +usage=Specify how to select the targets of the rule | ||
selector: [...#ResourcePolicyRuleSelector] | ||
// +usage=Specify the strategy for target resource to recycle | ||
strategy: *"onAppUpdate" | "onAppDelete" | "never" | ||
} | ||
#ResourcePolicyRuleSelector: { | ||
// +usage=Select resources by component names | ||
componentNames?: [...string] | ||
// +usage=Select resources by component types | ||
componentTypes?: [...string] | ||
// +usage=Select resources by oamTypes (COMPONENT or TRAIT) | ||
oamTypes?: [...string] | ||
// +usage=Select resources by trait types | ||
traitTypes?: [...string] | ||
// +usage=Select resources by resource types (like Deployment) | ||
resourceTypes?: [...string] | ||
// +usage=Select resources by their names | ||
resourceNames?: [...string] | ||
} | ||
parameter: { | ||
// +usage=If is set, outdated versioned resourcetracker will not be recycled automatically, outdated resources will be kept until resourcetracker be deleted manually | ||
keepLegacyResource: *false | bool | ||
// +usage=Specify the list of rules to control gc strategy at resource level, if one resource is controlled by multiple rules, first rule will be used | ||
rules?: [...#GarbageCollectPolicyRule] | ||
} | ||
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
Oops, something went wrong.