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

Add plan command node-token command #416

Merged
merged 5 commits into from
Oct 27, 2023
Merged

Commits on Oct 18, 2023

  1. Add plan and node-token commands

    * plan can be used to generate a bash script to install a HA
    cluster - a minimum set of options are included, PRs are welcome
    to add anything else you may need
    * node-token obtains a node token for k3sup join, which is
    required when creating large clusters via automation, so that
    there are not too many SSH connections created when it's not
    required
    * a helper method was added to obtain an SSH connection,
    rather than repeating it in each command
    
    Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
    alexellis committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    35e3a3a View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. Move temporary file deletion into a defer

    This is required so that the temporary file, which is
    potentially sensitive, gets cleaned up even if the function
    exits early.
    
    Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
    alexellis committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    f0cdefa View commit details
    Browse the repository at this point in the history
  2. Update examples for k3sup plan

    Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
    alexellis committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    b895cf6 View commit details
    Browse the repository at this point in the history
  3. Use an env-var for the node-token instead of a file

    Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
    alexellis committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    3e94ac6 View commit details
    Browse the repository at this point in the history
  4. Use node-token from an env-var instead of a file

    This reduces the risk of the resulting file being committed
    
    Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
    alexellis committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    d35edd4 View commit details
    Browse the repository at this point in the history