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
I need to disable most aliases and sensors that are enabled by default in system packs (st2, linux, and packs).
Since I need to adjust the system packs, I need this to do this whenever helm install or helm upgrade changes the system packs but before the content in the system packs gets registered.
Also, I want to ensure that these aliases are never enabled, so merely disabling them via API/UI once enabled is not good enough as that opens up a brief window where people can use !pack install and similar aliases that we don't want users to do via chatops.
I'm planning to use this with #199 (st2.packs.volumes), but it would also make sense when using st2.packs.images. With st2.packs.images, the custom images are copied into the emptyDir first, followed by the system packs (in the packs-initContainers helper template). So, custom images in st2.packs.images cannot change the system packs to disable unwanted aliases.
The helm chart uses {{ .Release.Name }}-job-st2-register-content to run st2-register-content. So, I think the ideal would be to allow for a custom initContainer on that Job. Then the question becomes: Where does such an initContainer definition go in values? st2.packs.registerContentInitContainer? jobs.registerContent.initContainer? Something else?
What should the UX for this look like?
The text was updated successfully, but these errors were encountered:
I need to disable most aliases and sensors that are enabled by default in system packs (
st2
,linux
, andpacks
).Since I need to adjust the system packs, I need this to do this whenever
helm install
orhelm upgrade
changes the system packs but before the content in the system packs gets registered.Also, I want to ensure that these aliases are never enabled, so merely disabling them via API/UI once enabled is not good enough as that opens up a brief window where people can use
!pack install
and similar aliases that we don't want users to do via chatops.I'm planning to use this with #199 (
st2.packs.volumes
), but it would also make sense when usingst2.packs.images
. Withst2.packs.images
, the custom images are copied into theemptyDir
first, followed by the system packs (in thepacks-initContainers
helper template). So, custom images inst2.packs.images
cannot change the system packs to disable unwanted aliases.The helm chart uses
{{ .Release.Name }}-job-st2-register-content
to runst2-register-content
. So, I think the ideal would be to allow for a custominitContainer
on thatJob
. Then the question becomes: Where does such an initContainer definition go in values?st2.packs.registerContentInitContainer
?jobs.registerContent.initContainer
? Something else?What should the UX for this look like?
The text was updated successfully, but these errors were encountered: