Mchinta/refactor - #336
Merged
Tommy Barnes (tbarnes94) merged 44 commits intoJul 24, 2024
Merged
Conversation
Co-authored-by: Vidya Reddy <59590642+Vidya2606@users.noreply.github.com>
Signed-off-by: manasachi <manasachinta7@gmail.com>
Co-authored-by: Vidya Reddy <59590642+Vidya2606@users.noreply.github.com>
Co-authored-by: Vidya Reddy <59590642+Vidya2606@users.noreply.github.com> Co-authored-by: David Gamero <david340804@gmail.com>
Manasa Chinta (manasachi)
force-pushed
the
mchinta/refactor
branch
2 times, most recently
from
July 19, 2024 15:53
338bd2a to
3967278
Compare
Manasa Chinta (manasachi)
requested review from
Nick Keller (NickKeller) and
Tommy Barnes (tbarnes94)
July 19, 2024 16:05
Manasa Chinta (manasachi)
force-pushed
the
mchinta/refactor
branch
from
July 19, 2024 19:14
f4a357e to
6f9b647
Compare
Co-authored-by: David Gamero <david340804@gmail.com>
Manasa Chinta (manasachi)
force-pushed
the
mchinta/refactor
branch
from
July 22, 2024 15:34
6f9b647 to
9f2d872
Compare
Tommy Barnes (tbarnes94)
approved these changes
Jul 22, 2024
Tommy Barnes (tbarnes94)
left a comment
Contributor
There was a problem hiding this comment.
Great changes!!
Tommy Barnes (tbarnes94)
enabled auto-merge (squash)
July 22, 2024 17:17
Manasa Chinta (manasachi)
force-pushed
the
mchinta/refactor
branch
from
July 23, 2024 13:30
2d4ab48 to
11ac1e0
Compare
Signed-off-by: manasachi <manasachinta7@gmail.com>
Manasa Chinta (manasachi)
force-pushed
the
mchinta/refactor
branch
from
July 23, 2024 13:31
9c42d7f to
a2e8e97
Compare
Nick Keller (NickKeller)
requested changes
Jul 23, 2024
| ) | ||
|
|
||
| // Given a path, will determine if it's Kustomize, Helm, a directory of manifests, or a single manifest | ||
| func GetManifestFiles(manifestsPath string) ([]safeguards.ManifestFile, error) { |
There was a problem hiding this comment.
Where is this function called? You have some repeated logic here and in GetManifestFilesFromDir
Contributor
Author
There was a problem hiding this comment.
getManifestFilesFromDir is used to recursively process a directory of .yaml files. And GetManfiestFiles() calls this func, in addition to handling helm, kustomize, single .yaml cases. I left it like this since RenderHelm and RenderKustomize functions handle processing directories differently. If this is too much overlap, we could look into refactoring all functions in anther PR. However, at the moment, I don't see how we could reduce code between these two functions.
Signed-off-by: manasachi <manasachinta7@gmail.com>
Signed-off-by: manasachi <manasachinta7@gmail.com>
Signed-off-by: manasachi <manasachinta7@gmail.com>
Signed-off-by: manasachi <manasachinta7@gmail.com>
Signed-off-by: manasachi <manasachinta7@gmail.com>
Manasa Chinta (manasachi)
force-pushed
the
mchinta/refactor
branch
from
July 24, 2024 14:41
439cc8e to
5162d76
Compare
Manasa Chinta (manasachi)
changed the base branch from
main
to
staging-kustomizehelm
July 24, 2024 18:32
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Fixes # (issue)
Feature # (details)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Tested that validate.go does not break with removing code from run(). Added separate test cases for GetManifestFiles()
Checklist: