• Kubernetes Submit Queue's avatar
    Merge pull request #41937 from cheftako/changePassword · 5981ce30
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 41937, 41151, 42092, 40269, 42135)
    
    GCE will properly regenerate basic_auth.csv on kube-apiserver start.
    
    **What this PR does / why we need it**:
    
    If basic_auth.csv does not exist we will generate it as normal.
    If basic_auth.csv exists we will remove the old admin password before adding the "new" one. (Turns in to a no-op if the password exists).
    This did not work properly before because we were replacing by key, where the key was the password. New password would not match and so not replace the old password.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #41935
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    ```
    5981ce30
config-default.sh 8.95 KB