Homebrew tap for kgrep - a CLI for searching and analyzing logs and resources in Kubernetes.
To install the latest version of kgrep using this tap:
# Add the tap
brew tap kgrep-org/kgrep
# Install kgrep (latest version)
brew install kgrepAlternatively, you can install directly without adding the tap:
brew install kgrep-org/kgrep/kgrepTo install a specific version of kgrep:
# Add the tap first
brew tap kgrep-org/kgrep
# Install specific version (e.g., v0.4.1)
brew install kgrep@0.4.1
# Or install directly without adding the tap
brew install kgrep-org/kgrep/kgrep@0.4.1To see all available versions:
brew search kgrep-org/kgrep/- kubectl - kgrep requires kubectl to be installed and configured
After installation, you can use kgrep to search Kubernetes resources and logs:
# Search for a pattern in ConfigMaps
kgrep configmaps -n my-namespace -p "example"
# Search for errors in pod logs
kgrep logs -n my-namespace -p "error"
# Get help
kgrep --helpFor detailed usage instructions, see the main kgrep repository.
To update to the latest version:
brew update
brew upgrade kgrepThis tap contains the Homebrew formula for kgrep. The formula downloads pre-built binaries from the GitHub releases.
When a new version of kgrep is released:
- Run the update script:
./update-formula.sh NEW_VERSION - This will automatically create a versioned formula for the current version (e.g.,
kgrep@0.4.2.rb) before updating to the new version - Test both the main and versioned formulas
The script automatically handles:
- Creating versioned formulas for the current version
- Downloading release binaries from GitHub
- Calculating SHA256 checksums for all platforms
- Updating the main formula with the new version
After running the script, you can commit and push the changes as needed.
To test the formula locally:
# Install from local formula
brew install --formula ./kgrep.rb
# Or test the formula
brew test kgrepThis tap is licensed under the Apache 2.0 License - see the LICENSE file for details.
The kgrep tool itself is also licensed under Apache 2.0 - see the main repository for details.