feat: add new property

pull/12289/head
deviantony 2024-10-03 06:53:08 +00:00
parent b40d22dc74
commit deef770a28
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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