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)
| 102 | |
| 103 | // Load restores variables from the cluster (if wanted), loads the config and then saves them to the cluster again |
| 104 | func (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 |
| 109 | func (l *configLoader) LoadWithCache(ctx context.Context, localCache localcache.Cache, client kubectl.Client, options *ConfigOptions, log log.Logger) (config.Config, error) { |