Add generate systemd -e/--env option

-e/--env option sets environment variables to the systemd unit files.

Fixes: #15523

Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
Toshiki Sonoda
2022-09-02 16:20:26 +09:00
parent 9ab6449e36
commit a9a411f8a8
11 changed files with 263 additions and 150 deletions

View File

@@ -93,6 +93,13 @@ func (s *APIServer) registerGenerateHandlers(r *mux.Router) error {
// type: string
// default: []
// description: Systemd Requires list for the container or pods.
// - in: query
// name: additionalEnvVariables
// type: array
// items:
// type: string
// default: []
// description: Set environment variables to the systemd unit files.
// produces:
// - application/json
// responses: