Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update sharding ops #320

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions pkg/action/template/cluster_operations_template.cue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ content: {
}]
},
for _, sName in options.shardingNames {
shardingName: sName
componentName: sName
isSharding: true
volumeClaimTemplates: [ for _, vctName in options.vctNames {
name: vctName
storage: options.storage
Expand All @@ -126,7 +127,8 @@ content: {
replicas: options.replicas
},
for _, sName in options.shardingNames {
shardingName: sName
componentName: sName
isSharding: true
replicas: options.replicas
}]
}
Expand All @@ -135,7 +137,8 @@ content: {
componentName: cName
},
for _, sName in options.shardingNames {
shardingName: sName
componentName: sName
isSharding: true
}]
}
if options.type == "VerticalScaling" {
Expand All @@ -159,7 +162,8 @@ content: {
}
},
for _, sName in options.shardingNames {
shardingName: sName
componentName: sName
isSharding: true
requests: {
if options.memory != "" {
memory: options.memory
Expand Down Expand Up @@ -225,7 +229,8 @@ content: {
}]
},
for _, sName in options.shardingNames {
shardName: sName
componentName: sName
isSharding: true
configurations: [ {
name: options.cfgTemplateName
if options.forceRestart {
Expand Down Expand Up @@ -266,7 +271,8 @@ content: {
}]
},
for _, sName in options.shardingNames {
shardName: sName
componentName: sName
isSharding: true
if options.exposeEnabled == "true" {
switch: "Enable"
}
Expand Down Expand Up @@ -305,7 +311,7 @@ content: {
if options.type == "Custom" {
customSpec: {
opsDefinitionRef: options.opsDefinitionName
items: [
components: [
{
componentName: options.component
parameters: options.params
Expand Down
Loading