-
Notifications
You must be signed in to change notification settings - Fork 24
Configure resources of the hyperdx-deployment initContainers #124
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
base: main
Are you sure you want to change the base?
Configure resources of the hyperdx-deployment initContainers #124
Conversation
|
ab687be
to
c70def3
Compare
@dhable would you mind reviewing please? |
- name: wait-for-mongodb | ||
image: busybox | ||
command: ['sh', '-c', 'until nc -z {{ include "hdx-oss.fullname" . }}-mongodb {{ .Values.mongodb.port }}; do echo waiting for mongodb; sleep 2; done;'] | ||
{{- if .Values.hyperdx.initContainers.resources }} |
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.
There were a lot of test failures from this PR. It's stemming from this line when an initContainer
isn't defined. The target of the resources
property lookup is null and this crashes.
There is a function called dig
that can provide safe access to nested properties while handling null values safely.
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.
thank you -- opted for hasKey
for simplicity, and since there's no meaningful default value that I need if key isn't present. WDYT?
Update the chart template to configure resources in the hyperdx-deployment
initContainers
section.