Note new field's impact on OS package installation

This commit is contained in:
Steven E. Harris 2021-03-05 09:41:09 -05:00
parent 70e95fccf5
commit 2fc68564be
1 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,9 @@ func (e *Package) findDpkg(c *fi.Context) (*Package, error) {
}
}
// TODO: Take InstanceGroup-level overriding of the Cluster-level update policy into account
// here. Doing so requires that we make the current InstanceGroup available within Package's
// methods.
if fi.StringValue(c.Cluster.Spec.UpdatePolicy) != kops.UpdatePolicyExternal || !installed {
return nil, nil
}
@ -246,6 +249,9 @@ func (e *Package) findYum(c *fi.Context) (*Package, error) {
healthy = fi.Bool(true)
}
// TODO: Take InstanceGroup-level overriding of the Cluster-level update policy into account
// here. Doing so requires that we make the current InstanceGroup available within Package's
// methods.
if fi.StringValue(c.Cluster.Spec.UpdatePolicy) != kops.UpdatePolicyExternal || !installed {
return nil, nil
}