@@ -38,28 +38,28 @@ func GenerateLetsEncryptCert(ctx context.Context, client cliClient.Client) error
38
38
}
39
39
}
40
40
if cnt == 0 {
41
- term .Infof ("No services found need to generate Let's Encrypt cert" )
41
+ term .Infof (" * No services found need to generate Let's Encrypt cert" )
42
42
}
43
43
44
44
return nil
45
45
}
46
46
47
47
func generateCert (ctx context.Context , domain , albDns string ) {
48
- term .Infof ("Triggering Let's Encrypt cert generation for %v" , domain )
48
+ term .Infof (" * Triggering Let's Encrypt cert generation for %v" , domain )
49
49
if err := waitForCNAME (ctx , domain , albDns ); err != nil {
50
50
term .Errorf ("Error waiting for CNAME: %v" , err )
51
51
return
52
52
}
53
53
54
- term .Infof ("%v DNS is properly configured!" , domain )
54
+ term .Infof (" * %v DNS is properly configured!" , domain )
55
55
if err := checkTLSCert (ctx , domain ); err == nil {
56
- term .Infof ("TLS cert for %v is already ready" , domain )
56
+ term .Infof (" * TLS cert for %v is already ready" , domain )
57
57
return
58
58
}
59
- term .Infof ("Triggering cert generation for %v" , domain )
59
+ term .Infof (" * Triggering cert generation for %v" , domain )
60
60
triggerCertGeneration (ctx , domain )
61
61
62
- term .Infof ("Waiting for TLS cert to be online for %v" , domain )
62
+ term .Infof (" * Waiting for TLS cert to be online for %v" , domain )
63
63
if err := waitForTLS (ctx , domain ); err != nil {
64
64
term .Errorf ("Error waiting for TLS to be online: %v" , err )
65
65
// FIXME: Add more info on how to debug, possibly provided by the server side to avoid client type detection here
@@ -144,9 +144,9 @@ func waitForCNAME(ctx context.Context, domain, albDns string) error {
144
144
cname = strings .TrimSuffix (cname , "." )
145
145
if err != nil || strings .ToLower (cname ) != strings .ToLower (albDns ) {
146
146
if ! msgShown {
147
- term .Infof ("Please setup CNAME record for %v" , domain )
147
+ term .Infof (" * Please setup CNAME record for %v" , domain )
148
148
fmt .Printf (" %v CNAME %v\n " , domain , strings .ToLower (albDns ))
149
- term .Infof ("Waiting for CNAME record setup and DNS propagation..." )
149
+ term .Infof (" * Waiting for CNAME record setup and DNS propagation..." )
150
150
msgShown = true
151
151
}
152
152
if doSpinner {
@@ -203,7 +203,7 @@ func waitForCNAMEInSync(ctx context.Context, domain string) (string, error) {
203
203
for _ , n := range ns {
204
204
cname , err = resolverAt (n ).LookupCNAME (context .Background (), domain )
205
205
if err != nil {
206
- cnames [ "" ] = true
206
+ term . Debugf ( " - Error looking up CNAME for %v at %v: %v" , domain , n , err )
207
207
}
208
208
cnames [cname ] = true
209
209
}
0 commit comments