mirror of https://github.com/kubernetes/kops.git
				
				
				
			Install packages updates during bootstrap
This commit is contained in:
		
							parent
							
								
									61511b5c43
								
							
						
					
					
						commit
						c58b8d5df1
					
				|  | @ -62,6 +62,8 @@ Values: | |||
| 
 | ||||
| * unset means to use the default policy, which is currently to apply OS security updates unless they require a reboot | ||||
| 
 | ||||
| Required packages are also updated during bootstrapping if the value is not set.  | ||||
| 
 | ||||
| ## out | ||||
| 
 | ||||
| `out` determines the directory into which Kops will write the target output for Terraform and CloudFormation.  It defaults to `out/terraform` and `out/cloudformation` respectively. | ||||
|  |  | |||
|  | @ -216,7 +216,9 @@ func (e *Package) findDpkg(c *fi.Context) (*Package, error) { | |||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	if !installed { | ||||
| 	target := c.Target.(*local.LocalTarget) | ||||
| 	updates := target.HasTag(tags.TagUpdatePolicyAuto) | ||||
| 	if !updates && !installed { | ||||
| 		return nil, nil | ||||
| 	} | ||||
| 
 | ||||
|  | @ -264,7 +266,9 @@ func (e *Package) findYum(c *fi.Context) (*Package, error) { | |||
| 		healthy = fi.Bool(true) | ||||
| 	} | ||||
| 
 | ||||
| 	if !installed { | ||||
| 	target := c.Target.(*local.LocalTarget) | ||||
| 	updates := target.HasTag(tags.TagUpdatePolicyAuto) | ||||
| 	if !updates && !installed { | ||||
| 		return nil, nil | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
|  | @ -25,6 +25,12 @@ const ( | |||
| 	TagOSRHEL8        = "_rhel8" | ||||
| 
 | ||||
| 	TagSystemd = "_systemd" | ||||
| 
 | ||||
| 	// Nodes with the "_automatic_upgrade" tag automatically update installed packages
 | ||||
| 	// during bootstrapping and daily for security updates (unless this update would require
 | ||||
| 	// a node reboot). To disable automatic node package updates, set:
 | ||||
| 	// `Cluster.Spec.UpdatePolicy = external`
 | ||||
| 	TagUpdatePolicyAuto = "_automatic_upgrades" | ||||
| ) | ||||
| 
 | ||||
| type HasTags interface { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue