-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
config: add project-name
config key and optional init --project-name
#1603
config: add project-name
config key and optional init --project-name
#1603
Conversation
pkg/plugin/v3/init.go: add --project-name which sets a config's 'project-name' key
Holding for discussion /hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
For you are able to merge when you wish.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, estroz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Thanks! |
/hold cancel |
LGTM |
@@ -41,6 +41,9 @@ type Config struct { | |||
// Repo is the go package name of the project root | |||
Repo string `json:"repo,omitempty"` | |||
|
|||
// ProjectName is the name of this controller project set on initialization. | |||
ProjectName string `json:"project-name,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit here:
Since Kubernetes YAMLs usually use camelCase
, should we make this projectName
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably :) @estroz want to follow up with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR adds a
project-name
config key and an optionalinit --project-name
to the v3-alpha plugin. Plugin authors for non-Go plugins will find such a key useful, asrepo
doesn't make much sense for non-Go plugins. This reverts #1596 behavior.Changes:
/cc @pwittrock @camilamacedo86