• Kubernetes Submit Queue's avatar
    Merge pull request #47004 from ixdy/bazel-stamp-multiple-packages · df1e2898
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    bazel: stamp multiple packages by using x_defs instead of linkstamp in go_binary rules
    
    **What this PR does / why we need it**: Fixes regression introduced sometime in the last few months that prevented bazel-built clusters from identifying version properly. 
    
    It does so by updating the bazelbuild/rules_go and kubernetes/repo-infra dependencies to support using stamp values in `go_binary` `x_defs`, and then changing our `go_binary` rules to use `x_defs` instead of `linkstamp`.
    
    This whole charade is necessary because we need to stamp version information in multiple packages.
    
    This pretty much only affects the bazel build, so it should be low risk.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #45298
    
    **Special notes for your reviewer**: depends on https://github.com/kubernetes/repo-infra/pull/18; should not be merged before it.
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    
    /assign @spxtr @mikedanese
    df1e2898
Name
Last commit
Last update
..
cmd/kube-scheduler Loading commit data...
pkg Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...