-
Notifications
You must be signed in to change notification settings - Fork 156
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
Implement resource pruning in k8s plugin #5455
Merged
Merged
Changes from 13 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
3f1509a
Add labels for application tracking in Kubernetes manifests
Warashi e6f5bc9
Add IsManagedByPiped method
Warashi b150959
Remove Namespace method from ResourceKey
Warashi 9c5d959
Remove APIVersion method from ResourceKey
Warashi 9aea549
Refactor manifest handling to use Name and Kind methods instead of Key
Warashi 5134edb
Change apiVersion and kind to groupKind
Warashi f8f0c7e
Implement pruning resources
Warashi b9879ce
Implement resource pruning in k8s_sync
Warashi bb444a7
Fix the pruning in the case namespace changes
Warashi 54309c9
Fix pruning the cluster-scoped resources
Warashi b849517
Enable parallel execution for deployment service tests
Warashi 3ed4320
Add documentation for Kubernetes resource retrieval functions
Warashi d1e0236
Add license header to resource_test.go
Warashi 85ba187
Fix the LoadManifests
Warashi c2a747f
Rename getAPIResources to getClusterScopedAPIResources for clarity
Warashi 48c0fb3
Refactor manifest key normalization
Warashi 6fb0aab
Add comments to ResourceKey
Warashi 69ac113
Refactor to use normalized key only to compare
Warashi 6392bca
Rename variable clusterLiveResources to clusterScopedLiveResources
Warashi e1dec97
Rename keys to normalizedKeys and add comments
Warashi bcfd121
Refactor to remove normalizeGroupKinds
Warashi 2e7b2f5
Fix to pass tests
Warashi f47da4b
Update comments to clarify source of application config in tests
Warashi b12e317
Add assertions to check for NotFound errors in deployment service tests
Warashi d75fd94
Add resource-key assertions to deployment service tests
Warashi 34c7807
Use subtest to prepare e2e tests
Warashi 40af37c
Add v1beta1 version for CronTab and update tests for pruning behavior
Warashi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] clusterLiveResources -> clusterScopedLiveResources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applied on this commit
6392bca