MCPcopy Index your code
hub / github.com/devspace-sh/devspace / GetUpgraderWrapper

Function GetUpgraderWrapper

pkg/devspace/kubectl/upgrade_wrapper.go:47–57  ·  view source on GitHub ↗

GetUpgraderWrapper returns an upgrade wrapper for the given config @Factory

(client Client)

Source from the content-addressed store, hash-verified

45
46// GetUpgraderWrapper returns an upgrade wrapper for the given config @Factory
47func GetUpgraderWrapper(client Client) (http.RoundTripper, UpgraderWrapper, error) {
48 wrapper, upgradeRoundTripper, err := clientspdy.RoundTripperFor(client.RestConfig())
49 if err != nil {
50 return nil, nil, err
51 }
52
53 return wrapper, &upgraderWrapper{
54 Upgrader: upgradeRoundTripper,
55 Connections: make([]httpstream.Connection, 0, 1),
56 }, nil
57}

Callers 2

NewPortForwarderFunction · 0.85

Calls 1

RestConfigMethod · 0.65

Tested by

no test coverage detected