• Kubernetes Submit Queue's avatar
    Merge pull request #51216 from stevekuznetsov/skuznets/fix-import-verifier · 23ba6038
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 50719, 51216, 50212, 51408, 51381)
    
    Fix prefixing bug in import verifier
    
    In order to check if an import is of an allowed tree, we need to check
    that the import is either literally to the base of the tree or that the
    import is below the tree (the import, suffixed with `/`, should be a
    prefix) instead of checking simply that the import is a prefix of the
    allowed tree, as that causes issues with packages that are prefixes of
    each other, like `k8s.io/api` and `k8s.io/apimachinery`.
    Signed-off-by: 's avatarSteve Kuznetsov <skuznets@redhat.com>
    
    ```release-note
    NONE
    ```
    
    Fixes https://github.com/kubernetes/kubernetes/issues/51212
    /assign @sttts @deads2k 
    
    This will be broken right now hopefully you'll be able to build on top to fix it @sttts
    23ba6038
Name
Last commit
Last update
..
clicheck Loading commit data...
cloud-controller-manager Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
gke-certificates-controller Loading commit data...
hyperkube Loading commit data...
importverifier Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-proxy Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
linkcheck Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...