func GetOpenEBSImagePullSecrets() []v1.LocalObjectReference {
	secrets := strings.TrimSpace(os.Getenv(IMAGE_PULL_SECRETS_ENV))

	list := make([]v1.LocalObjectReference, 0)

	if len(secrets) == 0 {
		return list
	}
	arr := strings.Split(secrets, ",")
	for _, item := range arr {
		if len(item) > 0 {
			l := v1.LocalObjectReference{Name: strings.TrimSpace(item)}
			list = append(list, l)
		}
	}
	return list
}
// GetOpenEBSImagePullSecrets is used to get the image pull secrets from the environment variable
GetOpenEBSImagePullSecrets is used to get the image pull secrets from the environment variable
// GetOpenEBSImagePullSecrets is used to get the image pull secrets from the environment variable
func GetOpenEBSImagePullSecrets() []v1.LocalObjectReference {
	secrets := strings.TrimSpace(os.Getenv(IMAGE_PULL_SECRETS_ENV))
	list := make([]v1.LocalObjectReference, 0)
	if len(secrets) == 0 {
		return list
	}
	arr := strings.Split(secrets, ",")
	for _, item := range arr {
		if len(item) > 0 {
			l := v1.LocalObjectReference{Name: strings.TrimSpace(item)}
			list = append(list, l)
		}
	}
	return list
}
func GetOpenEBSImagePullSecrets ( ) [ ] v1 . LocalObjectReference { secrets := strings . TrimSpace ( os . Getenv ( IMAGE_PULL_SECRETS_ENV ) ) list := make ( [ ] v1 . LocalObjectReference , 0 ) if len ( secrets ) == 0 { return list } arr := strings . Split ( secrets , " " ) for _ , item := range arr { if len ( item ) > 0 { l := v1 . LocalObjectReference { Name : strings . TrimSpace ( item ) } list = append ( list , l ) } } return list }
GetOpenEBSImagePullSecrets is used to get the image pull secrets from the environment variable
GetOpenEBSImagePullSecrets is used to get the image pull secrets from the environment variable