-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add preRegisterContentCommand in an initContainer for register-content job #213
Add preRegisterContentCommand in an initContainer for register-content job #213
Conversation
1a7fc31
to
7c3d1f0
Compare
b38aad4
to
7fb8c5a
Compare
@armab I just wrapped up this PR too. This is |
d04f829
to
9e531dd
Compare
- document preRegistercontentCommand - changelog entry
9e531dd
to
adce47a
Compare
@armab I think this is the easiest open k8s PR to merge. Similar to the |
# If defined, this preRegisterContentCommand runs in an initContainer on the st2-register-content Job. | ||
# The initContainer also uses the st2actionrunner image but runs this command instead of its entrypoint. | ||
preRegisterContentCommand: [] | ||
# For example, to disable aliases in the "packs" system pack before content is registered: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a good example 👍
Thanks for highlighting the use case here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this enhancement!
Thank you! |
Allow a custom command to run just before
st2-register-content
that can disable aliases/sensors in system packs.For example
Closes: #211