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

Patch Pod Annotations to Fix Potential Error #45

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

papillonyi
Copy link

Fix bug causing potential pod error by using patch for annotations

This pr switches from using 'update' to 'patch' when setting pod annotations. The previous 'update' approach was found to potentially cause pod errors. By using 'patch', we now only modify the specific fields that have changed, preventing the previous issue and improving efficiency.

This commit switches from using 'update' to 'patch' when setting pod annotations. The previous 'update' approach was found to potentially cause pod errors. By using 'patch', we now only modify the specific fields that have changed, preventing the previous issue.

Signed-off-by: ronin <papillonyi39@gmail.com>
This commit adds 'patch' permission to the clusterRole associated with our plugin. This change allows the plugin to patch pod annotations more safely, reducing the chance of errors and conflicts during updates.

Signed-off-by: ronin <papillonyi39@gmail.com>
…tes"

This reverts commit 053d614.

Signed-off-by: ronin <papillonyi39@gmail.com>
This commit adds an error handler to catch and manage potential JSON encoding errors. By handling these errors explicitly, we can prevent crashes and improve the stability of the application.

Signed-off-by: ronin <papillonyi39@gmail.com>
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.

None yet

1 participant