@@ -64,23 +64,6 @@ var _ = Describe("Cluster preparation", labels.Feature.Cluster, func() {
64
64
// For HCP cluster with other network type,it is required to set one configure:cilium
65
65
if profile .ClusterConfig .HCP && profile .ClusterConfig .NetworkType == "other" {
66
66
if clusterDetails .ExternalAuthentication == "Enabled" {
67
- By ("Create a fake external auth provider to avoid failure of console operator" )
68
- secretValue := fmt .Sprintf ("%s~%s~%s" ,
69
- helper .GenerateRandomStringWithSymbols (5 ),
70
- helper .GenerateRandomStringWithSymbols (10 ),
71
- helper .GenerateRandomStringWithSymbols (23 ))
72
- value := []string {
73
- "--name" , helper .GenerateRandomName ("provider" , 2 ),
74
- "--issuer-url" , "https://login.microsoftonline.com/fa5d3dd8-b8ec-4407-a55c-ced639f1c8c5/v2.0" ,
75
- "--issuer-audiences" , "8a769b34-13c9-4f5b-9933-ec439700ec67" ,
76
- "--claim-mapping-username-claim" , "email" ,
77
- "--claim-mapping-groups-claim" , "groups" ,
78
- "--console-client-id" , "8a769b34-13c9-4f5b-9933-ec439700ec67" ,
79
- "--console-client-secret" , secretValue ,
80
- }
81
- _ , err = client .ExternalAuthProvider .CreateExternalAuthProvider (clusterID , value ... )
82
- Expect (err ).ToNot (HaveOccurred ())
83
-
84
67
// it is not support to create htpasswd for cluster with xternal auth enabled
85
68
// create break-glass-credential to get kubeconfig
86
69
By ("Create a break glass credential" )
0 commit comments