-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[installer] Add disableDefinitelyGp config option #8308
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 |
---|---|---|
|
@@ -88,6 +88,8 @@ type Config struct { | |
|
||
SSHGatewayHostKey *ObjectRef `json:"sshGatewayHostKey,omitempty"` | ||
|
||
DisableDefinitelyGP bool `json:"disableDefinitelyGp,omitempty"` | ||
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. @corneliusludmann Would it make sense to start this out in Not particular to this flag, but I fear that we start cluttering the config surface again. And I wonder how many installations make use of this flag...? 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. Glad you ask. Very important points. Regarding I don't see this as an experimental flag because this is needed by customers already. Experimental config values are more values that we use internally but don't expect that users need this. We don't want to tell customers to use experimental flags when they want to install Gitpod in air-gap mode. Regarding an I personally would also prefer an installer vs. Replicated ... since we would like customers to move to Replicated eventually, they shouldn't have much to do with the installer config. That means we will set the config that is needed for air-gap installations automatically when users run an air-gap installation with Replicated. The high-level user config surface moves to Replicated and it is ok to have more technical flags in the config. But again, I think it's important to think about it and really appreciate your thoughts on this. Happy to hear other thoughts as well. 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.
Oh, that's complete news to me, thx for sharing! I always thought the installer config is what we're optimizing for. |
||
|
||
Experimental *experimental.Config `json:"experimental,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.
What happens if this value is not provided in the config? I think we should validate the config and put a default value of
false
inThere 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.
false
is the default value for bool values in Go. When the value is not given,ctx.Config.DisableDefinitelyGP
isfalse
.The more interesting question is what happens if you don't specify a bool value in your config. However, since the type is bool providing something like
disableDefinitelyGp: fake
would lead to:Is this good enough?
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.
Yup, I'm happy with that.
It's probably worth setting the tags as
json:"disableDefinitelyGp,omitempty" validate:"boolean"
to give a bit of protection to avoid someone putting infake
etc