Skip to content

Conversation

@ejholmes
Copy link
Member

@ejholmes ejholmes commented Dec 11, 2025

What

This PR adds support for skipping Applications during rendering by setting the mani-diffy.chime.com/skip annotation to "true". This allows selective control over which Applications are processed by mani-diffy.

In most cases, this can be used as a more powerful replacement to the -ignore-suffix flag.

Why

This change is needed to provide a way to exclude specific Applications from being rendered by mani-diffy. This is useful when you have Applications that should be managed differently or when you want to temporarily disable rendering for specific Applications without removing them from the repository.

How

  • Added a new constant skipAnnotation with the value "mani-diffy.chime.com/skip"
  • Implemented a shouldSkipRender() function that checks if an Application has the annotation set to "true"
  • Modified the walk() function to skip Applications that have this annotation set to "true"

The implementation only skips Applications when the annotation is explicitly set to "true". Applications without the annotation or with any other value will continue to be rendered normally.

References

N/A

ejholmes and others added 2 commits December 11, 2025 15:31
Applications can now be skipped during rendering by setting the
com.chime.mani-diffy/render annotation to "false". This allows
selective control over which Applications are processed by mani-diffy.

When an Application has this annotation set to "false", it will be
skipped with a log message indicating why it was skipped.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updated the annotation to follow Kubernetes best practices:
- Use forward domain format (mani-diffy.chime.com instead of com.chime.mani-diffy)
- More intuitive naming: skip: "true" instead of render: "false"
- Clearer intent and semantics

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ejholmes ejholmes marked this pull request as ready for review December 11, 2025 23:41
@ejholmes ejholmes requested a review from a team as a code owner December 11, 2025 23:41
- Updated service.tpl to conditionally add the skip annotation
- Added test-service-skipped with skipManiDiffy: true
- Regenerated manifests showing the annotation in action

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ejholmes and others added 2 commits December 12, 2025 09:41
Moved the ignoreSuffix check into shouldSkipRender function to
centralize all skip logic in one place. This makes it easier to
understand and maintain the conditions under which an Application
should be skipped.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy link
Contributor

@v-yarotsky v-yarotsky left a comment

Choose a reason for hiding this comment

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

🎉

@ejholmes ejholmes merged commit 72a8b07 into main Dec 12, 2025
7 checks passed
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.

3 participants