• noqcks's avatar
    Add validation for kube-scheduler · 0334a34e
    noqcks authored
    adding validation for componentconfig
    
    adding validation to cmd kube-scheduler
    
    Add support for ipv6 in IsValidSocketAddr function
    
    updating copyright date in componentconfig/validation/validation.go
    
    updating copyright date in componentconfig/validation/validation_test.go
    
    adding validation for cli options
    
    adding BUILD files
    
    updating validate function to return []errors in cmd/kube-scheduler
    
    ok, really returning []error this time
    
    adding comments for exported componentconfig Validation functions
    
    silly me, not checking structs along the way :'(
    
    refactor to avoid else statement
    
    moving policy nil check up one function
    
    rejigging some deprecated cmd validations
    
    stumbling my way around validation slowly but surely
    
    updating according to review from @bsalamat
    
    - not validating leader election config unless leader election is enabled
    - leader election time values cannot be zero
    - removing validation for KubeConfigFile
    - removing validation for scheduler policy
    
    leader elect options should be non-negative
    
    adding test cases for renewDeadline and leaseDuration being zero
    
    fixing logic in componentconfig validation 😅
    
    removing KubeConfigFile reference from tests as it was removed in master
    
    https://github.com/kubernetes/kubernetes/commit/2ff9bd6699ccdfb1f46c4aeda01518990ff71eda
    
    removing bogus space after var assignment
    
    adding more tests for componentconfig based on feedback
    
    making updates to validation because types were moved on master
    
    update bazel build
    
    adding validation for staging/apimachinery
    
    adding validation for staging/apiserver
    
    adding fieldPaths for staging validations
    
    moving staging validations out of componentconfig
    
    updating test case scenario for staging/apimachinery
    
    ./hack/update-bazel.sh
    
    moving kube-scheduler validations from componentconfig
    
    ./hack/update-bazel.sh
    
    removing non-negative check for QPS
    
    resourceLock required
    
    adding HardPodAffinitySymmetricWeight 0-100 range to cmd flag help section
    0334a34e
BUILD 1.17 KB