NewCache generates a new generated config
(configName, secretName string)
| 26 | |
| 27 | // NewCache generates a new generated config |
| 28 | func NewCache(configName, secretName string) *RemoteCache { |
| 29 | return &RemoteCache{ |
| 30 | Vars: make(map[string]string), |
| 31 | Deployments: []DeploymentCache{}, |
| 32 | DevPods: []DevPodCache{}, |
| 33 | Data: make(map[string]string), |
| 34 | secretName: secretName, |
| 35 | configName: configName, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // NewCacheFromSecret loads the cache from secret |
| 40 | func NewCacheFromSecret(ctx context.Context, client kubectl.Client, secretName string) (*RemoteCache, error) { |
no outgoing calls