Skip to content

Commit

Permalink
feat(venona): add Chart version to User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
masontikhonov committed Nov 27, 2024
1 parent 849200d commit 7283b9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/cf-runtime/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A Helm chart for Codefresh Runner
name: cf-runtime
version: 7.1.8
version: 7.2.0
keywords:
- codefresh
- runner
Expand All @@ -14,7 +14,7 @@ maintainers:
url: https://codefresh-io.github.io/
annotations:
# 💡 Do not forget to update this annotation:
artifacthub.io/containsSecurityUpdates: "true"
artifacthub.io/containsSecurityUpdates: "false"
# Supported kinds: `added`, `changed`, `deprecated`, `removed`, `fixed`, `security`:
artifacthub.io/changes: |
- kind: security
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ CODEFRESH_TOKEN:
name: {{ include "runner.fullname" . }}
key: agent-codefresh-token
DOCKER_REGISTRY: {{ .Values.global.imageRegistry }}
RUNTIME_VERSION: {{ .Chart.Version }}
{{- end }}

{{- define "runner.environment-variables" }}
Expand Down
2 changes: 1 addition & 1 deletion venona/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func run(options startOptions) {

httpHeaders := http.Header{}
{
httpHeaders.Add("User-Agent", fmt.Sprintf("cf-classic-runner/%s", version))
httpHeaders.Add("User-Agent", fmt.Sprintf("cf-classic-runner/%s,cf-classic-runtime/%s", version, os.Getenv("RUNTIME_VERSION")))
}

cf = codefresh.New(codefresh.Options{
Expand Down

0 comments on commit 7283b9c

Please sign in to comment.