Skip to content
Open
Show file tree
Hide file tree
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
985 changes: 985 additions & 0 deletions charts/kubedbcom-cassandra-editor/ui/create-ui.yaml

Large diffs are not rendered by default.

724 changes: 724 additions & 0 deletions charts/kubedbcom-cassandra-editor/ui/edit-ui.yaml

Large diffs are not rendered by default.

1,486 changes: 1,486 additions & 0 deletions charts/kubedbcom-cassandra-editor/ui/functions.js

Large diffs are not rendered by default.

413 changes: 413 additions & 0 deletions charts/kubedbcom-cassandra-editor/ui/language.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ step:
init:
type: func
value: checkHostnameOrIP
label: Expose via Gateway?
label: Expose via Gateway?
schema: schema/properties/spec/properties/admin/properties/expose/properties/default
type: switch
watcher:
Expand Down
12 changes: 11 additions & 1 deletion charts/kubedbcom-mssqlserver-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1159,12 +1159,22 @@ export const useFunc = (model) => {
const pathPrefix = `${domain}/db${routeRootPath}`
const pathSplit = pathPrefix.split('/').slice(0, -1).join('/')
const pathConstructedForKubedb = pathSplit + `/${reqType.toLowerCase()}?namespace=${namespace}`
const requestTypeMap = {
'update-version': 'UpdateVersion',
'scale-vertically': 'VerticalScaling',
'scale-storage': 'VolumeExpansion',
'horizontal-scale': 'HorizontalScaling',
restart: 'Restart',
reconfigure: 'Reconfigure',
'tls-configure': 'ReconfigureTLS',
}
const requestType = requestTypeMap[reqType] || 'VerticalScaling'

const isKube = !!storeGet('/route/params/actions')

if (isKube) return pathConstructedForKubedb
else
return `${domain}/console/${owner}/kubernetes/${cluster}/ops.kubedb.com/v1alpha1/mssqlserveropsrequests/create?name=${dbname}&namespace=${namespace}&group=${group}&version=${version}&resource=${resource}&kind=${kind}&page=operations&requestType=VerticalScaling`
return `${domain}/console/${owner}/kubernetes/${cluster}/ops.kubedb.com/v1alpha1/mssqlserveropsrequests/create?name=${dbname}&namespace=${namespace}&group=${group}&version=${version}&resource=${resource}&kind=${kind}&page=operations&requestType=${requestType}`
}

function setValueFrom() {
Expand Down
Loading
Loading