Giter Club home page Giter Club logo

Comments (10)

ahmetb avatar ahmetb commented on June 15, 2024

It's explained in the -h/-help message.

from kubectl-foreach.

mailsanchu avatar mailsanchu commented on June 15, 2024
-q         Disable and accept confirmation prompts ($KUBECTL_FOREACH_DISABLE_PROMPTS) 

I am not talking about this one

from kubectl-foreach.

mailsanchu avatar mailsanchu commented on June 15, 2024

Usage:
kubectl foreach [OPTIONS] [PATTERN]... -- [KUBECTL_ARGS...]

Patterns can be used to match context names from kubeconfig:
(empty): matches all contexts
NAME: matches context with exact name
/PATTERN/: matches context with regular expression
^NAME: remove context with exact name from the matched results
^/PATTERN/: remove contexts matching the regular expression from the results

Options:
-c=NUM Limit parallel executions (default: 0, unlimited)
-I=VAL Replace VAL occurring in KUBECTL_ARGS with context name
-q Disable and accept confirmation prompts ($KUBECTL_FOREACH_DISABLE_PROMPTS)
-h/--help Print help

Examples:
# get nodes on contexts named a b c
kubectl foreach a b c -- get nodes

# get nodes on all contexts named c0..9 except c1 (note the escaping)
kubectl foreach '/^c[0-9]/' ^c1	 -- get nodes

# get nodes on all contexts that has "prod" but not "foo"
kubectl foreach /prod/ ^/foo/ -- get nodes

# use 'kubectl tail' plugin to follow logs of pods in contexts named *test*
kubectl foreach -I _ /test/ -- tail --context=_ -l app=foo

from kubectl-foreach.

mailsanchu avatar mailsanchu commented on June 15, 2024

I do not see the one I am looking for.I apologize if I miss it. Can you please show me

from kubectl-foreach.

mailsanchu avatar mailsanchu commented on June 15, 2024

image

I am asking how to hide this information

from kubectl-foreach.

ahmetb avatar ahmetb commented on June 15, 2024

Got it, thanks. I assumed -q was turning that off as well. I might've left that in there because it helped me a lot, especially to understand if I got the match patterns wrong.

What's the primary use case? Are you trying to parse the output, or is it just visual cosmetics?

from kubectl-foreach.

mailsanchu avatar mailsanchu commented on June 15, 2024

I am running this command in a loop and the above statement is repeating it. I would like to hide it if it is possible

from kubectl-foreach.

ahmetb avatar ahmetb commented on June 15, 2024

Quickest fix would be fork & delete the code and recompile.

from kubectl-foreach.

mailsanchu avatar mailsanchu commented on June 15, 2024

Compile and copy the binary to some place? any instructions

from kubectl-foreach.

mailsanchu avatar mailsanchu commented on June 15, 2024

I can create a PR if you can make a release

from kubectl-foreach.

Related Issues (14)

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.