Skip to content

Conversation

@sean-breen
Copy link
Contributor

@sean-breen sean-breen commented Oct 14, 2025

Proposed changes

When determining the file actions during a config apply, we must track the file's Unmanaged status in the manifest file when it is passed from the Mgmt plane, in order to avoid deleting these unmanaged files.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@sean-breen sean-breen requested a review from a team as a code owner October 14, 2025 15:46
@github-actions github-actions bot added the chore Pull requests for routine tasks label Oct 14, 2025
@sean-breen sean-breen mentioned this pull request Oct 14, 2025
6 tasks
}

// if file is unmanaged skip deletion
if manifestFile.GetUnmanaged() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can unit tests be added to check this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm working on refactoring the unit tests around DetermineFileActions and the manifest file to add more cases including this one, but since we need to patch this one fast I said I would add those updates in another PR after the patch is released

@sean-breen sean-breen requested a review from aphralG October 15, 2025 12:28
@sean-breen sean-breen merged commit f2a3998 into release-3.4.1 Oct 17, 2025
33 checks passed
@sean-breen sean-breen deleted the patch-3.4.1 branch October 17, 2025 10:19
@sean-breen sean-breen restored the patch-3.4.1 branch October 17, 2025 10:20
@sean-breen sean-breen deleted the patch-3.4.1 branch October 17, 2025 10:20
aphralG pushed a commit that referenced this pull request Oct 20, 2025
* avoid deleting unmanaged files during config apply

* use dev goproxy

Co-authored-by: Sean Breen <101327931+sean-breen@users.noreply.github.com>
sean-breen added a commit that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Pull requests for routine tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants