Skip to content

Commit efb7101

Browse files
authored
Fix .spec.storageEndpoint usage in database args (#176)
1 parent 0f2fb2e commit efb7101

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

deploy/ydb-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.4.39
18+
version: 0.4.40
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "0.4.39"
24+
appVersion: "0.4.40"

internal/resources/database_statefulset.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ type DatabaseStatefulSetBuilder struct {
2222
*v1alpha1.Database
2323
RestConfig *rest.Config
2424

25-
Name string
26-
Labels map[string]string
27-
StorageEndpoint string
25+
Name string
26+
Labels map[string]string
2827
}
2928

3029
var annotationDataCenterPattern = regexp.MustCompile("^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$")
@@ -536,7 +535,7 @@ func (b *DatabaseStatefulSetBuilder) buildContainerArgs() ([]string, []string) {
536535
b.GetDatabasePath(),
537536

538537
"--node-broker",
539-
b.StorageEndpoint,
538+
b.Spec.StorageEndpoint,
540539
}
541540

542541
for _, secret := range b.Spec.Secrets {

internal/resources/databasenodeset.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ func (b *DatabaseNodeSetResource) GetResourceBuilders(restConfig *rest.Config) [
6161
Database: database.DeepCopy(),
6262
RestConfig: restConfig,
6363

64-
Name: b.Name,
65-
Labels: b.Labels,
66-
StorageEndpoint: b.Spec.StorageEndpoint,
64+
Name: b.Name,
65+
Labels: b.Labels,
6766
},
6867
&ConfigMapBuilder{
6968
Object: b,

0 commit comments

Comments
 (0)