From da8aa8c4e1242f0c228220b1c611cf3e855ab7dd Mon Sep 17 00:00:00 2001 From: Philip Laine Date: Wed, 19 Jun 2024 14:57:34 +0200 Subject: [PATCH] refactor: remove unused constants and variables --- src/config/config.go | 5 ----- src/config/lang/english.go | 3 --- 2 files changed, 8 deletions(-) diff --git a/src/config/config.go b/src/config/config.go index f603e317a2..53e49d720b 100644 --- a/src/config/config.go +++ b/src/config/config.go @@ -5,7 +5,6 @@ package config import ( - "embed" "fmt" "os" "path/filepath" @@ -20,9 +19,6 @@ import ( const ( GithubProject = "defenseunicorns/zarf" - // ZarfMaxChartNameLength limits helm chart name size to account for K8s/helm limits and zarf prefix - ZarfMaxChartNameLength = 40 - ZarfAgentHost = "agent-hook.zarf.svc" ZarfConnectLabelName = "zarf.dev/connect-name" @@ -77,7 +73,6 @@ var ( NoColor bool CosignPublicKey string - ZarfSchema embed.FS // Timestamp of when the CLI was started operationStartTime = time.Now().Unix() diff --git a/src/config/lang/english.go b/src/config/lang/english.go index 36112f99a9..cf3d7b61ee 100644 --- a/src/config/lang/english.go +++ b/src/config/lang/english.go @@ -19,9 +19,6 @@ import ( const ( ErrLoadState = "Failed to load the Zarf State from the cluster." ErrSaveState = "Failed to save the Zarf State to the cluster." - ErrLoadPackageSecret = "Failed to load %s's secret from the cluster" - ErrNoClusterConnection = "Failed to connect to the cluster." - ErrTunnelFailed = "Failed to create a tunnel to the cluster." ErrUnmarshal = "failed to unmarshal file: %w" ErrWritingFile = "failed to write file %s: %s" ErrDownloading = "failed to download %s: %s"