You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to setup the config for elastic agents in the helm chart (ideally as many as we like). Or is there some other way we can automate this outside the chart?
If you leave on server.shouldPreconfigure it does create a cluster profile and elastic profile. However since it makes API calls to do so, it's really only going to work without authentication enabled, and likely as a once-off.
And it's certainly not designed to handle arbitrary user-defined profiles (from, say, a ConfigMap) and to use the API to sync them.
But yes, depending on your setup you can definitely automate this outside the chart, or perhaps
use a wrapper chart to make calls to the API
use server.sidecarContainers within the chart if you encapsulate everything in an image to make API calls
Activity
chadlwilson commentedon Feb 19, 2022
If you leave on
server.shouldPreconfigureit does create a cluster profile and elastic profile. However since it makes API calls to do so, it's really only going to work without authentication enabled, and likely as a once-off.And it's certainly not designed to handle arbitrary user-defined profiles (from, say, a
ConfigMap) and to use the API to sync them.But yes, depending on your setup you can definitely automate this outside the chart, or perhaps
server.sidecarContainerswithin the chart if you encapsulate everything in an image to make API callspreconfigureServerpossiblyCan look at the below for inspiration.
helm-chart/gocd/templates/configmap.yaml
Lines 12 to 149 in d448298