-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[super-agent] Improve helm chart UX (NR-281093) #1466
[super-agent] Improve helm chart UX (NR-281093) #1466
Conversation
913128e
to
dde4cec
Compare
d286ec0
to
8d5ab66
Compare
8d5ab66
to
04fe88d
Compare
I had to remove from the chart the test for cluster's Kubernetes version as it was colliding with the CI so I moved it to the PR #1471 |
0187446
to
2b9279a
Compare
The upgrade path is failing with this error:
The previous Now, instead of having it in the values we have it as a helper: https://github.com/newrelic/helm-charts/pull/1466/files#diff-f752c985c9b04f49290d4a210d58d0981e8197c5825b7747defdc701fa4e1652R25-R34 The schema changed from this: superAgent:
content:
agents:
open-telemetry:
agent_type: newrelic/io.opentelemetry.collector:0.2.0
subAgents:
open-telemetry:
content:
chart_values:
licenseKey: ${nr-env:NR_LICENSE_KEY}
cluster: ${nr-env:NR_CLUSTER_NAME} To this: subAgents:
open-telemetry:
type: newrelic/io.opentelemetry.collector:0.2.0
content:
chart_values:
licenseKey: ${nr-env:NR_LICENSE_KEY}
cluster: ${nr-env:NR_CLUSTER_NAME} So the new chart is complaining that the old chart does not have The test is ok to fail as this is a breaking change. It should not have any repercussion to any customer as we do not support upgrades with |
charts/super-agent/charts/super-agent-deployment/templates/secret-sa-auth.yaml
Show resolved
Hide resolved
...r-agent/charts/super-agent-deployment/templates/preinstall-job-register-system-identity.yaml
Outdated
Show resolved
Hide resolved
2b9279a
to
e9a9af8
Compare
charts/super-agent/values.yaml
Outdated
|
||
# -- Values that the fleet is going to have in the deployment. | ||
# @default -- See `values.yaml` for examples | ||
# @default -- {} (Empty. That defaults to configure the `newrelic/io.opentelemetry.collector` subagent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is not clear if you do not know what it is going on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the clearest way I found to explain it. I am open to any suggestion because it is a weird default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that if we say something: "If empty the chart add automatically the newrelic/io.opentelemetry.collector
subagent. On the other hand, if populated the list of agent created is the one specified overwriting the default"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done #f11ce5a. Let me know what you think :)
charts/super-agent/charts/super-agent-deployment/templates/_helpers.tpl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just left nits, feel free to discard them, LGTM thanks!
833325e
to
34b7dc2
Compare
@@ -62,7 +101,7 @@ spec: | |||
ERROR_MESSAGE=$(jq -r '.errors[0].message // "NOERROR"' "$TEMPORAL_FOLDER/response.json") | |||
if [ "$ERROR_MESSAGE" != "NOERROR" ]; then | |||
echo "Error creating an identity: $ERROR_MESSAGE" | |||
echo "Failed to create a New Relic System Identity for OpAMP communication authentication. Please verify that your User Key is valid and that your Account Organization has the necessary permissions to create a System Identity: $ERROR_MESSAGE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool thanks!
Is this a new chart
No
What this PR does / why we need it:
super-agent chart got the config from a field called
content
that added any arbitrary data to a config map. This is supposed to control this configMap and render it using values from Helm'svalues.yaml
.It also adds some protections so a customer is not able to use it on unsupported environments.
Special notes for your reviewer:
This PR is blocked until #1463 is merged.
Checklist
[mychartname]
)