func cloneEnv(opt clonerefs.Options) ([]coreapi.EnvVar, error) {
	// TODO(fejta): use flags
	cloneConfigEnv, err := clonerefs.Encode(opt)
	if err != nil {
		return nil, err
	}
	return kubeEnv(map[string]string{clonerefs.JSONConfigEnvVar: cloneConfigEnv}), nil
}
func cloneEnv(opt clonerefs.Options) ([]coreapi.EnvVar, error) {
	
	cloneConfigEnv, err := clonerefs.Encode(opt)
	if err != nil {
		return nil, err
	}
	return kubeEnv(map[string]string{clonerefs.JSONConfigEnvVar: cloneConfigEnv}), nil
}
func cloneEnv ( opt clonerefs . Options ) ( [ ] coreapi . EnvVar , error ) { // TODO(fejta): use flags cloneConfigEnv , err := clonerefs . Encode ( opt ) if err != nil { return nil , err } return kubeEnv ( map [ string ] string { clonerefs . JSONConfigEnvVar : cloneConfigEnv } ) , nil }
// cloneEnv encodes clonerefs Options into json and puts it into an environment variable
cloneEnv encodes clonerefs Options into json and puts it into an environment variable