You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rancher version: 2.6-head 78017e6
Browser type & version: Chrome
Describe the bug
Currently we can set the value for kubeconfig-default-ttl-minutes setting in the UI to any non-integer values. By accidentally setting the value to a non-integer value, when we try to download the kubeconfig button, the file will not be downloaded and fails with an error
To Reproduce
On rancher v2.6-head, navigate to global settings >> Settings >> set kubeconfig-token-ttl-minutes to 2/
Navigate to local explorer, click on download kubeconfig button
Result
Download fails with the error message: "failed to get default token TTL: failed to parse setting 'kubeconfig-default-ttl-minutes': error parsing token ttl: time: unknown unit \";m\" in duration \"2;m\"" Expected Result
UI not allowing to save non integer values.
Setup
Rancher version: 2.6-head
78017e6
Browser type & version: Chrome
Describe the bug
Currently we can set the value for
kubeconfig-default-ttl-minutes
setting in the UI to any non-integer values. By accidentally setting the value to a non-integer value, when we try to download the kubeconfig button, the file will not be downloaded and fails with an errorTo Reproduce
kubeconfig-token-ttl-minutes
to2/
Result
Download fails with the error
message: "failed to get default token TTL: failed to parse setting 'kubeconfig-default-ttl-minutes': error parsing token ttl: time: unknown unit \";m\" in duration \"2;m\""
Expected Result
UI not allowing to save non integer values.
Related: #6120
The text was updated successfully, but these errors were encountered: