-
Notifications
You must be signed in to change notification settings - Fork 26
feat(gm): support GM #164
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(gm): support GM #164
Conversation
21aed4b
to
3bdd2ee
Compare
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.
It is recommended to put gm_round_tripper.go
, gm_round_tripper_test.go
, logroundtripper.go
, logroundtripper_test.go
and transport.go
in pkg/common/transport
.
pkg/config/cloud.go
Outdated
VerifyPeerCertificate: func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error { | ||
for _, v := range rawCerts { | ||
_, err = x509.ParseCertificate(v) | ||
if err != nil { | ||
return err | ||
} | ||
} | ||
return nil | ||
}, |
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.
VerifyPeerCertificate
not necessary and should be removed
pkg/config/cloud.go
Outdated
if c.Global.GMSupport { | ||
gmCfg := &gmtls.Config{ | ||
GMSupport: &gmtls.GMSupport{WorkMode: gmtls.ModeAutoSwitch}, | ||
InsecureSkipVerify: true, |
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.
InsecureSkipVerify: true, | |
InsecureSkipVerify: c.Global.Insecure, |
pkg/config/cloud.go
Outdated
if c.Global.GMSupport { | ||
gmCfg := &gmtls.Config{ | ||
GMSupport: &gmtls.GMSupport{WorkMode: gmtls.ModeAutoSwitch}, | ||
InsecureSkipVerify: true, |
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.
InsecureSkipVerify: true, | |
InsecureSkipVerify: c.Global.Insecure, |
7995678
to
c7837f3
Compare
/lgtm |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: