-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added a readonly flag to the install command #2530
Conversation
This change modifies the |
c66106e
to
8bec527
Compare
Whether or not to commit generated files is often a unwelcome choice isn't it. The scheme we use is to commit the file, but check that it produces the right results (by running
This will regenerate the particular file (as will You may find that it fails because you've introduced a whitespace change in the output -- use the whitespace-suppressing mustaches |
@@ -159,6 +159,9 @@ spec: | |||
|
|||
# Tell flux it has readonly access to the repo (default `false`) | |||
# - --git-readonly | |||
{{ if .GitReadOnly }} |
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.
For neatness in the output, it would be nice to output either the arg or it's commented-out analogue. E.g.,
{{ if .GitReadOnly }}
- --git-readonly
{{ else }}
# - --git-readonly
{{ end }}
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.
I've edited the template to take this into account, and also updated the generated template.
8bec527
to
50421c6
Compare
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.
Yep; neatly minimised. Thank you @sebikul
Allow the daemon to be installed with the readonly flag present using the install command. Modified the cmd flags and the deployment template.
50421c6
to
5125d37
Compare
I've rebased it as a prerequisite for merging .. waiting for CI to pass... |
Allow the daemon to be installed with the readonly flag present
using the install command. Modified the cmd flags and the deployment
template.