-
Notifications
You must be signed in to change notification settings - Fork 171
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
refactor: server side apply over create / update #3075
Open
AustinAbro321
wants to merge
40
commits into
main
Choose a base branch
from
try-out-ssa
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 35 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
466e27a
changing create/updates to use ssa
AustinAbro321 3e2fd88
WIP, more to do but tests passing
AustinAbro321 b978890
merge
AustinAbro321 bdb756d
tests passing
AustinAbro321 9d1a35d
patch-> apply
AustinAbro321 9f757e9
remove patches
AustinAbro321 0219569
tests passing
AustinAbro321 0b17664
merge
AustinAbro321 21d8c04
fix debug
AustinAbro321 4516b5f
health checks
AustinAbro321 905711d
pointer
AustinAbro321 71eb153
using correct svc again
AustinAbro321 7c38c13
ssa in zarf
AustinAbro321 00868f4
add field manager
AustinAbro321 b121ded
adopt existing resources
AustinAbro321 e83f6e6
comment
AustinAbro321 570b244
delete comment
AustinAbro321 5736f56
add comment
AustinAbro321 ca48559
make injection pod and service easier to read
AustinAbro321 52643f7
injector
AustinAbro321 72f07c9
remove redundant test
AustinAbro321 9a898dc
Merge branch 'main' into try-out-ssa
AustinAbro321 5cae3e5
fix post render logic
AustinAbro321 16ed156
fix post render logic
AustinAbro321 f1d1886
better error
AustinAbro321 9f1d13d
add namespace and api version
AustinAbro321 593c317
move namespaces back to create / update
AustinAbro321 7543833
create->apply
AustinAbro321 e825432
newline
AustinAbro321 aa8c22b
consistent creation
AustinAbro321 dc8bc71
verbiage
AustinAbro321 dd5f752
Merge branch 'main' into try-out-ssa
AustinAbro321 f5e30a8
Merge branch 'try-out-ssa' of github.com:zarf-dev/zarf into try-out-ssa
AustinAbro321 94376a5
Merge branch 'main' into try-out-ssa
AustinAbro321 ad93bcb
merge
AustinAbro321 a00784d
field manager name
AustinAbro321 c15887e
no nil needed
AustinAbro321 e1ff23f
remove maps equal logic
AustinAbro321 ac86e82
newline
AustinAbro321 e6d25d3
Merge branch 'main' into try-out-ssa
AustinAbro321 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
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.
What is the effect of removing this logic?
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.
The current code only updates the secret if the name or the data is different. Maybe it was there to preserve labels and annotations? I'm not sure, but that's no longer a worry with apply at least.
Additionally, the current code updates the git server secret if the registry secret has a different name or different data, this seems like it was a bug with indentation, but I'm not 100% sure. I don't see any reason for that logic.
Still, I should have made a unit test to verify the behavior, I will do that now.
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.
Actually, I am realizing the existing logic is flawed. I don't think there's much value in testing it. I could separate the new logic and write a test for it, but since it's just two apply calls, I'd pretty much just be testing that the fake client works.
Additionally, after evaluating further, there is no reason to dog sled errors here. We always want both of these secrets created