Skip to content

Commit

Permalink
Merge pull request #9529 from alexander-demicev/cminit
Browse files Browse the repository at this point in the history
✨CAPD: Initialize configmap object before getting it
  • Loading branch information
k8s-ci-robot committed Oct 10, 2023
2 parents 6bfabfe + 6e21e8e commit 782de85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ func (r *DockerMachineReconciler) getUnsafeLoadBalancerConfigTemplate(ctx contex
if dockerCluster.Spec.LoadBalancer.CustomHAProxyConfigTemplateRef == nil {
return "", nil
}
var cm *corev1.ConfigMap
cm := &corev1.ConfigMap{}
key := types.NamespacedName{
Name: dockerCluster.Spec.LoadBalancer.CustomHAProxyConfigTemplateRef.Name,
Namespace: dockerCluster.Namespace,
Expand Down

0 comments on commit 782de85

Please sign in to comment.