Giter Club home page Giter Club logo

Comments (5)

connorgorman avatar connorgorman commented on June 19, 2024

Update: You can run kubectl get pod <pod name> -o yaml | kube-linter lint - to ingest from stdin

If you are looking to lint a specific pod that you have already deployed, the current methodology is to run kubectl get pod <pod name> -o yaml > pod.yaml; kube-linter lint pod.yaml

I'll file an issue to support stdin piping so that you could do something like:

kubectl get pod <pod name> -o yaml | kube-linter lint

from kube-linter.

JacksonRin avatar JacksonRin commented on June 19, 2024

thanks for reply first. but when I excute "kubectl get pod -o yaml > pod.yaml" on my k8s master server, I do not know what the pod name should be .
Maybe this is a basic problem , but ... very thanks for anwser.

from kube-linter.

connorgorman avatar connorgorman commented on June 19, 2024

Ah, I can file an issue for running on the result of get pod -o yaml where it returns a list of pods, but if you do know the object you want to lint you can actually run kube-linter lint - to accept the yaml on stdin!

from kube-linter.

JacksonRin avatar JacksonRin commented on June 19, 2024

so now the reason is that kube-linter can not support check the result of yaml of list of pods,only suppor the single pod yaml , right?

from kube-linter.

viswajithiii avatar viswajithiii commented on June 19, 2024

Hi @JacksonRin, this has been implemented in our latest release, v0.1.2: https://github.com/stackrox/kube-linter/releases/tag/0.1.2

from kube-linter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.