Allow controller flag to override restart policy (#1340)
This commit is contained in:
@@ -78,6 +78,11 @@ type ConvertOptions struct {
|
||||
WithKomposeAnnotation bool
|
||||
}
|
||||
|
||||
// IsPodController indicate if the user want to use a controller
|
||||
func (opt *ConvertOptions) IsPodController() bool {
|
||||
return opt.IsDeploymentFlag || opt.IsDaemonSetFlag || opt.IsReplicationControllerFlag || opt.Controller != ""
|
||||
}
|
||||
|
||||
// ServiceConfig holds the basic struct of a container
|
||||
type ServiceConfig struct {
|
||||
ContainerName string
|
||||
|
||||
Reference in New Issue
Block a user