mirror of https://github.com/kubernetes/kops.git
Fix CoreOS logrotate service failure.
This commit is contained in:
parent
cbe72dc44a
commit
1fdbbecce1
|
@ -89,8 +89,7 @@ func (b *LogrotateBuilder) Build(c *fi.ModelBuilderContext) error {
|
||||||
// addLogrotateService creates a logrotate systemd task to act as target for the timer, if one is needed
|
// addLogrotateService creates a logrotate systemd task to act as target for the timer, if one is needed
|
||||||
func (b *LogrotateBuilder) addLogrotateService(c *fi.ModelBuilderContext) error {
|
func (b *LogrotateBuilder) addLogrotateService(c *fi.ModelBuilderContext) error {
|
||||||
switch b.Distribution {
|
switch b.Distribution {
|
||||||
case distros.DistributionCoreOS:
|
case distros.DistributionCoreOS, distros.DistributionContainerOS:
|
||||||
case distros.DistributionContainerOS:
|
|
||||||
// logrotate service already exists
|
// logrotate service already exists
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue