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

Fix for policy manager not setting labels in some cases #517

Merged
merged 6 commits into from Aug 7, 2020

Conversation

jkowalski
Copy link
Contributor

@jkowalski jkowalski commented Aug 5, 2020

Fixed #511

Copy link
Collaborator

@julio-lopez julio-lopez left a comment

Choose a reason for hiding this comment

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

Should the global policy be protected from deletion? or is that already done?

The new (policy inheritance) test failed on Windows, I did not dive into the it though.
And Linux ARM timed out on E2E.

snapshot/policy/policy_manager_test.go Outdated Show resolved Hide resolved
snapshot/policy/policy_manager_test.go Outdated Show resolved Hide resolved
snapshot/policy/policy_manager_test.go Outdated Show resolved Hide resolved
snapshot/policy/policy_manager_test.go Outdated Show resolved Hide resolved
snapshot/policy/policy_manager_test.go Outdated Show resolved Hide resolved
}

// volumeAndPath splits path 'p' into Windows-specific volume (e.g. "X:" and path after that starting with either slash or backslash)
func volumeAndPath(p string) (vol, path string) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would https://golang.org/pkg/path/filepath/#VolumeName help simplify things here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, because it's platform-specific.

@jkowalski jkowalski merged commit 04fdd01 into kopia:master Aug 7, 2020
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.

Global policy got deleted even though I didn't do it
2 participants