A stupid thing

This commit is contained in:
Nikolai Rodionov 2024-04-15 16:16:25 +02:00
parent 80003e41ad
commit 308367dcdf
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -142,6 +142,7 @@ func (env *Environemnt) Delete(ctx context.Context) error {
}
func (env *Environemnt) ListEnvs(ctx context.Context) ([]string, error) {
env.Controller.GetClient()
conf := &rest.Config{
Host: "https://kubernetes.default.svc.cluster.local:443",
BearerToken: env.Token,
@ -159,7 +160,6 @@ func (env *Environemnt) ListEnvs(ctx context.Context) ([]string, error) {
labels := client.MatchingLabels{
"kind": "environment",
}
ns := client.InNamespace(env.UserID)
if err := cl.List(ctx, &cms, labels, ns); err != nil {
return []string{}, err