Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readFromSecret (0.15 sec)

  1. cmd/common-main.go

    		rootUser, err := readFromSecret(env.Get(config.EnvRootUserFile, ""))
    		if err != nil {
    			logger.Fatal(config.ErrInvalidCredentials(err),
    				"Unable to validate credentials inherited from the secret file(s)")
    		}
    		if rootUser != "" {
    			os.Setenv(config.EnvRootUser, rootUser)
    		}
    	}
    
    	if env.IsSet(config.EnvRootPasswordFile) {
    		rootPassword, err := readFromSecret(env.Get(config.EnvRootPasswordFile, ""))
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
Back to top