• Kubernetes Submit Queue's avatar
    Merge pull request #46809 from rickypai/rpai/properly_validate_hostalias_hostnames · 41541910
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 46977, 47005, 47018, 47061, 46809)
    
    Fix HostAlias to validate against DNS1123 hostname instead of just labels
    
    **What this PR does / why we need it**: the validation for HostAlias was validating the hostnames against DNS labels instead of hostnames. This means hostnames like `foo.bar` would fail. I did not catch this because unit test cases only had hostnames like `foo`.
    
    **Which issue this PR fixes**: fixes issue introduced in #44641
    
    **Release note**:
    ```release-note
    fixed HostAlias in PodSpec to allow `foo.bar` hostnames instead of just `foo` DNS labels.
    ```
    41541910
Name
Last commit
Last update
..
testdata/v1 Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...
events.go Loading commit data...
events_test.go Loading commit data...
schema.go Loading commit data...
schema_test.go Loading commit data...
validation.go Loading commit data...
validation_test.go Loading commit data...