@@ -670,7 +670,7 @@ export default function ClusterForm({
670
670
value = { state . url . value }
671
671
error = { state . url . error }
672
672
onChange = { handleOnChange }
673
- label = { clusterLabel }
673
+ label = { clusterLabel ( ) }
674
674
disabled = { isDefaultCluster ( ) }
675
675
placeholder = "Enter server URL"
676
676
dataTestid = "enter_server_url_input"
@@ -687,8 +687,8 @@ export default function ClusterForm({
687
687
? id !== 1
688
688
? DEFAULT_SECRET_PLACEHOLDER
689
689
: config ?. bearer_token
690
- ? config . bearer_token
691
- : ''
690
+ ? config . bearer_token
691
+ : ''
692
692
: state . token . value
693
693
}
694
694
onChange = { handleOnChange }
@@ -710,7 +710,9 @@ export default function ClusterForm({
710
710
< >
711
711
< hr />
712
712
< div className = "dc__position-rel dc__hover mb-20" >
713
- < span className = "form__input-header pb-20" > How do you want Devtron to connect with this cluster?</ span >
713
+ < span className = "form__input-header pb-20" >
714
+ How do you want Devtron to connect with this cluster?
715
+ </ span >
714
716
< span className = "pb-20" >
715
717
< KubectlConnectionRadio
716
718
toConnectViaProxy = { isConnectedViaProxyTemp }
@@ -719,8 +721,18 @@ export default function ClusterForm({
719
721
changeSSHAuthenticationType = { changeSSHAuthenticationType }
720
722
proxyUrl = { state . proxyUrl }
721
723
sshTunnelUser = { state . sshTunnelUser }
722
- sshTunnelPassword = { ( SSHConnectionType === SSHAuthenticationType . Password || SSHConnectionType === SSHAuthenticationType . Password_And_SSH_Private_Key ) ? state . sshTunnelPassword : { value : '' , error : '' } }
723
- sshTunnelPrivateKey = { ( SSHConnectionType === SSHAuthenticationType . SSH_Private_Key || SSHConnectionType === SSHAuthenticationType . Password_And_SSH_Private_Key ) ? state . sshTunnelPrivateKey : { value : '' , error : '' } }
724
+ sshTunnelPassword = {
725
+ SSHConnectionType === SSHAuthenticationType . Password ||
726
+ SSHConnectionType === SSHAuthenticationType . Password_And_SSH_Private_Key
727
+ ? state . sshTunnelPassword
728
+ : { value : '' , error : '' }
729
+ }
730
+ sshTunnelPrivateKey = {
731
+ SSHConnectionType === SSHAuthenticationType . SSH_Private_Key ||
732
+ SSHConnectionType === SSHAuthenticationType . Password_And_SSH_Private_Key
733
+ ? state . sshTunnelPrivateKey
734
+ : { value : '' , error : '' }
735
+ }
724
736
sshTunnelUrl = { state . sshTunnelUrl }
725
737
handleOnChange = { handleOnChange }
726
738
/>
0 commit comments