mirror of
https://github.com/psviderski/uncloud.git
synced 2026-11-10 20:54:17 +00:00
fix(labels): allow setting 'uncloud.' prefixed labels on services using a client but not CLI or Compose
This commit is contained in:
@@ -130,6 +130,9 @@ func ServiceSpecFromCompose(project *types.Project, serviceName string) (api.Ser
|
||||
}
|
||||
|
||||
if len(service.Deploy.Labels) > 0 {
|
||||
if err = api.ValidateLabels(service.Deploy.Labels); err != nil {
|
||||
return spec, fmt.Errorf("invalid deploy.labels: %w", err)
|
||||
}
|
||||
spec.Labels = maps.Clone(service.Deploy.Labels)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user