diff --git a/pkg/cmd/target/kubernetes/create/create_test.go b/pkg/cmd/target/kubernetes/create/create_test.go index 01363191..2b6403b2 100644 --- a/pkg/cmd/target/kubernetes/create/create_test.go +++ b/pkg/cmd/target/kubernetes/create/create_test.go @@ -55,7 +55,7 @@ func TestAuthType_UsernamePassword(t *testing.T) { checkRemainingPrompts() assert.Equal(t, testAccountNames[0], opts.Account.Value) - assertK8sStandaredDetials(t, flags) + assertK8sStandaredDetails(t, flags) } func TestAuthType_Token(t *testing.T) { @@ -73,7 +73,7 @@ func TestAuthType_Token(t *testing.T) { checkRemainingPrompts() assert.Equal(t, testAccountNames[0], opts.Account.Value) - assertK8sStandaredDetials(t, flags) + assertK8sStandaredDetails(t, flags) } func TestAuthType_Azure(t *testing.T) { @@ -174,7 +174,7 @@ func TestAuthType_AWS(t *testing.T) { assert.Equal(t, 3600, opts.AssumedRoleSessionDuration.Value) assert.Equal(t, "extern id", opts.AssumedRoleExternalID.Value) assert.Equal(t, "eks cluster", opts.EKSClusterName.Value) - assertK8sStandaredDetials(t, flags) + assertK8sStandaredDetails(t, flags) } func getAccount() ([]accounts.IAccount, error) { @@ -200,7 +200,7 @@ func getK8sStandaredDetailsPA() []*testutil.PA { } } -func assertK8sStandaredDetials(t *testing.T, flags *k8s.CreateFlags) { +func assertK8sStandaredDetails(t *testing.T, flags *k8s.CreateFlags) { assert.Equal(t, "https://octopus.com", flags.KubernetesClusterURL.Value) assert.Equal(t, testCertNames[1], flags.Certificate.Value) assert.Equal(t, false, flags.SkipTLSVerification.Value) diff --git a/pkg/cmd/target/kubernetes/view/view.go b/pkg/cmd/target/kubernetes/view/view.go index ca6a4690..2ca14271 100644 --- a/pkg/cmd/target/kubernetes/view/view.go +++ b/pkg/cmd/target/kubernetes/view/view.go @@ -42,7 +42,7 @@ func contributeEndpoint(_ *shared.ViewOptions, targetEndpoint machines.IEndpoint data := []*output.DataRow{} endpoint := targetEndpoint.(*machines.KubernetesEndpoint) - data = append(data, output.NewDataRow("Kubernetes Cluster URL", endpoint.ClusterURL.String())) + data = append(data, output.NewDataRow("Authentication Type", endpoint.Authentication.GetAuthenticationType())) return data, nil }