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

create new cli command for kubefirst create github-cluster #158

Closed
johndietz opened this issue Jul 26, 2022 · 8 comments
Closed

create new cli command for kubefirst create github-cluster #158

johndietz opened this issue Jul 26, 2022 · 8 comments
Assignees

Comments

@johndietz
Copy link
Contributor

No description provided.

@6za
Copy link
Contributor

6za commented Jul 26, 2022

Define the CLI require flags for the command, to ensure we know from get-go what is needed from github and how to differentiate from a gitlab installation.

@6za
Copy link
Contributor

6za commented Jul 26, 2022

We start as 2 different create journeys, on a later ticket we have a "wrapper" create that use flags to select the proper installation strategy.

@6za 6za self-assigned this Jul 27, 2022
@6za
Copy link
Contributor

6za commented Jul 27, 2022

Reviewing a bit the logic we use:

  • We usually add parameters at the init command, not the create one.
  • Eventually we need to change init to capture configs needed to support github
  • Update .kubefirst to support it
  • When running create we check if the plan, match the execution command.

New create strategy, based on github.

  • If all good, installation proceeds as desired.

@6za
Copy link
Contributor

6za commented Jul 27, 2022

Based on this exploration:
https://github.com/kubefirst/kubefirst/blob/eedfe3ed34c13a64d06193a55d9d3dd51e9fb93d/cmd/createGithub.go

Questions:

  • Does anything changes on setup of ArgoCD?
  • How to improve Hand-off screen to support github/gitlab?

Different object, Object architecture, "Strategy pattern" or different pattern of reuse.

Assumptions:

@6za
Copy link
Contributor

6za commented Jul 27, 2022

Exploring a bit how to integrate to github to try to automate github access.

@6za
Copy link
Contributor

6za commented Jul 27, 2022

Github Actions needed:

do we create the keys, or the user does that

@6za
Copy link
Contributor

6za commented Jul 27, 2022

How to get the github token?

  • Viper: As part of viper, may makes some user uncomfortable, but possible. The issue is that to load it viper it needs to be passed to init to add it to the .kubefirst file.
  • Init Parameter: For demo to pass the token from a parameter may be bad for laking it on demos, so eventually it end-up a environment variable to hide value on demos.
  • ENV Vars: Env variables seems to be the way most APIs use it.

I would go with Env Variable as most projects does.

@6za
Copy link
Contributor

6za commented Aug 29, 2022

Added on #223

@6za 6za closed this as completed Aug 29, 2022
@6za 6za added this to the Prepare or 1.9.0 milestone Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants