code: func ValidateFeatureGates(featureGates map[string]bool, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  
  	// check valid feature names are provided
  	for k := range featureGates {
  		if !features.Supports(features.InitFeatureGates, k) {
  			allErrs = append(allErrs, field.Invalid(fldPath, featureGates,
  				fmt.Sprintf("%s is not a valid feature name.", k)))
  		}
  	}
  
  	return allErrs
  }
docs: // ValidateFeatureGates validates provided feature gates