mirror of https://github.com/kubernetes/kops.git
Merge pull request #16359 from justinsb/mark_tasks_implementing_hasaddress
azure: Mark a few tasks as implementing HasAddress
This commit is contained in:
commit
b6e9eccbd3
|
|
@ -53,6 +53,7 @@ var (
|
|||
_ fi.CloudupTask = &LoadBalancer{}
|
||||
_ fi.CompareWithID = &LoadBalancer{}
|
||||
_ fi.CloudupTaskNormalize = &LoadBalancer{}
|
||||
_ fi.HasAddress = &LoadBalancer{}
|
||||
)
|
||||
|
||||
// CompareWithID returns the Name of the LoadBalancer
|
||||
|
|
|
|||
|
|
@ -47,6 +47,12 @@ type Port struct {
|
|||
WellKnownServices []wellknownservices.WellKnownService
|
||||
}
|
||||
|
||||
var (
|
||||
_ fi.CloudupTask = &Port{}
|
||||
_ fi.CompareWithID = &Port{}
|
||||
_ fi.HasAddress = &Port{}
|
||||
)
|
||||
|
||||
// GetDependencies returns the dependencies of the Port task
|
||||
func (e *Port) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask {
|
||||
var deps []fi.CloudupTask
|
||||
|
|
@ -64,8 +70,6 @@ func (e *Port) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask
|
|||
return deps
|
||||
}
|
||||
|
||||
var _ fi.CompareWithID = &Port{}
|
||||
|
||||
func (s *Port) CompareWithID() *string {
|
||||
return s.ID
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue