Skip to content

vks-k8s-auth v1.0.1

Latest

Choose a tag to compare

@tribock tribock released this 23 Jul 12:49
6b21dc8

v1.0.1

Patch release focused on packaging, documentation, tests, and CI hardening since v1.0.0.

Fixes

  • Authentication error reporting — failed login errors now include the target URL, making Supervisor or guest-cluster authentication failures easier to diagnose.
  • Deferred close handling — response-body and connection close errors are now handled without overwriting more meaningful existing errors.
  • Client initialization cleanup — client construction was streamlined internally by introducing a shared initialization path.
  • Guest cluster endpoint handling cleanup — redundant TLS config assignment was removed during guest-cluster client setup.

Documentation

  • pkg.go.dev documentation — added package-level GoDoc for pkg/client and pkg/k8s_utils.
  • pkg.go.dev examples — added rendered example functions for:
    • Supervisor authentication
    • Guest cluster authentication
    • kubeconfig generation from rest.Config
  • README improvements — added badges and refreshed package-facing documentation.

Tests

  • Comprehensive client tests — expanded coverage for authentication flows, kubeconfig generation, token helpers, TLS behavior, and HTTP client lifecycle.
  • Utility package tests — added dedicated tests for the extracted kubeconfig helper package.

Internal/package changes

  • Kubeconfig helper extractionConvertRESTConfigToKubeconfig was moved out of pkg/client into the new pkg/k8s_utils package.

CI / supply chain

  • golangci-lint workflow — added a dedicated lint and test workflow.
  • SBOM workflow updates — improved software bill of materials generation in the scan pipeline.
  • Go toolchain workflow hardening — CI was updated to avoid mixed-toolchain cache issues during lint and test runs.

Breaking changes

  • ConvertRESTConfigToKubeconfig is now provided by pkg/k8s_utils instead of pkg/client. Update imports accordingly if you were calling this helper directly.