News for hackers. Stuff that matters.
Re:Everything useful I know about kubectl by bobbyi_settv on Monday July 05, 2021 @01:54PM (#27740288)
How is this command from the page:

  # Lint a Helm chart
  # Good to put in pre-merge checks
  $ helm template . | kubeval -
different/ better than "helm lint" (https://helm.sh/docs/helm/helm_lint/)?
Re:Everything useful I know about kubectl by alexhwoods on Monday July 05, 2021 @02:20PM (#27740535)
I could be wrong here, but I think `helm lint` just checks that the chart is formed correctly — Go templating and all.

I don't think it validates the Kubernetes resources.

Here's an example:

$ helm create foo

$ cd foo

Then change "apiVersion" in deployment.yaml to "apiVersion: nonsense"

In the linting, I got

$ helm lint ==> Linting . [INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed

$ helm template . | kubeval -

ERR - foo/templates/deployment.yaml: Failed initializing schema https://kubernetesjsonschema.dev/master-standalone/deploymen...: Could not read schema from HTTP, response status is 404 Not Found