Skip to content

v1.1.0

Choose a tag to compare

@user-cube user-cube released this 09 May 22:46
· 44 commits to main since this release
7bd85f2

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