Skip to content

Commit f1ef159

Browse files
authored
Fix storage of separate kubeconfig file (--self-contained) for EKS workload clusters (#1211)
1 parent c9ed7d2 commit f1ef159

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s
2424

2525
- Add support for device authentication flow in the `login` command and a new `--device-auth` flag to activate it.
2626

27+
### Fixed
28+
29+
- Fix storage of separate kubeconfig file (`--self-contained`) for EKS workload clusters
30+
2731
## [2.47.1] - 2023-11-15
2832

2933
### Changed

cmd/login/wc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func (r *runner) storeWCClientCertCredentials(c clientCertCredentialConfig) (str
349349

350350
func (r *runner) storeAWSIAMCredentials(c eksClusterConfig) (string, bool, error) {
351351
k8sConfigAccess := r.commonConfig.GetConfigAccess()
352-
if r.loginOptions.selfContained && c.filePath != "" {
352+
if r.loginOptions.selfContainedWC && c.filePath != "" {
353353
return printWCAWSIamCredentials(k8sConfigAccess, r.fs, c, r.loginOptions.contextOverride)
354354
}
355355
return storeWCAWSIAMKubeconfig(k8sConfigAccess, c, r.loginOptions.contextOverride)

0 commit comments

Comments
 (0)