Skip to content

Commit e9f1f08

Browse files
committed
Adding GCPMachinePool Functionality
1 parent 0d52d99 commit e9f1f08

19 files changed

+2062
-50
lines changed

cloud/const.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package cloud
2+
3+
const (
4+
// CustomDataHashAnnotation is the key for the machine object annotation
5+
// which tracks the hash of the custom data.
6+
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
7+
// for annotation formatting rules.
8+
CustomDataHashAnnotation = "sigs.k8s.io/cluster-api-provider-gcp-mig-custom-data-hash"
9+
)

cloud/interfaces.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,13 @@ type Machine interface {
104104
MachineGetter
105105
MachineSetter
106106
}
107+
108+
// MachinePoolGetter is an interface which can get machine pool information.
109+
type MachinePoolGetter interface {
110+
Project() string
111+
}
112+
113+
// MachinePool is an interface which can get machine pool information.
114+
type MachinePool interface {
115+
MachinePoolGetter
116+
}

0 commit comments

Comments
 (0)