-
Notifications
You must be signed in to change notification settings - Fork 44
Letting flags be changed from outside #223
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,9 @@ | ||
| # Temporary Build Files | ||
| build/_output | ||
| build/_test | ||
| # Goland | ||
| .idea | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is that ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would say not change this .gitignore by far.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing those. |
||
| # Created by https://www.gitignore.io/api/go,vim,emacs,visualstudiocode | ||
| ### Emacs ### | ||
| # -*- mode: gitignore; -*- | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,9 +19,19 @@ limitations under the License. | |
|
|
||
| package test | ||
|
|
||
| const ( | ||
| import "os" | ||
|
|
||
| var ( | ||
| // ServingOperatorNamespace is the default namespace for serving operator e2e tests | ||
| ServingOperatorNamespace = "operator-tests" | ||
| ServingOperatorNamespace = getenv("TEST_NAMESPACE", "operator-tests") | ||
| // ServingOperatorName is the default operator name for serving operator e2e tests | ||
| ServingOperatorName = "knative-serving" | ||
| ServingOperatorName = getenv("TEST_RESOURCE", "knative-serving") | ||
| ) | ||
|
|
||
| func getenv(name, defaultValue string) string { | ||
| value, set := os.LookupEnv(name) | ||
| if !set { | ||
| value = defaultValue | ||
| } | ||
| return value | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| } | ||
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.
not 100% sure on getting this in.... I guess... shouldn't those be on your own global
.gitignore?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.
You mean by using
git config --global core.excludesfileoption?I think not many people actually use that. I didn't hear of that option, nor any of developers in my office (I know that's not representative 😉)
On top that it is easier for newcomers, so that repo declares those ignores.