Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getPercentValue (0.11 sec)

  1. pkg/apis/apps/validation/validation.go

    	default:
    		allErrs = append(allErrs, field.Invalid(fldPath, intOrPercent, "must be an integer or percentage (e.g '5%%')"))
    	}
    	return allErrs
    }
    
    func getPercentValue(intOrStringValue intstr.IntOrString) (int, bool) {
    	if intOrStringValue.Type != intstr.String {
    		return 0, false
    	}
    	if len(validation.IsValidPercent(intOrStringValue.StrVal)) != 0 {
    		return 0, false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
Back to top