Skip to content

Releases: user-cube/kontext

v1.1.1

10 May 00:14
878815a

Choose a tag to compare

What's Changed

  • Bump golang.org/x/net from 0.13.0 to 0.38.0 by @dependabot in #5
  • Bump google.golang.org/protobuf from 1.30.0 to 1.33.0 by @dependabot in #4

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

09 May 22:46
7bd85f2

Choose a tag to compare

Kontext v1.1.0 Release Notes

Overview

This release of Kontext brings significant improvements to the user interface, architecture, and overall usability. The primary focus has been on enhancing the user experience when working with Kubernetes contexts and namespaces.

New Features

UI Improvements

  • New UI Package: Centralized all UI-related code into a dedicated package for better maintainability
  • Colorized Output: Enhanced color scheme with consistent styling for all messages
  • Informative Icons: Added icons for success (✓), error (✗), warning, and notes (ℹ)
  • Better Feedback: Clearer success, error, and informational messages

Namespace Management

  • Improved -n Flag Handling: Better handling of namespace selection when using the -n flag with switch commands
  • Current Namespace Prioritization: Namespace selectors now prioritize the current namespace for easier selection
  • Namespace Validation: Added validation to detect when specified namespaces don't exist in a context

Context Management

  • Smart Context Sorting: Context selectors now prioritize the current context in lists
  • Enhanced Selection UI: Better visual indicators for current context/namespace in selectors
  • Improved List Formatting: More readable output when listing contexts

Usability Enhancements

  • Consistent Terminal Output: Standardized formatting for all terminal messages
  • Interactive Selector Improvements: Better cursor positioning in interactive selection menus
  • Helpful Notes: Added informative notes for various operations and edge cases
  • Empty List Handling: Better handling when no namespaces are available for a context

Bug Fixes

  • Fixed issue with namespace selection when using the -n flag
  • Fixed cursor positioning in context and namespace selectors
  • Improved handling of edge cases like missing or invalid namespaces

Internal Improvements

  • Refactored Architecture: Better separation of concerns between UI and functionality
  • Enhanced Error Handling: More robust error handling throughout the application
  • Improved Documentation: Updated help text with clear examples for all commands

Getting Started

To install or upgrade:

# From source
go install github.com/user-cube/kontext@latest

# Or download the binary from the releases page

Example Usage

# Show interactive context selector
kontext

# Switch context and select namespace
kontext switch my-context -n

# List all available contexts
kontext list

# Show current context and namespace
kontext current

What's Changed

Full Changelog: v1.0.0...v1.1.0

v1.0.0

09 May 15:54
4845a81

Choose a tag to compare

Release Notes - Kontext v1.0.0

Overview

Kontext is a powerful CLI tool that simplifies Kubernetes context and namespace management, allowing developers and operators to switch between clusters and namespaces quickly and effortlessly.

Features

Context Management

  • 🔄 Interactive Context Switching: Dynamically select and switch between Kubernetes contexts with an intuitive terminal UI
  • 📋 Context Listing: View all available contexts with clear indication of the current active context
  • 🔍 Current Context Display: Quickly identify your active context
  • 🎯 Tab Completion: Command-line completion for context names

Namespace Management

  • 🔄 Dynamic Namespace Selection: Interactively select namespaces from your active cluster
  • 🌐 Real-time Namespace Retrieval: Automatically fetches available namespaces from your Kubernetes cluster
  • 🔍 Current Namespace Display: Easily see which namespace is active in your current context
  • 🔀 Combined Workflow: Switch context and namespace in a single command

User Experience

  • 🎨 Color-coded Output: Visually distinct, color-coded terminal output for improved readability
  • ⌨️ Shell Completion: Support for Bash, Zsh, and Fish shell completion
  • 🚀 Intuitive Commands: Simple, memorable commands with aliases for increased productivity
  • 🔄 Graceful Fallbacks: Works even when offline or when clusters are unreachable

Installation

# Install using Go
go install github.com/user-cube/kontext@latest

# Or download the appropriate binary for your platform from the releases page

Usage Examples

# Interactive context selection (default behavior)
kontext

# List all available contexts
kontext list

# Show current context
kontext current

# Switch to a specific context with tab completion
kontext switch my-context

# View and select namespaces
kontext namespace

# Switch context and then set namespace in one command
kontext switch -n

Compatibility

  • Works across Linux, macOS, and Windows
  • Compatible with standard kubeconfig files
  • Built with Go 1.23

Known Issues

  • None reported at this time