Skip to content

Commit 95c5d20

Browse files
authored
fix: pulsar-connection tls issue (#139)
fix: assign adminServiceURL with adminServiceSecureURL when the former is empty and the later is not
1 parent cdd9b28 commit 95c5d20

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/connection/reconciler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ func (r *PulsarConnectionReconciler) Reconcile(ctx context.Context) error {
109109
return nil
110110
}
111111

112+
if r.connection.Spec.AdminServiceURL == "" && r.connection.Spec.AdminServiceSecureURL != "" {
113+
r.connection.Spec.AdminServiceURL = r.connection.Spec.AdminServiceSecureURL
114+
}
115+
112116
// TODO use otelcontroller until kube-instrumentation upgrade controller-runtime version to newer
113117
controllerutil.AddFinalizer(r.connection, resourcev1alpha1.FinalizerName)
114118
if err := r.client.Update(ctx, r.connection); err != nil {

0 commit comments

Comments
 (0)