mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
feat(kompose): hide kompose [EE-4562] (#8084)
This commit is contained in:
parent
8fd0efa34f
commit
9cdc0da615
9 changed files with 92 additions and 5 deletions
|
@ -32,6 +32,8 @@ type settingsUpdatePayload struct {
|
|||
TemplatesURL *string `example:"https://raw.githubusercontent.com/portainer/templates/master/templates.json"`
|
||||
// The default check in interval for edge agent (in seconds)
|
||||
EdgeAgentCheckinInterval *int `example:"5"`
|
||||
// Show the Kompose build option (discontinued in 2.18)
|
||||
ShowKomposeBuildOption *bool `json:"ShowKomposeBuildOption" example:"false"`
|
||||
// Whether edge compute features are enabled
|
||||
EnableEdgeComputeFeatures *bool `example:"true"`
|
||||
// The duration of a user session
|
||||
|
@ -131,6 +133,10 @@ func (handler *Handler) settingsUpdate(w http.ResponseWriter, r *http.Request) *
|
|||
settings.TemplatesURL = *payload.TemplatesURL
|
||||
}
|
||||
|
||||
if payload.ShowKomposeBuildOption != nil {
|
||||
settings.ShowKomposeBuildOption = *payload.ShowKomposeBuildOption
|
||||
}
|
||||
|
||||
if payload.HelmRepositoryURL != nil {
|
||||
if *payload.HelmRepositoryURL != "" {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue