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

Method Load

pkg/devspace/config/loader/loader.go:104–106  ·  view source on GitHub ↗

Load restores variables from the cluster (if wanted), loads the config and then saves them to the cluster again

(ctx context.Context, client kubectl.Client, options *ConfigOptions, log log.Logger)

Source from the content-addressed store, hash-verified

102
103// Load restores variables from the cluster (if wanted), loads the config and then saves them to the cluster again
104func (l *configLoader) Load(ctx context.Context, client kubectl.Client, options *ConfigOptions, log log.Logger) (config.Config, error) {
105 return l.LoadWithCache(ctx, nil, client, options, log)
106}
107
108// LoadWithCache loads the config with the given local cache
109func (l *configLoader) LoadWithCache(ctx context.Context, localCache localcache.Cache, client kubectl.Client, options *ConfigOptions, log log.Logger) (config.Config, error) {

Callers 1

testLoadFunction · 0.95

Calls 1

LoadWithCacheMethod · 0.95

Tested by 1

testLoadFunction · 0.76