-
Notifications
You must be signed in to change notification settings - Fork 204
Description
Describe the enhancement:
Introduce a statePersistence parameter for each agent preset in the Helm chart, with default configurations based on the preset mode. Managing agent state in conjunction with the agent deployment mode can be complex and non-intuitive for users. Therefore, the Helm chart should simplify this process by providing sensible defaults while allowing flexibility for custom configurations. The statePersistence parameter accepts the following values:
HostPath: Suitable for agents running integrations that require data persistence. This will be the default for thedaemonsetmode of the agent preset if the parameter is not set.EmptyDir: Suitable for agents running integrations that do not require data persistence. This will be the default forstatefulsetanddeploymentmodes of the agent preset if the parameter is not set.None: Disables automated state persistence, allowing users to configure custom volumes.
Users can override the defaults by setting statePersistence to None and using the existing extraVolumes and extraVolumeMounts parameters to define custom volume configurations.
Describe a specific use case for the enhancement or feature:
This feature provides a seamless way to handle agent state persistence. For example, DaemonSet agents can use HostPath for persistent data, while StatefulSet and Deployment agents use EmptyDir for ephemeral storage. By automating state management based on deployment mode, the Helm chart makes it easier for users to deploy agents without worrying about intricate volume configurations. Advanced users can disable the default behavior and configure custom volumes as needed.
What is the definition of done?
- The Helm chart introduces a
statePersistenceenum parameter with values:HostPath,EmptyDir, andNone. - Safe defaults:
HostPathfor DaemonSet,EmptyDirfor StatefulSet and Deployment. - Users can specify
Noneto disable defaults and define custom volumes withextraVolumesandextraVolumeMounts. - Documentation is updated to explain the
statePersistenceparameter, defaults, and customization options.