Skip to content

Commit

Permalink
Don't configure the SDK's user agent (#4103)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Oct 26, 2023
1 parent bcdc6b7 commit e9c55bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions pkg/upstream/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"strings"

"github.com/pkg/errors"
"github.com/replicatedhq/kots/pkg/buildversion"
"github.com/replicatedhq/kots/pkg/kotsutil"
"github.com/replicatedhq/kots/pkg/upstream/types"
"gopkg.in/yaml.v3"
Expand Down Expand Up @@ -270,7 +269,6 @@ func buildReplicatedValues(u *types.Upstream, options types.WriteOptions) (map[s
replicatedValues := map[string]interface{}{
"replicatedID": options.KotsadmID,
"appID": options.AppID,
"userAgent": buildversion.GetUserAgent(),
"isAirgap": options.IsAirgap,
}

Expand Down
6 changes: 0 additions & 6 deletions pkg/upstream/helm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ some: value
appID: app-id
isAirgap: false
replicatedID: kotsadm-id
userAgent: KOTS/v0.0.0-unknown
`,
},
wantErr: false,
Expand Down Expand Up @@ -462,7 +461,6 @@ some: value
appID: app-id
isAirgap: true
replicatedID: kotsadm-id
userAgent: KOTS/v0.0.0-unknown
global:
replicated:
channelName: channel-name
Expand Down Expand Up @@ -573,7 +571,6 @@ image:
appID: app-id
isAirgap: false
replicatedID: kotsadm-id
userAgent: KOTS/v0.0.0-unknown
global:
replicated:
licenseID: online-license-id
Expand Down Expand Up @@ -702,7 +699,6 @@ image:
signature: ""
status: {}
replicatedID: kotsadm-id
userAgent: KOTS/v0.0.0-unknown
global:
replicated:
channelName: channel-name
Expand Down Expand Up @@ -854,7 +850,6 @@ global:
appID: app-id
isAirgap: false
replicatedID: kotsadm-id
userAgent: KOTS/v0.0.0-unknown
`, chartName),
"redis/charts/replicated/Chart.yaml": fmt.Sprintf(`apiVersion: v1
name: %s
Expand Down Expand Up @@ -994,7 +989,6 @@ global:
signature: ""
status: {}
replicatedID: kotsadm-id
userAgent: KOTS/v0.0.0-unknown
`, chartName),
"redis/charts/replicated/Chart.yaml": fmt.Sprintf(`apiVersion: v1
name: %s
Expand Down

0 comments on commit e9c55bc

Please sign in to comment.