This repository was archived by the owner on Aug 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
21
21
22
22
"github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet"
23
23
"github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet/deployer"
24
+ "github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet/util"
24
25
"k8s.io/klog"
25
26
"sigs.k8s.io/cluster-api/cmd/clusterctl/cmd"
26
27
"sigs.k8s.io/cluster-api/pkg/apis/cluster/common"
@@ -39,6 +40,7 @@ func main() {
39
40
40
41
// get a deployer, which is needed at various stages
41
42
deployer , err := deployer .New (deployer.Params {
43
+ Port : util .ControlPort ,
42
44
Client : client ,
43
45
})
44
46
if err != nil {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import (
26
26
"github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet/actuators/machine"
27
27
"github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet/actuators/machine/machineconfig"
28
28
"github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet/deployer"
29
+ "github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet/util"
29
30
"k8s.io/klog"
30
31
clusterapis "sigs.k8s.io/cluster-api/pkg/apis"
31
32
"sigs.k8s.io/cluster-api/pkg/apis/cluster/common"
@@ -38,10 +39,6 @@ import (
38
39
"sigs.k8s.io/controller-runtime/pkg/runtime/signals"
39
40
)
40
41
41
- const (
42
- controlPort = 6443
43
- )
44
-
45
42
func main () {
46
43
klog .InitFlags (nil )
47
44
@@ -79,7 +76,7 @@ func main() {
79
76
// get a deployer, which is needed at various stages
80
77
deployer , err := deployer .New (deployer.Params {
81
78
Client : client ,
82
- Port : controlPort ,
79
+ Port : util . ControlPort ,
83
80
})
84
81
if err != nil {
85
82
klog .Fatalf (err .Error ())
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const (
15
15
clusterIDTag = "cluster-api-provider-packet:cluster-id"
16
16
MasterTag = "kubernetes.io/role:master"
17
17
WorkerTag = "kubernetes.io/role:node"
18
+ ControlPort = 6443
18
19
)
19
20
20
21
func MachineProviderFromProviderConfig (providerConfig clusterv1.ProviderSpec ) (* packetconfigv1.PacketMachineProviderConfig , error ) {
You can’t perform that action at this time.
0 commit comments