-
Notifications
You must be signed in to change notification settings - Fork 915
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
Update generated types to vSphere 8.0 GA #3006
Merged
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
akutz
force-pushed
the
feature/vsphere-8.0-ga-types
branch
2 times, most recently
from
December 12, 2022 02:44
dd2c301
to
9e7ab0c
Compare
akutz
force-pushed
the
feature/vsphere-8.0-ga-types
branch
from
December 12, 2022 15:19
ea7b1dc
to
188ce3d
Compare
aruneshpa
previously approved these changes
Dec 12, 2022
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.
This patch updates the generated types to vSphere 8.0 GA.
This patch fixes a bug where "govc about.cert" was not respecting the -k flag (or env var) that disabled TLS verification.
This patch updates the cert/key pairs vC Sim uses for testing to be RSA 2048 in accordance with Apple's new requirements on macOS. https://developer.apple.com/documentation/security/preventing_insecure_network_connections
This patch updates the GoVmomi SOAP client to use DialTLSContext instead of DialTLS, as the latter has been deprecated for multiple, major Go versions. This patch also updates how the SOAP client handles TLS validation with respect to thumbprints. Go 1.18+ adopted the host's certificate verification framework, so it is necessary to alter a few things to continue to support thumbprint verification. * https://tip.golang.org/doc/go1.18 (search for "Certificate.Verify") * square/certigo#264
This patch updates the instances of $mktemp in the govc/test/*.bats files to support the macOS variant.
This patch fixes a few bugs related to the Namespaces API. There was an NPE occurring due to a pointer variable being used prior to being assigned. The "govc namespace.logs.download" command also just failed to work due to the VAPI client assuming the response will always be JSON and not possibly, binary data as one sends when one receives a tar file. Finally, the namespace.bats file used to use the cluster name "Workload-Cluster", but due to a hack in the simulated namespaces API, it only recognizes clusters that begin with "WCP".
akutz
force-pushed
the
feature/vsphere-8.0-ga-types
branch
from
December 12, 2022 17:32
1a44471
to
1ad33d4
Compare
HakanSunay
approved these changes
Dec 12, 2022
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
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
This PR updates the generated types to vSphere 8.0 GA and includes several other changes in order to support running tests locally on macOS 12.4:
govc about.cert
was not respecting the-k
flag (or env var) that disabled TLS verificationDialTLSContext
instead ofDialTLS
, as the latter has been deprecated for multiple, major Go versions. TheDialTLSContext
function refactors the logic related to thumbprint verification due to changes in Go 1.18+. For more information, please search forCertificate.Verify
in the Go 1.18 release notes$mktemp
in thegovc/test/*.bats
files to support the macOS variant's flagsgovc namespace.logs.download
was just broken due to:tar
filenamespace.bats
file used to use the cluster nameWorkload-Cluster
, but due to a hack in the simulated namespaces API, it only recognizes clusters that begin withWCP
.Related issues:
Closes: NA
Type of change
Please mark options that are relevant:
not work as expected)
How Has This Been Tested?
make test
Some tests related to vC Sim failed due to the nginx container used and running them on Apple Silicon. Allowing the PR's GitHub actions to validate the PR the rest of the way.
Checklist:
CONTRIBUTION
guidelines of this project