Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 09c2adf

Browse files
authored
Merge pull request #165 from displague/module-path
Update module path to sigs.k8s.io/cluster-api-provider-packet
2 parents adbf8a6 + 2cd8ce2 commit 09c2adf

File tree

13 files changed

+29
-25
lines changed

13 files changed

+29
-25
lines changed

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
domain: cluster.x-k8s.io
2-
repo: github.com/packethost/cluster-api-provider-packet
2+
repo: sigs.k8s.io/cluster-api-provider-packet
33
resources:
44
- group: infrastructure
55
kind: PacketCluster

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Packet cluster-api Provider
22

3+
[![GitHub release](https://img.shields.io/github/release/kubernetes-sigs/cluster-api-provider-packet/all.svg?style=flat-square)](https://github.com/kubernetes-sigs/cluster-api-provider-packet/releases)
4+
![Continuous Integration](https://github.com/kubernetes-sigs/cluster-api-provider-packet/workflows/Continuous%20Integration/badge.svg)
5+
[![GoDoc](https://godoc.org/sigs.k8s.io/cluster-api-provider-packet?status.svg)](https://pkg.go.dev/sigs.k8s.io/cluster-api-provider-packet?tab=overview)
6+
[![Go Report Card](https://goreportcard.com/badge/sigs.k8s.io/cluster-api-provider-packet)](https://goreportcard.com/report/sigs.k8s.io/cluster-api-provider-packet)
7+
[![Docker Pulls](https://img.shields.io/docker/pulls/packethost/cluster-api-provider-packet.svg)](https://hub.docker.com/r/packethost/cluster-api-provider-packet/)
8+
39
This is the official [cluster-api](https://github.com/kubernetes-sigs/cluster-api) provider for [Packet](https://packet.com). It implements cluster-api provider version v1alpha3.
410

511
## Using

controllers/packetcluster_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import (
3232
"sigs.k8s.io/controller-runtime/pkg/handler"
3333
"sigs.k8s.io/controller-runtime/pkg/source"
3434

35-
"github.com/packethost/cluster-api-provider-packet/api/v1alpha3"
36-
infrastructurev1alpha3 "github.com/packethost/cluster-api-provider-packet/api/v1alpha3"
37-
packet "github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet"
38-
"github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet/scope"
35+
"sigs.k8s.io/cluster-api-provider-packet/api/v1alpha3"
36+
infrastructurev1alpha3 "sigs.k8s.io/cluster-api-provider-packet/api/v1alpha3"
37+
packet "sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet"
38+
"sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet/scope"
3939
)
4040

4141
// PacketClusterReconciler reconciles a PacketCluster object

controllers/packetmachine_controller.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ import (
3939
"sigs.k8s.io/controller-runtime/pkg/client"
4040
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
4141
"sigs.k8s.io/controller-runtime/pkg/handler"
42+
"sigs.k8s.io/controller-runtime/pkg/reconcile"
4243
"sigs.k8s.io/controller-runtime/pkg/source"
4344

44-
packet "github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet"
45-
"github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet/scope"
45+
packet "sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet"
46+
"sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet/scope"
4647

47-
infrastructurev1alpha3 "github.com/packethost/cluster-api-provider-packet/api/v1alpha3"
48+
infrastructurev1alpha3 "sigs.k8s.io/cluster-api-provider-packet/api/v1alpha3"
4849
)
4950

5051
const (
51-
providerName = "packet"
52-
force = true
52+
force = true
5353
)
5454

5555
// PacketMachineReconciler reconciles a PacketMachine object
@@ -259,7 +259,7 @@ func (r *PacketMachineReconciler) reconcile(ctx context.Context, machineScope *s
259259
machineScope.SetAddresses(append(addrs, deviceAddr...))
260260

261261
// Proceed to reconcile the PacketMachine state.
262-
var result = ctrl.Result{}
262+
var result reconcile.Result
263263

264264
switch infrastructurev1alpha3.PacketResourceStatus(dev.State) {
265265
case infrastructurev1alpha3.PacketResourceStatusNew, infrastructurev1alpha3.PacketResourceStatusQueued, infrastructurev1alpha3.PacketResourceStatusProvisioning:

controllers/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
logf "sigs.k8s.io/controller-runtime/pkg/log"
3333
"sigs.k8s.io/controller-runtime/pkg/log/zap"
3434

35-
infrastructurev1alpha3 "github.com/packethost/cluster-api-provider-packet/api/v1alpha3"
35+
infrastructurev1alpha3 "sigs.k8s.io/cluster-api-provider-packet/api/v1alpha3"
3636
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"
3737
// +kubebuilder:scaffold:imports
3838
)

docs/concepts/machine.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ full list of supported parameters as part of the OpenAPI definition available
2525
[here](config/resources/crd/bases/infrastructure.cluster.x-k8s.io_packetmachines.yaml)
2626
searching for `kind: PacketMachine`.
2727

28+
The `PacketMachine`, `PacketCluster`, and `PacketMachineTemplate` CRD specs are also documented at [docs.crds.dev](https://doc.crds.dev/github.com/kubernetes-sigs/cluster-api-provider-packet).
29+
2830
## Reserved instances
2931

3032
Packet provides the possibility to [reserve

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/packethost/cluster-api-provider-packet
1+
module sigs.k8s.io/cluster-api-provider-packet
22

33
go 1.13
44

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2
7474
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
7575
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
7676
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
77-
github.com/deitch/packngo v0.2.1-0.20200628082620-d644bb21e1f3 h1:ph32bLs6ix+iPhSP4oapLhlpIwW1n9I9e7wELpnvBfI=
78-
github.com/deitch/packngo v0.2.1-0.20200628082620-d644bb21e1f3/go.mod h1:erURcsqYzwc9wSb04TX4so+s6F3uZtbXUil0W1LCGHA=
7977
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
8078
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
8179
github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug=
@@ -322,8 +320,6 @@ github.com/onsi/gomega v1.9.0 h1:R1uwffexN6Pr340GtYRIdZmAiN4J+iw6WG4wog1DUXg=
322320
github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA=
323321
github.com/opencontainers/go-digest v1.0.0-rc1 h1:WzifXhOVOEOuFYOJAW6aQqW0TooG2iki3E3Ii+WN7gQ=
324322
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
325-
github.com/packethost/packngo v0.2.0 h1:mSlzOof8PsOWCy78sBMt/PwMJTEjjQ/rRvMixu4Nm6c=
326-
github.com/packethost/packngo v0.2.0/go.mod h1:RQHg5xR1F614BwJyepfMqrKN+32IH0i7yX+ey43rEeQ=
327323
github.com/packethost/packngo v0.2.1-0.20200629161839-1810e48469b4 h1:T6L0ioYOSzOfX9/DzmeXMOuqJb3GldrVHJe4lLJw3Bk=
328324
github.com/packethost/packngo v0.2.1-0.20200629161839-1810e48469b4/go.mod h1:erURcsqYzwc9wSb04TX4so+s6F3uZtbXUil0W1LCGHA=
329325
github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=

hack/tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/packethost/cluster-api-provider-packet/hack/tools
1+
module sigs.k8s.io/cluster-api-provider-packet/hack/tools
22

33
go 1.14
44

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ import (
2626
ctrl "sigs.k8s.io/controller-runtime"
2727
"sigs.k8s.io/controller-runtime/pkg/log/zap"
2828

29-
packet "github.com/packethost/cluster-api-provider-packet/pkg/cloud/packet"
29+
packet "sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet"
3030

31-
infrastructurev1alpha3 "github.com/packethost/cluster-api-provider-packet/api/v1alpha3"
32-
"github.com/packethost/cluster-api-provider-packet/controllers"
31+
infrastructurev1alpha3 "sigs.k8s.io/cluster-api-provider-packet/api/v1alpha3"
32+
"sigs.k8s.io/cluster-api-provider-packet/controllers"
3333
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"
3434
// +kubebuilder:scaffold:imports
3535
)

0 commit comments

Comments
 (0)