Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubeadm-init: add --copy-credentials-for-user #55901

Closed
wants to merge 1 commit into from

Commits on Apr 18, 2018

  1. kubeadm-init: add --copy-credentials-for-user

    Using this new parameter the administrator's credentials
    for the cluster will be copied to the specified
    user's home directory.
    
    WARNING: existing files will be overwritten.
    
    Usage:
        kubeadm init --copy-credentials-for-user=<someuser>
    
    Windows requires a different approach for copying the
    credentials than Unix, thus a new package is added -
    `platform` in `kubeadm/app/cmd`. It contains `init_unix.go`
    and `init_windows.go` that define the exported function -
    InitCopyCredentialsForUser(). The function works differently
    on Unix and Windows.
    
    The same package can be re-used for other multiplatform code.
    neolit123 committed Apr 18, 2018
    Configuration menu
    Copy the full SHA
    f67a150 View commit details
    Browse the repository at this point in the history