Skip to content

Commit 0e1929a

Browse files
rossigeeContinue
andcommitted
fix: add missing cmp import for PublicControlPlaneAddress
Add import for cmp package and fix cmpt.Or to cmp.Or in tenantcontrolplane_public_address.go to resolve compilation failure. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <[email protected]>
1 parent 28136f9 commit 0e1929a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/v1alpha1/tenantcontrolplane_public_address.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33

44
package v1alpha1
55

6+
import "cmp"
7+
68
// PublicControlPlaneAddress returns the public address for the cluster-info ConfigMap.
79
// If PublicAPIServerAddress is specified, it returns that value; otherwise, it falls back
810
// to the assigned control plane address. This allows using DNS names in cluster-info
911
// instead of LoadBalancer IPs. The port is always taken from NetworkProfile.Port.
1012
func (in *TenantControlPlane) PublicControlPlaneAddress() (string, int32, error) {
11-
port := cmpt.Or(in.Spec.NetworkProfile.Port, 6443)
13+
port := cmp.Or(in.Spec.NetworkProfile.Port, 6443)
1214

1315
// If PublicAPIServerAddress is specified, use it for cluster-info
1416
if publicAddress := in.Spec.ControlPlane.Service.PublicAPIServerAddress; len(publicAddress) > 0 {

0 commit comments

Comments
 (0)