-
Notifications
You must be signed in to change notification settings - Fork 25
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
test-connection: allow test-connection pod configuration #208
base: main
Are you sure you want to change the base?
Conversation
* Add `testConnection` to `values.yaml` * Modify `test-connection.yaml` to use templating * Add test-connection to configuration options in `README.md`
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.
the CI is failling
would you run ./scripts/helm-docs.sh
?
let's also add some basic unit test https://github.com/sourcegraph/deploy-sourcegraph-helm/blob/main/TEST.md
annotations: | ||
"helm.sh/hook": test | ||
spec: | ||
containers: | ||
- name: wget | ||
image: busybox | ||
image: {{ .Values.testConnection.image.name }}:{{ .Values.testConnection.image.defaultTag }} |
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.
let's use the helper partial template like other deployment
image: {{ .Values.testConnection.image.name }}:{{ .Values.testConnection.image.defaultTag }} | |
image: {{ include "sourcegraph.image" (list . "testConnection") }} |
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.
Other than the suggestion pointed out by Michael, the rest looks good to me! thanks jacob!
Add support for disabling or changing the
test-connections
pod. See issue #189.This PR makes the following changes:
testConnection
is enabled by default and uses thebusybox:latest
image from DockerHub.testConnection
can be disabled or set to use a different image using theoverride.yaml
file.Checklist
Test plan
This is a change to a test. The manual testing process was followed as described above.