Skip to content

Update artifact tarball when spec.ignore changes #710

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

Closed

Conversation

tiagoangelozup
Copy link

@tiagoangelozup tiagoangelozup commented May 6, 2022

This PR adds a new field status.artifact.excludedPatternsChecksum which is used to detect changes on spec.ignore, that controls the exclusions for the object's status.artifact.

This commit adds a new field `status.artifact.excludedPatternsChecksum` which is used to detect changes on `spec.ignore`, that controls the exclusions for the object's `status.artifact`.

Signed-off-by: Tiago Angelo <[email protected]>
@tiagoangelozup tiagoangelozup marked this pull request as ready for review May 6, 2022 17:11
// ExcludedPatternsChecksum is a SHA256 checksum of the excluded patterns
// applied in the last reconciliation.
// +optional
ExcludedPatternsChecksum string `json:"excludedPatternsChecksum,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

Not every object is making use of exclusions. Given this, I do not think this field should be added to the Artifact, but rather to the Status objects from the Bucket and GitRepository.

In addition, I do not think that the new term ExcludedPatterns should be introduced. I would rather call it IgnoreChecksum or ObservedIgnore.

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