mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
refactor: deploy global service using Deployment with RollingStrategy
This commit is contained in:
@@ -53,8 +53,7 @@ type ContainerSpec struct {
|
||||
}
|
||||
|
||||
func (s *ContainerSpec) Validate() error {
|
||||
_, err := reference.ParseDockerRef(s.Image)
|
||||
if err != nil {
|
||||
if _, err := reference.ParseDockerRef(s.Image); err != nil {
|
||||
return fmt.Errorf("invalid image: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user