Skip to content

Commit

Permalink
Adding GCPMachinePool Functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennenMM7 committed Aug 30, 2023
1 parent eb65f59 commit caf5243
Show file tree
Hide file tree
Showing 19 changed files with 2,097 additions and 22 deletions.
24 changes: 24 additions & 0 deletions cloud/const.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*

Check warning on line 1 in cloud/const.go

View workflow job for this annotation

GitHub Actions / lint

package-comments: package comment should be of the form "Package cloud ..." (revive)
Copyright 2023 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0

Check failure on line 8 in cloud/const.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package cloud

const (
// CustomDataHashAnnotation is the key for the machine object annotation
// which tracks the hash of the custom data.
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
// for annotation formatting rules.
CustomDataHashAnnotation = "sigs.k8s.io/cluster-api-provider-gcp-mig-custom-data-hash"
)
10 changes: 10 additions & 0 deletions cloud/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,13 @@ type Machine interface {
MachineGetter
MachineSetter
}

// MachinePoolGetter is an interface which can get machine pool information.
type MachinePoolGetter interface {
Project() string
}

// MachinePool is an interface which can get machine pool information.
type MachinePool interface {
MachinePoolGetter
}

0 comments on commit caf5243

Please sign in to comment.