Skip to content

Commit 9a8efff

Browse files
committed
rename grpcTLSVolumeName to GRPCTLSVolumeName
1 parent cb88751 commit 9a8efff

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

internal/resources/database_statefulset.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (b *DatabaseStatefulSetBuilder) buildVolumes() []corev1.Volume {
192192
}
193193

194194
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
195-
volumes = append(volumes, buildTLSVolume(grpcTLSVolumeName, b.Spec.Service.GRPC.TLSConfiguration))
195+
volumes = append(volumes, buildTLSVolume(GRPCTLSVolumeName, b.Spec.Service.GRPC.TLSConfiguration))
196196
}
197197

198198
if b.Spec.Service.Interconnect.TLSConfiguration.Enabled {
@@ -314,7 +314,7 @@ func (b *DatabaseStatefulSetBuilder) buildCaStorePatchingInitContainerVolumeMoun
314314

315315
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
316316
volumeMounts = append(volumeMounts, corev1.VolumeMount{
317-
Name: grpcTLSVolumeName,
317+
Name: GRPCTLSVolumeName,
318318
ReadOnly: true,
319319
MountPath: grpcTLSVolumeMountPath,
320320
})
@@ -482,7 +482,7 @@ func (b *DatabaseStatefulSetBuilder) buildVolumeMounts() []corev1.VolumeMount {
482482

483483
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
484484
volumeMounts = append(volumeMounts, corev1.VolumeMount{
485-
Name: grpcTLSVolumeName,
485+
Name: GRPCTLSVolumeName,
486486
ReadOnly: true,
487487
MountPath: grpcTLSVolumeMountPath,
488488
})

internal/resources/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const (
3535
StatusServiceNameFormat = "%s-status"
3636
DatastreamsServiceNameFormat = "%s-datastreams"
3737

38-
grpcTLSVolumeName = "grpc-tls-volume"
38+
GRPCTLSVolumeName = "grpc-tls-volume"
3939
interconnectTLSVolumeName = "interconnect-tls-volume"
4040
datastreamsTLSVolumeName = "datastreams-tls-volume"
4141
statusTLSVolumeName = "status-tls-volume"

internal/resources/storage_init_job.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (b *StorageInitJobBuilder) buildInitJobVolumes() []corev1.Volume {
137137
}
138138

139139
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
140-
volumes = append(volumes, buildTLSVolume(grpcTLSVolumeName, b.Spec.Service.GRPC.TLSConfiguration))
140+
volumes = append(volumes, buildTLSVolume(GRPCTLSVolumeName, b.Spec.Service.GRPC.TLSConfiguration))
141141
}
142142

143143
if b.Spec.OperatorConnection != nil {
@@ -234,7 +234,7 @@ func (b *StorageInitJobBuilder) buildJobVolumeMounts() []corev1.VolumeMount {
234234

235235
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
236236
volumeMounts = append(volumeMounts, corev1.VolumeMount{
237-
Name: grpcTLSVolumeName,
237+
Name: GRPCTLSVolumeName,
238238
ReadOnly: true,
239239
MountPath: grpcTLSVolumeMountPath,
240240
})
@@ -317,7 +317,7 @@ func (b *StorageInitJobBuilder) buildCaStorePatchingInitContainerVolumeMounts()
317317

318318
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
319319
volumeMounts = append(volumeMounts, corev1.VolumeMount{
320-
Name: grpcTLSVolumeName,
320+
Name: GRPCTLSVolumeName,
321321
ReadOnly: true,
322322
MountPath: grpcTLSVolumeMountPath,
323323
})

internal/resources/storage_statefulset.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (b *StorageStatefulSetBuilder) buildVolumes() []corev1.Volume {
216216
}
217217

218218
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
219-
volumes = append(volumes, buildTLSVolume(grpcTLSVolumeName, b.Spec.Service.GRPC.TLSConfiguration))
219+
volumes = append(volumes, buildTLSVolume(GRPCTLSVolumeName, b.Spec.Service.GRPC.TLSConfiguration))
220220
}
221221

222222
if b.Spec.Service.Interconnect.TLSConfiguration.Enabled {
@@ -326,7 +326,7 @@ func (b *StorageStatefulSetBuilder) buildCaStorePatchingInitContainerVolumeMount
326326

327327
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
328328
volumeMounts = append(volumeMounts, corev1.VolumeMount{
329-
Name: grpcTLSVolumeName,
329+
Name: GRPCTLSVolumeName,
330330
ReadOnly: true,
331331
MountPath: grpcTLSVolumeMountPath,
332332
})
@@ -438,7 +438,7 @@ func (b *StorageStatefulSetBuilder) buildVolumeMounts() []corev1.VolumeMount {
438438

439439
if b.Spec.Service.GRPC.TLSConfiguration.Enabled {
440440
volumeMounts = append(volumeMounts, corev1.VolumeMount{
441-
Name: grpcTLSVolumeName,
441+
Name: GRPCTLSVolumeName,
442442
ReadOnly: true,
443443
MountPath: grpcTLSVolumeMountPath,
444444
})

tests/e2e/smoke_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ var _ = Describe("Operator smoke test", func() {
777777
storage := testobjects.DefaultStorage(filepath.Join("..", "data", "storage-mirror-3-dc-config.yaml"))
778778

779779
secretName := testobjects.StorageCertificateSecretName
780-
secretPath := fmt.Sprintf("%s/%s", resources.wellKnownDirForAdditionalSecrets, secretName)
780+
secretPath := fmt.Sprintf("%s/%s", v1alpha1.AdditionalSecretsDir, secretName)
781781

782782
storage.Spec.Secrets = []*corev1.LocalObjectReference{
783783
{
@@ -817,7 +817,7 @@ var _ = Describe("Operator smoke test", func() {
817817
storage := testobjects.DefaultStorage(filepath.Join("..", "data", "storage-mirror-3-dc-config-tls.yaml"))
818818

819819
secretName := testobjects.StorageCertificateSecretName
820-
secretPath := fmt.Sprintf("%s/%s", resources.wellKnownDirForAdditionalSecrets, secretName)
820+
secretPath := fmt.Sprintf("%s/%s", v1alpha1.AdditionalSecretsDir, secretName)
821821

822822
storage.Spec.Service.GRPC.TLSConfiguration = testobjects.TLSConfiguration(secretName)
823823

@@ -829,7 +829,7 @@ var _ = Describe("Operator smoke test", func() {
829829
Args: []string{fmt.Sprintf("ls -la %s", secretPath)},
830830
VolumeMounts: []corev1.VolumeMount{
831831
{
832-
Name: resources.grpcTLSVolumeName,
832+
Name: resources.GRPCTLSVolumeName,
833833
MountPath: secretPath,
834834
ReadOnly: true,
835835
},

0 commit comments

Comments
 (0)