Skip to content

Commit

Permalink
Add labels to binding file
Browse files Browse the repository at this point in the history
Signed-off-by: Nihal Azmain <nihal@appscode.com>
  • Loading branch information
Nihal-Azmain committed Jan 2, 2025
1 parent c418c18 commit e67da96
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/kubedbcom-elasticsearch-editor/ui/edit-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2210,7 +2210,7 @@ steps:
elements:
- computed: isBindingAlreadyOn
label:
text: Expose Binding
text: Expose Database
onChange: addOrRemoveBinding
schema:
$ref: discriminator#/properties/binding
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedbcom-elasticsearch-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3212,10 +3212,12 @@ async function addOrRemoveBinding({ commit, model, getValue, discriminator }) {
const value = getValue(discriminator, `/binding`)
const dbName = getValue(model, '/metadata/release/name')
const dbNamespace = getValue(model, '/metadata/release/namespace')
const labels = getValue(model, '/resources/kubedbComElasticsearch/metadata/labels')
const bindingValues = {
apiVersion: 'catalog.appscode.com/v1alpha1',
kind: 'ElasticsearchBinding',
metadata: {
labels,
name: dbName,
namespace: dbNamespace,
},
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedbcom-kafka-editor/ui/edit-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ steps:
elements:
- computed: isBindingAlreadyOn
label:
text: Expose Binding
text: Expose Database
onChange: addOrRemoveBinding
schema:
$ref: discriminator#/properties/binding
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedbcom-kafka-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,10 +1304,12 @@ async function addOrRemoveBinding({ commit, model, getValue, discriminator }) {
const value = getValue(discriminator, `/binding`)
const dbName = getValue(model, '/metadata/release/name')
const dbNamespace = getValue(model, '/metadata/release/namespace')
const labels = getValue(model, '/resources/kubedbComKafka/metadata/labels')
const bindingValues = {
apiVersion: 'catalog.appscode.com/v1alpha1',
kind: 'KafkaBinding',
metadata: {
labels,
name: dbName,
namespace: dbNamespace,
},
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedbcom-mariadb-editor/ui/edit-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ steps:
elements:
- computed: isBindingAlreadyOn
label:
text: Expose Binding
text: Expose Database
onChange: addOrRemoveBinding
schema:
$ref: discriminator#/properties/binding
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedbcom-mariadb-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2312,10 +2312,12 @@ async function addOrRemoveBinding({ commit, model, getValue, discriminator }) {
const value = getValue(discriminator, `/binding`)
const dbName = getValue(model, '/metadata/release/name')
const dbNamespace = getValue(model, '/metadata/release/namespace')
const labels = getValue(model, '/resources/kubedbComMariaDB/metadata/labels')
const bindingValues = {
apiVersion: 'catalog.appscode.com/v1alpha1',
kind: 'MariaDBBinding',
metadata: {
labels,
name: dbName,
namespace: dbNamespace,
},
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedbcom-mongodb-editor/ui/edit-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2364,7 +2364,7 @@ steps:
elements:
- computed: isBindingAlreadyOn
label:
text: Expose Binding
text: Expose Database
onChange: addOrRemoveBinding
schema:
$ref: discriminator#/properties/binding
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedbcom-mongodb-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2816,10 +2816,12 @@ async function addOrRemoveBinding({ commit, model, getValue, discriminator }) {
const value = getValue(discriminator, `/binding`)
const dbName = getValue(model, '/metadata/release/name')
const dbNamespace = getValue(model, '/metadata/release/namespace')
const labels = getValue(model, '/resources/kubedbComMongoDB/metadata/labels')
const bindingValues = {
apiVersion: 'catalog.appscode.com/v1alpha1',
kind: 'MongoDBBinding',
metadata: {
labels,
name: dbName,
namespace: dbNamespace,
},
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedbcom-mysql-editor/ui/edit-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ steps:
elements:
- computed: isBindingAlreadyOn
label:
text: Expose Binding
text: Expose Database
onChange: addOrRemoveBinding
schema:
$ref: discriminator#/properties/binding
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedbcom-mysql-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2359,10 +2359,12 @@ async function addOrRemoveBinding({ commit, model, getValue, discriminator }) {
const value = getValue(discriminator, `/binding`)
const dbName = getValue(model, '/metadata/release/name')
const dbNamespace = getValue(model, '/metadata/release/namespace')
const labels = getValue(model, '/resources/kubedbComMySQL/metadata/labels')
const bindingValues = {
apiVersion: 'catalog.appscode.com/v1alpha1',
kind: 'MySQLBinding',
metadata: {
labels,
name: dbName,
namespace: dbNamespace,
},
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedbcom-redis-editor/ui/edit-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ steps:
elements:
- computed: isBindingAlreadyOn
label:
text: Expose Binding
text: Expose Database
onChange: addOrRemoveBinding
schema:
$ref: discriminator#/properties/binding
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedbcom-redis-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2573,10 +2573,12 @@ async function addOrRemoveBinding({ commit, model, getValue, discriminator }) {
const value = getValue(discriminator, `/binding`)
const dbName = getValue(model, '/metadata/release/name')
const dbNamespace = getValue(model, '/metadata/release/namespace')
const labels = getValue(model, '/resources/kubedbComRedis/metadata/labels')
const bindingValues = {
apiVersion: 'catalog.appscode.com/v1alpha1',
kind: 'RedisBinding',
metadata: {
labels,
name: dbName,
namespace: dbNamespace,
},
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedbcom-singlestore-editor/ui/edit-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ steps:
elements:
- computed: isBindingAlreadyOn
label:
text: Expose Binding
text: Expose Database
onChange: addOrRemoveBinding
schema:
$ref: discriminator#/properties/binding
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedbcom-singlestore-editor/ui/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2901,10 +2901,12 @@ async function addOrRemoveBinding({ commit, model, getValue, discriminator }) {
const value = getValue(discriminator, `/binding`)
const dbName = getValue(model, '/metadata/release/name')
const dbNamespace = getValue(model, '/metadata/release/namespace')
const labels = getValue(model, '/resources/kubedbComSinglestore/metadata/labels')
const bindingValues = {
apiVersion: 'catalog.appscode.com/v1alpha1',
kind: 'SinglestoreBinding',
metadata: {
labels,
name: dbName,
namespace: dbNamespace,
},
Expand Down

0 comments on commit e67da96

Please sign in to comment.