nyanshak
07/29/2020, 5:15 PMapplying labels: apply labels received status 500 Unknown Error: invalid LabelType: 1
^ already fixed in my environment, but would be nice to know about this in the upgrade guide, or have fleetctl offer to upgrade between formats.apiVersion
in the yaml specs to v2
?)zwass
07/29/2020, 8:43 PMnyanshak
07/29/2020, 8:49 PMzwass
07/29/2020, 9:07 PMnyanshak
07/29/2020, 9:10 PMzwass
07/29/2020, 9:13 PMnyanshak
08/03/2020, 6:11 PM---
apiVersion: v1
kind: label
name: CentOS Linux
description: All CentOS hosts
query: SELECT 1 FROM os_version WHERE platform = 'centos' OR name LIKE '%centos%';
label_type: 1
label_type: 1
, but you could try as well 🤷zwass
08/03/2020, 6:13 PMfleetctl get label foobar
?nyanshak
08/03/2020, 6:13 PMzwass
08/03/2020, 6:13 PMlabel_type
in 3.0 so this might be an old issue.nyanshak
08/03/2020, 6:14 PMzwass
08/03/2020, 6:17 PM---
apiVersion: v1
kind: label
spec:
name: CentOS Linux
description: All CentOS hosts
query: SELECT 1 FROM os_version WHERE platform = 'centos' OR name LIKE '%centos%';
label_type: 1
and I get unmarshaling label spec: error unmarshaling JSON: invalid LabelType: 1
I wonder how yours actually hit the server? Possible you were using an older version of fleetctl
?nyanshak
08/03/2020, 6:18 PM