Skip to content

Conversation

@sean-breen
Copy link
Contributor

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

dependabot bot and others added 6 commits October 13, 2025 11:05
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.3.0 to 3.6.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@v3.3.0...5e57cd1)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.7.3 to 4.8.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](actions/dependency-review-action@595b5ae...56339e5)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-version: 4.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.30.3 to 3.30.6.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@192325c...64d10c1)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.30.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/github-script](https://github.com/actions/github-script) from 7.0.1 to 8.0.0.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](actions/github-script@60a0d83...ed59741)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions bot added the chore Pull requests for routine tasks label Oct 14, 2025

// if file is unmanaged skip deletion
if manifestFile.GetUnmanaged() {
slog.DebugContext(ctx, "skipping unmanaged file", "file_name", fileName)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
slog.DebugContext(ctx, "skipping unmanaged file", "file_name", fileName)
slog.DebugContext(ctx, "Skipping deletion of unmanaged file", "file_name", fileName)


// if file is unmanaged, action is set to unchanged so file is skipped when performing actions
if modifiedFile.File.GetUnmanaged() {
slog.DebugContext(ctx, "skipping unmanaged file", "file_name", fileName)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
slog.DebugContext(ctx, "skipping unmanaged file", "file_name", fileName)
slog.DebugContext(ctx, "Skipping unmanaged file updates", "file_name", fileName)


// if file is unmanaged, action is set to unchanged so file is skipped when performing actions
if modifiedFile.File.GetUnmanaged() {
slog.DebugContext(ctx, "skipping unmanaged file updates", "file_name", fileName)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
slog.DebugContext(ctx, "skipping unmanaged file updates", "file_name", fileName)
slog.DebugContext(ctx, "Skipping unmanaged file updates", "file_name", fileName)

@sean-breen sean-breen marked this pull request as ready for review October 14, 2025 11:21
@sean-breen sean-breen requested a review from a team as a code owner October 14, 2025 11:21
@sean-breen sean-breen requested a review from aphralG October 14, 2025 12:59
@sean-breen sean-breen changed the base branch from main to release-3.4.1 October 14, 2025 15:27
@sean-breen
Copy link
Contributor Author

Closing this and adding a new PR into the release branch as this merge would pull in changes from main which we don't want in the patch release.
#1338

@sean-breen sean-breen closed this Oct 14, 2025
@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-3.4.1@1cf4ea0). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             release-3.4.1    #1336   +/-   ##
================================================
  Coverage                 ?   84.54%           
================================================
  Files                    ?      103           
  Lines                    ?    14642           
  Branches                 ?        0           
================================================
  Hits                     ?    12379           
  Misses                   ?     1796           
  Partials                 ?      467           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

5 participants