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

[issue-562] Serverless workflow pod gets restarted repeatedly after native K_SINK injection #565

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

jianrongzhang89
Copy link
Contributor

@jianrongzhang89 jianrongzhang89 commented Nov 4, 2024

Fix #562.

Description of the change:
The reason why the 00001-deployment pod gets restarted repeatedly is because after K_SINK injection, a new Knative revision has been created, and the workflow managed properties configmap has been updated to use the the K_SINK environment variable. As such the first deployment ****_00001 has become outdated and no longer aligned with the configmap and this causes the repeated pod restarting.

The fix is to clean up the outdated Knative revision(s) after the K_SINK injection is done (ie, sinkbinding is ready).

Motivation for the change:
To prevent 00001-deployment pod from getting restarted repeatedly.

Checklist

  • [X ] Add or Modify a unit test for your change
  • [X ] Have you verified that tall the tests are passing?

@jianrongzhang89 jianrongzhang89 marked this pull request as ready for review November 4, 2024 22:40
Copy link
Contributor

@wmedvede wmedvede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Algorithm looks safe now, LGTM.

Many thanks, great work.

@ricardozanini ricardozanini merged commit 5dae96c into apache:main Nov 8, 2024
4 checks passed
wmedvede pushed a commit to wmedvede/kogito-serverless-operator that referenced this pull request Nov 12, 2024
rgdoliveira pushed a commit to kiegroup/kogito-serverless-operator that referenced this pull request Nov 12, 2024
…native K_SINK injection (apache#565) (#93)

(cherry picked from commit 5dae96c)

Co-authored-by: Jianrong Zhang <[email protected]>
rgdoliveira pushed a commit to rgdoliveira/kogito-serverless-operator that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serverless workflow pod gets restarted repeatedly after Knative K_SINK injection
3 participants