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(eventtemplates): log warning and continue if declarative Event Template already exists #726

Merged

Conversation

andrewazores
Copy link
Member

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Related to #718

Description of the change:

Tolerate already existing Event Templates when loading from container filesystem at startup.

Motivation for the change:

Declarative configurations for Event Templates (ie defining them by mounting files to the container, ex. by Operator CR linking to ConfigMaps) should be tolerant of the templates already existing, since they will already exist in the remote S3 storage service if the Cryostat container has been restarted, for example.

How to manually test:

  1. See associated Helm PR. Deploy with that, then oc rollout restart deployment cryostat-v4 to trigger the case where the template already exists in storage. With this PR, Cryostat should log a warning and continue. Without this PR, Cryostat will not catch the exception and will fail startup, leading to a container restart loop.

@andrewazores
Copy link
Member Author

/build_test

Copy link

Workflow started at 11/28/2024, 3:08:52 PM. View Actions Run.

Copy link

No GraphQL schema changes detected.

Copy link

No OpenAPI schema changes detected.

Copy link

CI build and push: All tests pass ✅
https://github.com/cryostatio/cryostat/actions/runs/12074922517

@andrewazores andrewazores merged commit a141072 into cryostatio:main Nov 28, 2024
9 checks passed
@andrewazores andrewazores deleted the event-template-declarative branch November 28, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants