GoogleContainerTools / GoogleContainerTools/skaffold

k8s error formatting is hard to read

Open
#6,937 1 comment 0 reactions 0 assignees View on GitHub
area/ux help wanted kind/usability priority/p3
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

k8s returns this mass (newlines added so it looks more like it does in a terminal:

![image](https://user-images.githubusercontent.com/104003/144768226-be886e2f-faac-472a-b7db-fd0520d07b95.png)

I wish something would, at minimum, do python-style indents at colons:

```
- Error from server (BadRequest): error when creating "STDIN":
Deployment in version "v1" cannot be handled as a Deployment:
v1.Deployment.Spec:
v1.DeploymentSpec.Template:
v1.PodTemplateSpec.Spec:
v1.PodSpec.Containers: []v1.Container:
v1.Container.VolumeMounts:
[]v1.VolumeMount:
Resources:
v1.ResourceRequirements.Limits:
unmarshalerDecoder:
quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$',
error found in #10 byte of
...|":"300MiB"}},"volume|..., bigger context ...|"resources":{"limits":{"cpu":"1","memory":"300MiB"}},"volumeMounts":[{"mountPath":"/verdaccio/storag|...
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.