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

Improve CI example #45

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Conversation

mamo3gr
Copy link
Contributor

@mamo3gr mamo3gr commented Jan 25, 2025

Problem

Even if there is an error in skaffold render or applying by kubectl diff with dry-run, the error is ignored and ksnotify says "There is no diff."

Suggested improvement in this PR

  • Split rendering (building), comparing configurations, and notifying the difference
  • Branch in tune with the exit status of kubectl diff
  • As bonuses
    • Set digest-source to 'none' to use the build result of kustomize
    • Save the outputs as artifacts to examine the error

* set digest-source to 'none' to use the build result of kustomize
* branch in tune with the exit status of kubectl diff
* save the outputs as artifacts
Copy link
Owner

@hirosassa hirosassa left a comment

Choose a reason for hiding this comment

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

Looks GREAT! Thanks for your changes!

@hirosassa hirosassa merged commit e6d5893 into hirosassa:main Jan 25, 2025
4 checks passed
@mamo3gr mamo3gr deleted the docs/split-diff-and-notify branch January 25, 2025 07:57
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.

2 participants