Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
stuggi committed Dec 12, 2023
1 parent 43dfebb commit 57f1e91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/placement/dbsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func DbSyncJob(

// create Volume and VolumeMounts
volumes := getVolumes(instance.Name)
volumeMounts := getVolumeMounts()
volumeMounts := getVolumeMounts("dbsync")
initVolumeMounts := getInitVolumeMounts()

// add CA cert if defined
Expand Down
2 changes: 1 addition & 1 deletion pkg/placement/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func Deployment(

// create Volume and VolumeMounts
volumes := getVolumes(instance.Name)
volumeMounts := getVolumeMounts()
volumeMounts := getVolumeMounts("api")

// add CA cert if defined
if instance.Spec.TLS.CaBundleSecretName != "" {
Expand Down
4 changes: 2 additions & 2 deletions pkg/placement/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func getInitVolumeMounts() []corev1.VolumeMount {
}

// getVolumeMounts - general VolumeMounts
func getVolumeMounts() []corev1.VolumeMount {
func getVolumeMounts(serviceName string) []corev1.VolumeMount {
return []corev1.VolumeMount{
{
Name: "scripts",
Expand All @@ -94,7 +94,7 @@ func getVolumeMounts() []corev1.VolumeMount {
{
Name: "config-data-merged",
MountPath: "/var/lib/kolla/config_files/config.json",
SubPath: "placement-api-config.json",
SubPath: "placement-" + serviceName + "-config.json",
ReadOnly: true,
},
}
Expand Down

0 comments on commit 57f1e91

Please sign in to comment.