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

feat #388: Add support for paravirtualized launch volume attachment #395

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

MayankKakani
Copy link

feat Add support for paravirtualized launch volume attachment
What this PR does / why we need it:
Recently support was added for configuring paravirtualized launch volume attachments at instance creation with go sdk v65.75.1 onwards, added the support for attaching paravirtualized volume at instance creation via cluster api provider.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): #388
Fixes #
Updated OCI Go sdk version to v65.81.1
Updated tilt-helper docker manifest go version to 1.21.8
added support for paravirtualized volumes

Signed-off-by: Mayank Kakani [email protected]

1.updated tilt image golang version to 1.21.8
2.added bash to kustomize-sub.sh call

Signed-off-by: Mayank Kakani <[email protected]>
Added LaunchParavirtualizedVolumeAttachment types to v1
added LaunchParavirtualizedVolumeAttachment type
Added support for getParavirtualizedVolumeAttachment
added launchParavirtualizedVolumeAttachment defination
added launchParavirtualizedVolumeAttachment definations
Updated OCI go sdk version to  v65.81.1 to support paravirtualized volume
Updated OCI SDK version
added test for paravirtualized volumes
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Jan 16, 2025
} else if attachment.Type == infrastructurev1beta2.ParavirtualizedType {
volumes = append(volumes, getParavirtualizedVolumeAttachment(attachment.ParavirtualizedAttachment))
} else {
m.Logger.Info("Block Volume attachment type not supported")
Copy link
Member

Choose a reason for hiding this comment

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

Lets change this to "Unknown attachment type not supported" or something like that

@@ -551,6 +551,102 @@ func TestInstanceReconciliation(t *testing.T) {
OpcRetryToken: ociutil.GetOPCRetryToken("machineuid")})).Return(core.LaunchInstanceResponse{}, nil)
},
},
{
name: "check all params together, with subnet id set, nsg id list",
Copy link
Member

Choose a reason for hiding this comment

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

name needs changed

},
AvailabilityDomain: common.String("ad2"),
CompartmentId: common.String("test"),
IsPvEncryptionInTransitEnabled: common.Bool(true),
Copy link
Member

Choose a reason for hiding this comment

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

we should probably have a test that doesn't set things that are nullable

@joekr
Copy link
Member

joekr commented Jan 22, 2025

I'm currently running the e2e tests on this PR. Do you mind outputting the unit test output like we do for the other landed PRs?

@joekr
Copy link
Member

joekr commented Jan 23, 2025

I've fun the e2e tests

Ran 7 of 28 Specs in 2552.156 seconds
SUCCESS! -- 7 Passed | 0 Failed | 0 Pending | 21 Skipped

We will need the following still

  • show unit tests passing
  • Contributor Agreement needs to be signed

@joekr joekr added the enhancement New feature or request label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants