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:
@@ -208,6 +208,9 @@ func prepareServiceSpec(opts runOptions) (api.ServiceSpec, error) {
|
||||
if err != nil {
|
||||
return spec, err
|
||||
}
|
||||
if err = api.ValidateLabels(labels); err != nil {
|
||||
return spec, fmt.Errorf("invalid service labels: %w", err)
|
||||
}
|
||||
containerLabels, err := parseLabels(opts.containerLabels)
|
||||
if err != nil {
|
||||
return spec, err
|
||||
|
||||
Reference in New Issue
Block a user