Skip to content

Commit dbffc56

Browse files
committed
Adding GCPMachinePool Functionality
1 parent 3cdae96 commit dbffc56

19 files changed

+2118
-63
lines changed

cloud/const.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
Copyright 2023 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
package cloud
17+
18+
const (
19+
// CustomDataHashAnnotation is the key for the machine object annotation
20+
// which tracks the hash of the custom data.
21+
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
22+
// for annotation formatting rules.
23+
CustomDataHashAnnotation = "sigs.k8s.io/cluster-api-provider-gcp-mig-custom-data-hash"
24+
)

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)