From 2cca623eeae915473aee9465db08c44f62b6d475 Mon Sep 17 00:00:00 2001 From: Pratik Date: Tue, 21 Jul 2026 13:34:11 +0530 Subject: [PATCH] fix: cleanUp config and removed the ingestUrl --- cmd/cloud.go | 2 -- cmd/login.go | 1 - cmd/profile.go | 2 -- pkg/config/config.go | 1 - 4 files changed, 6 deletions(-) diff --git a/cmd/cloud.go b/cmd/cloud.go index 66e8001..15bcf2c 100644 --- a/cmd/cloud.go +++ b/cmd/cloud.go @@ -58,7 +58,6 @@ type cloudAPIKeyValidationResponse struct { WorkspaceName string `json:"workspace_name"` TenantID string `json:"tenant_id"` URL string `json:"url"` - IngestURL string `json:"ingest_url"` State string `json:"state"` MultiTenant bool `json:"multi_tenant"` } @@ -228,7 +227,6 @@ var CloudProfileAddCmd = &cobra.Command{ Cloud: true, APIKey: apiKey, TenantID: result.TenantID, - IngestURL: result.IngestURL, WorkspaceID: result.WorkspaceID, WorkspaceName: result.WorkspaceName, OrchestratorURL: orchestratorURL, diff --git a/cmd/login.go b/cmd/login.go index c750849..9031fb6 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -88,7 +88,6 @@ func cloudProfileFromAPIKey(ctx context.Context, apiKey string) (*config.Profile Cloud: true, APIKey: apiKey, TenantID: result.TenantID, - IngestURL: result.IngestURL, WorkspaceID: result.WorkspaceID, WorkspaceName: result.WorkspaceName, OrchestratorURL: orchestratorURL, diff --git a/cmd/profile.go b/cmd/profile.go index 4b3464e..b9a302a 100644 --- a/cmd/profile.go +++ b/cmd/profile.go @@ -40,7 +40,6 @@ type profileOutput struct { Username string `json:"username,omitempty"` Cloud bool `json:"cloud"` TenantID string `json:"tenant_id,omitempty"` - IngestURL string `json:"ingest_url,omitempty"` WorkspaceID string `json:"workspace_id,omitempty"` WorkspaceName string `json:"workspace_name,omitempty"` OrchestratorURL string `json:"orchestrator_url,omitempty"` @@ -52,7 +51,6 @@ func safeProfileOutput(profile config.Profile) profileOutput { Username: profile.Username, Cloud: profile.Cloud, TenantID: profile.TenantID, - IngestURL: profile.IngestURL, WorkspaceID: profile.WorkspaceID, WorkspaceName: profile.WorkspaceName, OrchestratorURL: profile.OrchestratorURL, diff --git a/pkg/config/config.go b/pkg/config/config.go index 7a1b043..437bf1b 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -98,7 +98,6 @@ type Profile struct { SessionToken string `toml:"session_token,omitempty" json:"session_token,omitempty"` RefreshToken string `toml:"refresh_token,omitempty" json:"refresh_token,omitempty"` TenantID string `toml:"tenant_id,omitempty" json:"tenant_id,omitempty"` - IngestURL string `toml:"ingest_url,omitempty" json:"ingest_url,omitempty"` WorkspaceID string `toml:"workspace_id,omitempty" json:"workspace_id,omitempty"` WorkspaceName string `toml:"workspace_name,omitempty" json:"workspace_name,omitempty"` OrchestratorURL string `toml:"orchestrator_url,omitempty" json:"orchestrator_url,omitempty"`