Comments (4)
Eek sorry I see what you’re saying, I was talking about in zarf init. For regenerate we should make the ui consistent and prompt like init does eventually but for now just leaving as a required (no default value) flag is probably fine.
from zarf.
36: pkiRegenerate.Flags().StringVar(&pkiOptions.Host, "host", "zarf-server", "Specify the host or IP for the gitops service ingress")
37: _ = pkiRegenerate.MarkFlagRequired("host")
https://github.com/defenseunicorns/zarf/blob/master/cli/cmd/pki.go#L36 defines the --host flag as having a default of zarf-server
but then also marks the flag as required making it so a user would have to manually put a host no matter what.
This is would be confusing for new (or non-technical) users since cobra compiles the help docs from zarf pki regenerate --help
to say --host string Specify the host or IP for the gitops service ingress (default "zarf-server")
which implies you don't need to do anything.
Do we want "zarf-server" to actually be a default or do we want to force the user to pass in their own value for the flag?
from zarf.
Actually neither. It’s a bit funkier than that. That’s just legacy code we can probably remove. There are cases where a host isn’t needed at all—such as when you provide your own tls keypair. I think the best thing for now would be to drop the required flag (if it’s required) and the default value. They should still be prompted. Eventually I’d like to not ask for the host name if they aren’t generating pki.
from zarf.
Just to make sure I'm 100% following, the required flag I pointed out was for the ./zarf pki regenerate
command. Farther along in the code it uses the hostname to generate the cert. Are you saying it's okay if the hostname is an empty string at this point?
from zarf.
Related Issues (20)
- Web UI: Replace Zarf logo with a higher quality graphic
- Zarf connect does not work for named ports
- Zarf Connect "creating" a Port Forward
- Better messaging on Shallow `git` Clones HOT 2
- NCurses Style Deployment UI
- Better error message when using old kubernetes version HOT 1
- Ability to easily download the init package HOT 1
- Reduce Verbosity to import multi-component Zarf package HOT 2
- Add messaging style to the Zarf style guide and update english.go accordingly
- Improve the experience when rolling nodes that have the Zarf registry deployed to them (to include private-registry secret updates) HOT 2
- [docs] Update --storage-class flag to specify that it sets the storageclass for Gitea too. HOT 1
- Move package create/deploy warnings to the package confirmation warnings section
- Latest zarf version (0.26.3 as well) cannot deploy package without k8s present HOT 3
- Make non-credential init values Zarf variables instead HOT 1
- intermittent issue: zarf package deploy --set value is not honored
- BUG: Zarf Injector can attempt to spin up on nodes that have a NoSchedule taint
- Write the Package secret after each deployed component.
- Switch to more named errors (particularly in `src/pkg`)
- Progress text while pushing images has visual bugs
- Cannot recreate k3s (zarf init) after destroying it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zarf.