diff --git a/cmd/containerboot/kube.go b/cmd/containerboot/kube.go index db8a459c9..04b988f34 100644 --- a/cmd/containerboot/kube.go +++ b/cmd/containerboot/kube.go @@ -84,7 +84,7 @@ func storeDeviceID(ctx context.Context, secretName, deviceID string) error { } m := map[string]map[string]string{ - "stringData": map[string]string{ + "stringData": { "device_id": deviceID, }, } diff --git a/cmd/containerboot/main_test.go b/cmd/containerboot/main_test.go index c1a950a31..e42e36761 100644 --- a/cmd/containerboot/main_test.go +++ b/cmd/containerboot/main_test.go @@ -688,7 +688,7 @@ func (k *kubeServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { case "GET": w.Header().Set("Content-Type", "application/json") ret := map[string]map[string]string{ - "data": map[string]string{}, + "data": {}, } k.Lock() defer k.Unlock()