• Kubernetes Submit Queue's avatar
    Merge pull request #61584 from AkihiroSuda/preserve-etcd · c70dd5aa
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 59027, 62333, 57661, 62086, 61584). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    local-up-cluster.sh: support preserving etcd optionally
    Signed-off-by: 's avatarAkihiro Suda <suda.akihiro@lab.ntt.co.jp>
    
    
    
    **What this PR does / why we need it**:
    
    Allow `hack/local-up-cluster.sh` to support preserve `ETCD_DIR` when `PRESERVE` is set to non-false value.
    
    usage:
    ```
    $ PRESERVE=true ETCD_DIR=/var/lib/etcd-kube-HEAD .... \
       ./hack/local-up-cluster.sh
    ```
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    (None)
    
    **Special notes for your reviewer**:
    (None)
    
    **Release note**:
    
    ```release-note
    None
    ```
    c70dd5aa
local-up-cluster.sh 38.9 KB