func ErrDecodeYaml(err error) error {
	return errors.New(ErrDecodeYamlCode, errors.Alert, []string{"Error occured while decoding YAML"}, []string{err.Error()}, []string{}, []string{})
}
ErrDecodeYaml is the error when the yaml unmarshal fails
package traefik
import (
	"fmt"
	"github.com/layer5io/meshkit/errors"
)
var (
	ErrInstallTraefikCode = "1032"
	ErrCreatingHelmIndexCode = "1033"
	ErrEntryWithAppVersionNotExistsCode = "1034"
	ErrHelmRepositoryNotFoundCode = "1035"
	ErrDecodeYamlCode = "1036"
	ErrMeshConfigCode = "1037"
	ErrApplyHelmChartCode = "1012"
	ErrConvertingAppVersionToChartVersionCode = "1038"
	ErrCreatingTraefikMeshClientCode = "1039"
	ErrSampleAppCode = "1040"
	ErrCustomOperationCode = "1041"
	ErrOpInvalidCode = "1042"
	ErrOpInvalid = errors.New(ErrOpInvalidCode, errors.Alert, []string{"Invalid operation"}, []string{}, []string{}, []string{})
	ErrNilClientCode = "1013"
	ErrInvalidOAMComponentTypeCode = "1014"
	ErrTraefikCoreComponentFailCode = "1015"
	ErrProcessOAMCode = "1016"
	ErrParseTraefikCoreComponentCode = "1017"
	ErrParseOAMComponentCode = "1018"
	ErrParseOAMConfigCode = "1019"
	ErrNilClient = errors.New(ErrNilClientCode, errors.Alert, []string{"kubernetes client not initialized"}, []string{"Kubernetes client is nil"}, []string{"kubernetes client not initialized"}, []string{"Reconnect the adaptor to Meshery server"})
	ErrParseOAMComponent = errors.New(ErrParseOAMComponentCode, errors.Alert, []string{"error parsing the component"}, []string{"Error occured while prasing application component in the OAM request made"}, []string{"Invalid OAM component passed in OAM request"}, []string{"Check if your request has vaild OAM components"})
	ErrParseOAMConfig = errors.New(ErrParseOAMConfigCode, errors.Alert, []string{"error parsing the configuration"}, []string{"Error occured while prasing component config in the OAM request made"}, []string{"Invalid OAM config passed in OAM request"}, []string{"Check if your request has vaild OAM config"})
	ErrGetLatestReleaseCode = "1020"
)
func ErrInstallTraefik(err error) error {
	return errors.New(ErrInstallTraefikCode, errors.Alert, []string{"Error with traefik operation"}, []string{err.Error()}, []string{}, []string{})
}