each

package
v0.0.0-...-b3f98b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package each provides functionality to execute kubectl commands across multiple contexts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Each

func Each(ctx context.Context, configFlags *genericclioptions.ConfigFlags, resourceBuilderFlags *genericclioptions.ResourceBuilderFlags, contextPattern string, outputFormat string, interactive bool, commandArgs []string) error

Each executes kubectl commands across multiple contexts matching the given pattern

Types

type Eacher

type Eacher struct {
	IOStreams  genericclioptions.IOStreams
	Kubeconfig kubeconfig.Interface
	Namespace  string
	Fzf        fzf.Interface
}

Eacher executes kubectl commands across multiple contexts

func (*Eacher) Each

func (e *Eacher) Each(ctx context.Context, contextPattern, outputFormat string, interactive bool, args []string) error

Each executes the given kubectl command across contexts matching the pattern

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL