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
reason="--credentials-file was specified without --venafi-cloud"
475
-
default:
476
-
if!flags.MachineHubMode {
477
-
returnCombinedConfig{}, nil, fmt.Errorf("no TLSPK mode specified and MachineHub mode is disabled. You must either enable the MachineHub mode (using --machine-hub), or enable one of the TLSPK modes.\n"+
478
-
"To enable one of the TLSPK modes, you can:\n"+
479
-
" - Use (--venafi-cloud with --credentials-file) or (--client-id with --private-key-path) to use the "+string(VenafiCloudKeypair) +" mode.\n"+
480
-
" - Use --venafi-connection for the "+string(VenafiCloudVenafiConnection) +" mode.\n"+
481
-
" - Use --credentials-file alone if you want to use the "+string(JetstackSecureOAuth) +" mode.\n"+
482
-
" - Use --api-token if you want to use the "+string(JetstackSecureAPIToken) +" mode.\n"+
483
-
"Note that it is possible to use one of the TLSPK modes along with the MachineHub mode (--machine-hub).")
484
-
}
485
-
423
+
caseflags.MachineHubMode:
424
+
mode=MachineHub
425
+
reason="--machine-hub was specified."
426
+
caseflags.OutputPath!="":
486
427
mode=Off
428
+
reason="--output-path was specified. Data will be saved to a file. It will not be uploaded."
429
+
default:
430
+
returnCombinedConfig{}, nil, fmt.Errorf("no upload mode specified. You must either enable one of the upload modes, or use --output-path to save data to a file.\n"+
431
+
"To enable one of the upload modes, you can:\n"+
432
+
" - Use (--venafi-cloud with --credentials-file) or (--client-id with --private-key-path) to use the "+string(VenafiCloudKeypair) +" mode.\n"+
433
+
" - Use --venafi-connection for the "+string(VenafiCloudVenafiConnection) +" mode.\n"+
434
+
" - Use --credentials-file alone if you want to use the "+string(JetstackSecureOAuth) +" mode.\n"+
435
+
" - Use --api-token if you want to use the "+string(JetstackSecureAPIToken) +" mode.\n"+
436
+
" - Use --machine-hub if you want to use the "+string(MachineHub) +" mode.")
no TLSPK mode specified and MachineHub mode is disabled. You must either enable the MachineHub mode (using --machine-hub), or enable one of the TLSPK modes.
198
-
To enable one of the TLSPK modes, you can:
197
+
no upload mode specified. You must either enable one of the upload modes, or use --output-path to save data to a file.
198
+
To enable one of the upload modes, you can:
199
199
- Use (--venafi-cloud with --credentials-file) or (--client-id with --private-key-path) to use the Venafi Cloud Key Pair Service Account mode.
200
200
- Use --venafi-connection for the Venafi Cloud VenafiConnection mode.
201
201
- Use --credentials-file alone if you want to use the Jetstack Secure OAuth mode.
202
202
- Use --api-token if you want to use the Jetstack Secure API Token mode.
203
-
Note that it is possible to use one of the TLSPK modes along with the MachineHub mode (--machine-hub).`))
203
+
- Use --machine-hub if you want to use the Machine Hub mode.`))
0 commit comments