Skip to content

Commit

Permalink
[agent-control]: add chart version to agent-control config [NR-348101] (
Browse files Browse the repository at this point in the history
  • Loading branch information
sigilioso authored Dec 19, 2024
1 parent e9b712c commit 2f1f922
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions charts/agent-control/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ dependencies:
version: 2.13.0
- name: agent-control-deployment
repository: ""
version: 0.0.33-beta
version: 0.0.34-beta
- name: common-library
repository: https://helm-charts.newrelic.com
version: 1.3.0
digest: sha256:c003fc9e9396a7e694869a802d8138abafb8fba925fafe0e312b0bb8ae1534fc
generated: "2024-12-17T17:38:29.951026+01:00"
digest: sha256:761cf4bfc4afd0105504db2bda44671ee4419650d010946dca9932d74568cf41
generated: "2024-12-19T14:07:26.085962+01:00"
4 changes: 2 additions & 2 deletions charts/agent-control/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: agent-control
description: Bootstraps New Relic' Agent Control

type: application
version: 0.0.34-beta
version: 0.0.35-beta

dependencies:
- name: flux2
repository: https://fluxcd-community.github.io/helm-charts
version: 2.13.0
condition: flux2.enabled
- name: agent-control-deployment
version: 0.0.33-beta
version: 0.0.34-beta
condition: agent-control-deployment.enabled
# The following dependency is needed as sub-dependency of agent-control-deployment
- name: common-library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart to install New Relic Agent Control on Kubernetes

type: application

version: 0.0.33-beta
version: 0.0.34-beta

keywords:
- newrelic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ If you need a list of TODOs, just `grep TODO` on the `values.yaml` and look for
{{- $config := dict "server" (dict "enabled" true) -}}

{{- /* Add to config k8s cluster and namespace config */ -}}
{{- $k8s := (dict "cluster_name" (include "newrelic.common.cluster" .) "namespace" .Release.Namespace) -}}
{{- $k8s := (dict "cluster_name" (include "newrelic.common.cluster" .) "namespace" .Release.Namespace "chart_version" .Chart.Version) -}}
{{- $config = mustMerge $config (dict "k8s" $k8s) -}}

{{- /* Add fleet_control if enabled */ -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ templates:
release:
name: my-release
namespace: my-namespace
chart:
version: 1.2.3-beta
tests:
- it: agent control's config can be disabled
set:
Expand All @@ -26,6 +28,7 @@ tests:
value: |
agents: {}
k8s:
chart_version: 1.2.3-beta
cluster_name: my-cluster
namespace: my-namespace
server:
Expand All @@ -50,6 +53,7 @@ tests:
endpoint: https://opamp.service.newrelic.com/v1/opamp
fleet_id: abcefg
k8s:
chart_version: 1.2.3-beta
cluster_name: my-cluster
namespace: my-namespace
server:
Expand All @@ -72,6 +76,7 @@ tests:
token_url: https://system-identity-oauth.service.newrelic.com/oauth2/token
endpoint: https://opamp.service.newrelic.com/v1/opamp
k8s:
chart_version: 1.2.3-beta
cluster_name: my-cluster
namespace: my-namespace
server:
Expand All @@ -97,6 +102,7 @@ tests:
token_url: https://system-identity-oauth.service.newrelic.com/oauth2/token
endpoint: https://opamp.service.newrelic.com/v1/opamp
k8s:
chart_version: 1.2.3-beta
cluster_name: my-cluster
namespace: my-namespace
server:
Expand Down Expand Up @@ -127,6 +133,7 @@ tests:
token_url: https://system-identity-oauth.service.newrelic.com/oauth2/token
endpoint: https://opamp.service.newrelic.com/v1/opamp
k8s:
chart_version: 1.2.3-beta
cluster_name: config-cluster
namespace: config-namespace
server:
Expand All @@ -150,6 +157,7 @@ tests:
token_url: https://system-identity-oauth.service.newrelic.com/oauth2/token
endpoint: https://opamp.service.eu.newrelic.com/v1/opamp
k8s:
chart_version: 1.2.3-beta
cluster_name: my-cluster
namespace: my-namespace
server:
Expand Down
2 changes: 1 addition & 1 deletion charts/agent-control/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ agent-control-deployment:
image:
registry:
repository: newrelic/newrelic-agent-control
tag: "0.26.3"
tag: "0.27.0"
imagePullPolicy: IfNotPresent
# -- The secrets that are needed to pull images from a custom registry.
pullSecrets: []
Expand Down

0 comments on commit 2f1f922

Please sign in to comment.