Skip to content
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

fix(templates): templates should be mounted if TLS disabled #262

Merged
merged 2 commits into from
Sep 17, 2021

Conversation

ebaron
Copy link
Member

@ebaron ebaron commented Sep 16, 2021

Just a case of nesting this code in a branch it shouldn't be in. I added a test case to ensure this works when TLS is disabled as well.

To test manually:

  1. make deploy IMG=<test_img> create_cryostat_cr
  2. Create a config map with a template file kubectl create configmap my-template --from-file=custom.jfc
  3. kubectl edit cryostat cryostat-sample, change spec.enableCertManager to false and add the template to spec.eventTemplates [1]
  4. Cryostat should not have a CA cert mounted, but the custom event template should be present.

Fixes #240

[1] https://github.com/cryostatio/cryostat-operator/blob/main/docs/config.md#custom-event-templates

@ebaron ebaron merged commit 6fb5c83 into cryostatio:main Sep 17, 2021
mergify bot pushed a commit that referenced this pull request Sep 17, 2021
ebaron added a commit that referenced this pull request Sep 17, 2021
)

(cherry picked from commit 6fb5c83)

Co-authored-by: Elliott Baron <ebaron@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event templates aren't created when TLS is disabled
2 participants