diff --git a/internal/controllers/environments.go b/internal/controllers/environments.go index 6920daa..82a7d7e 100644 --- a/internal/controllers/environments.go +++ b/internal/controllers/environments.go @@ -204,19 +204,29 @@ func (env *Environemnt) Get(ctx context.Context) error { } if val, ok := res["SP_DESCRIPTION"]; ok { env.Data.Description = val + } else { + env.Data.Description = "" } if val, ok := res["SP_PROVIDER"]; ok { env.Data.Provider = val + } else { + env.Data.Provider = "" } if val, ok := res["SP_KUBERNETES"]; ok { env.Data.Kubernetes = val + } else { + env.Data.Kubernetes = "" } if val, ok := res["SP_SERVER_TYPE"]; ok { env.Data.ServerType = val + } else { + env.Data.ServerType = "" } if val, ok := res["SP_SERVER_LOCATION"]; ok { env.Data.Location = val + } else { + env.Data.Location = "" } return nil