Try using a clientset
This commit is contained in:
parent
43afce4b63
commit
18936f7803
@ -154,8 +154,7 @@ func (env *Environemnt) ListEnvs(ctx context.Context) ([]string, error) {
|
||||
if err != nil {
|
||||
return []string{}, err
|
||||
}
|
||||
//secrets, err := clientset.CoreV1().Secrets(env.UserID).List(ctx, metav1.ListOptions{LabelSelector: "kind=environment"})
|
||||
secrets, err := clientset.CoreV1().Secrets(env.UserID).List(ctx, metav1.ListOptions{})
|
||||
secrets, err := clientset.CoreV1().ConfigMaps(env.UserID).List(ctx, metav1.ListOptions{LabelSelector: "kind=environment"})
|
||||
if err != nil {
|
||||
return []string{}, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user