mirror of https://github.com/portainer/portainer
feat: add new property
parent
b40d22dc74
commit
deef770a28
|
@ -49,6 +49,7 @@ type publicSettingsResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
IsDockerDesktopExtension bool `json:"IsDockerDesktopExtension" example:"false"`
|
IsDockerDesktopExtension bool `json:"IsDockerDesktopExtension" example:"false"`
|
||||||
|
NewProperty string
|
||||||
}
|
}
|
||||||
|
|
||||||
// @id SettingsPublic
|
// @id SettingsPublic
|
||||||
|
@ -82,6 +83,7 @@ func generatePublicSettings(appSettings *portainer.Settings) *publicSettingsResp
|
||||||
KubeconfigExpiry: appSettings.KubeconfigExpiry,
|
KubeconfigExpiry: appSettings.KubeconfigExpiry,
|
||||||
Features: featureflags.FeatureFlags(),
|
Features: featureflags.FeatureFlags(),
|
||||||
IsAMTEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.OpenAMTConfiguration.Enabled,
|
IsAMTEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.OpenAMTConfiguration.Enabled,
|
||||||
|
NewProperty: portainer.NewProperty,
|
||||||
}
|
}
|
||||||
|
|
||||||
publicSettings.Edge.PingInterval = appSettings.Edge.PingInterval
|
publicSettings.Edge.PingInterval = appSettings.Edge.PingInterval
|
||||||
|
|
|
@ -1598,6 +1598,8 @@ type (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// NewProperty simulates a new property
|
||||||
|
NewProperty = "newprop"
|
||||||
// APIVersion is the version number of the Portainer API
|
// APIVersion is the version number of the Portainer API
|
||||||
APIVersion = "2.22.0"
|
APIVersion = "2.22.0"
|
||||||
// Edition is what this edition of Portainer is called
|
// Edition is what this edition of Portainer is called
|
||||||
|
|
Loading…
Reference in New Issue