k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/cluster/log-dump/README.md (about)

     1  ## This directory is deprecated!
     2  
     3  Log dumping utility was ported from kubernetes/kubernetes repository to
     4  [kubernetes/test-infra](https://github.com/kubernetes/test-infra/tree/master/logexporter/cluster).
     5  If you require changes to this script, please consider migrating your jobs to use the new
     6  log dumping mechanism first.
     7  
     8  Currently, `log-dump.sh` file is added to every newly released `kubekins-e2e` image.
     9  In order to leverage that script, add `USE_TEST_INFRA_LOG_DUMPING` environment variable
    10  to your test job and set its value to `true`.
    11  
    12  ## Migration steps
    13  
    14  For the time being, only GCE and GKE providers are supported by the log-dump mechanism.
    15  To make the mechanism support your Kubernetes provider in tests using `kubekins-e2e`, modify
    16  the `logDumpPath` function in
    17  [kubetest](https://github.com/kubernetes/test-infra/tree/master/kubetest) to handle your provider and
    18  adapt [log-dump.sh](https://github.com/kubernetes/test-infra/blob/master/logexporter/cluster/log-dump.sh)
    19  in accord to your needs.