diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a8a3e9c1d..a2082856a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ### 2.13.2 (TBD) +- Bugfix: Replaced `/` characters with a `-` when the authenticator service creates the kubeconfig in the Telepresence cache. - Feature: Configurable strategy (`auto`, `powershell`. or `registry`) to set the global DNS search path on Windows. Default is `auto` which means try `powershell` first, and if it fails, fall back to `registry`. @@ -37,7 +38,7 @@ - Feature: There's a new --address flag to the intercept command allowing users to set the target IP of the intercept. - Feature: The new flags `--docker-build`, and `--docker-build-opt` was added to `telepresence intercept` to facilitate a - docker run directly from a docker context. + docker run directly from a docker context. - Bugfix: Using `telepresence intercept --docker-run` now works with a container based daemon started with `telepresence connect --docker` diff --git a/pkg/client/docker/daemon.go b/pkg/client/docker/daemon.go index 659e7a9a01..d1b323796b 100644 --- a/pkg/client/docker/daemon.go +++ b/pkg/client/docker/daemon.go @@ -319,6 +319,7 @@ func enableK8SAuthenticator(ctx context.Context) error { // Store the file using its context name under the /kube directory const kubeConfigs = "kube" kubeConfigFile := config.CurrentContext + kubeConfigFile = strings.ReplaceAll(kubeConfigFile, "/", "-") kubeConfigDir := filepath.Join(filelocation.AppUserCacheDir(ctx), kubeConfigs) if err = os.MkdirAll(kubeConfigDir, 0o700); err != nil { return err