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

Solution Add-On upload [2] #670

Merged
merged 27 commits into from
Jun 19, 2024
Merged

Solution Add-On upload [2] #670

merged 27 commits into from
Jun 19, 2024

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Apr 24, 2024

This PR continues on top of #665 and adds management of Solution Add-Ons within a Solution Landing Zone.

To create a Solution Add-on, one must have a Solution Add-On image. Due to the architecture of Solution Add-Ons it must be present both - locally and and also uploaded to the catalog.
A local copy is needed to extract the image and pick required metadata - such as icon, EULA, certificate and Add-On type, while a copy in the VCD catalog will be used to create Solution Add-On instances later.

Testing

Testing VCD environment is expected to have an image uploaded already to nsxtBackedCatalogName and name of it must be specified in nsxtCatalogAddonDse variable. The Test_SolutionAddOn test will automatically check if the image is present locally within /test-resources/cache subdirectory (which is also added to .gitignore) - if it is not found - it will download the file from VCD catalog as defined in nsxtCatalogAddonDse variable

Tested on 10.4.1 and 10.5.1

Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius changed the title WIP: Solution Add-On upload WIP: Solution Add-On upload [2] May 14, 2024
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius changed the title WIP: Solution Add-On upload [2] Solution Add-On upload [2] May 20, 2024
@Didainius Didainius marked this pull request as ready for review May 20, 2024 07:10
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

One possible tuning in a comment suggestion.

govcd/certificate_management.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

First scan, still need to deep dive into the PR

govcd/certificate_management.go Outdated Show resolved Hide resolved
govcd/certificate_management.go Outdated Show resolved Hide resolved
govcd/landing_zone_add_on.go Show resolved Hide resolved
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

LGTM, just a doubt

govcd/landing_zone_add_on.go Outdated Show resolved Hide resolved
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
@Didainius Didainius merged commit dd98244 into vmware:main Jun 19, 2024
2 checks passed
@Didainius Didainius deleted the dse-upload branch June 19, 2024 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants