Remove label filtering from initinfra
Now that initinfra leverages a specific entrypoint using the cluster type, and the Config.Initinfra subdirectory there is no need to also require all documents be labeled with a specific label. That would be redundant. Change-Id: I41ff1ea01d5f04d7d987d2308636adfff48016ea
This commit is contained in:
parent
66a1332ce9
commit
69fefba69f
@ -65,9 +65,8 @@ func (infra *Infra) Deploy() error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Returns documents marked with initinfra phase label
|
||||
selector := document.NewInintInfraSelector()
|
||||
docs, err := b.Select(selector)
|
||||
// Returns all documents for this phase
|
||||
docs, err := b.GetAllDocuments()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -98,8 +98,3 @@ func NewEphemeralNetworkDataSelector(bmhDoc Document) (Selector, error) {
|
||||
|
||||
return selector, nil
|
||||
}
|
||||
|
||||
// NewInintInfraSelector returns selector to get deployable documents marked with initinfra label
|
||||
func NewInintInfraSelector() Selector {
|
||||
return NewSelector().ByLabel(InitInfraSelector)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user