Skip to content

Commit e2c9f5f

Browse files
Merge pull request #344 from beagles/job-cert-bug
Use proper source data for tls check
2 parents 8f71a83 + 2e672e5 commit e2c9f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/designate/pool_update.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ func PoolUpdateJob(
2626
runAsUser := int64(0)
2727

2828
volumeDefs := []VolumeMapping{
29-
{Name: ScriptsVolumeName(ServiceName), Type: ScriptMount, MountPath: "/usr/local/bin/container-scripts"},
30-
{Name: ConfigVolumeName(ServiceName), Type: SecretMount, MountPath: "/var/lib/config-data/default"},
29+
{Name: ScriptsVolumeName(instance.Name), Type: ScriptMount, MountPath: "/usr/local/bin/container-scripts"},
30+
{Name: ConfigVolumeName(instance.Name), Type: SecretMount, MountPath: "/var/lib/config-data/default"},
3131
{Name: "pools-yaml-merged", Type: MergeMount, MountPath: "/var/lib/config-data/merged"},
3232
}
3333

@@ -78,7 +78,7 @@ func PoolUpdateJob(
7878
},
7979
)
8080

81-
if instance.Spec.DesignateCentral.TLS.CaBundleSecretName != "" {
81+
if instance.Spec.DesignateAPI.TLS.CaBundleSecretName != "" {
8282
volumes = append(volumes, corev1.Volume{
8383
Name: "rabbitmq-certs",
8484
VolumeSource: corev1.VolumeSource{

0 commit comments

Comments
 (0)