-
Notifications
You must be signed in to change notification settings - Fork 48
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
🌱 Adds inline Sysprep support for VM bootstrapping #298
Merged
Conversation
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
github-actions
bot
added
testing-needed-e2e-fast
size/L
Denotes a PR that changes 100-499 lines.
labels
Dec 11, 2023
srm09
force-pushed
the
v1a2/sysprep-inline
branch
from
December 12, 2023 18:37
ea6d785
to
63d553c
Compare
github-actions
bot
added
size/XL
Denotes a PR that changes 500-999 lines.
and removed
size/L
Denotes a PR that changes 100-499 lines.
labels
Dec 12, 2023
bryanv
reviewed
Dec 12, 2023
pkg/vmprovider/providers/vsphere2/vmlifecycle/bootstrap_sysprep.go
Outdated
Show resolved
Hide resolved
srm09
force-pushed
the
v1a2/sysprep-inline
branch
3 times, most recently
from
December 13, 2023 07:40
8e4f8b5
to
a8dd2d9
Compare
srm09
changed the title
WIP: Adds inline sysprep support for VM bootstrapping
🌱 Adds inline Sysprep support for VM bootstrapping
Dec 13, 2023
bryanv
reviewed
Dec 13, 2023
pkg/vmprovider/providers/vsphere2/vmlifecycle/bootstrap_sysprep.go
Outdated
Show resolved
Hide resolved
pkg/vmprovider/providers/vsphere2/vmlifecycle/bootstrap_sysprep.go
Outdated
Show resolved
Hide resolved
pkg/vmprovider/providers/vsphere2/vmlifecycle/bootstrap_sysprep.go
Outdated
Show resolved
Hide resolved
srm09
force-pushed
the
v1a2/sysprep-inline
branch
from
December 14, 2023 23:41
83c4e30
to
bfc85cb
Compare
github-actions
bot
added
size/XXL
Denotes a PR that changes 1000+ lines.
size/XL
Denotes a PR that changes 500-999 lines.
and removed
size/XL
Denotes a PR that changes 500-999 lines.
size/XXL
Denotes a PR that changes 1000+ lines.
labels
Dec 14, 2023
srm09
force-pushed
the
v1a2/sysprep-inline
branch
from
December 15, 2023 01:40
d7929a3
to
073a43f
Compare
github-actions
bot
added
size/XXL
Denotes a PR that changes 1000+ lines.
and removed
size/XL
Denotes a PR that changes 500-999 lines.
labels
Dec 15, 2023
srm09
force-pushed
the
v1a2/sysprep-inline
branch
2 times, most recently
from
December 15, 2023 19:25
74a2608
to
658804b
Compare
bryanv
approved these changes
Dec 15, 2023
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.
LGTM but the tests need to updated to not use prior common key selector structure.
srm09
force-pushed
the
v1a2/sysprep-inline
branch
2 times, most recently
from
December 18, 2023 08:21
7572741
to
d7eaecb
Compare
srm09
force-pushed
the
v1a2/sysprep-inline
branch
from
December 18, 2023 23:03
d7eaecb
to
ed86d24
Compare
This patch adds support for inline sysprep which was introduced in the API in v1alpha2. For the secrets, we are currently decoding them and adding the values SysprepSecretData field under BootstrapArgs. This patch also adds tests for the changes to enable inline sysprep. Instead of waiting till doBootstrap to pull the secret data for inline sysprep, this patch adds the secret data to the BootstrapArgs earlier for verification purposes. It updates the API to mark certain fields as mandatory. This patch moves the defaulting logic of the secret selector keys to the CRDs instead of relying on a mutating webhook Signed-off-by: Sagar Muchhal <[email protected]>
srm09
force-pushed
the
v1a2/sysprep-inline
branch
from
December 18, 2023 23:38
ed86d24
to
a8c499d
Compare
Minimum allowed line rate is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
What does this PR do, and why is it needed?
This patch adds support for inline sysprep which was introduced in the API in v1alpha2
Which issue(s) is/are addressed by this PR? (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):n/a
Are there any special notes for your reviewer:
For the secrets, we are currently decoding them and adding the data to the Data field under BootstrapArgs. There could be a situation wherein 2 or more secrets are storing data under the same key which will cause the secret values to be overidden.
Tests:
Please add a release note if necessary: