Skip to content

Conversation

@jdpleiness
Copy link
Contributor

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 the busybox:latest image from DockerHub.
  • testConnection can be disabled or set to use a different image using the override.yaml file.

Checklist

Test plan

This is a change to a test. The manual testing process was followed as described above.

* Add `testConnection` to `values.yaml`
* Modify `test-connection.yaml` to use templating
* Add test-connection to configuration options in `README.md`
@jdpleiness jdpleiness requested review from a team and michaellzc November 4, 2022 18:02
Copy link
Member

@michaellzc michaellzc left a 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

containers:
- name: wget
image: busybox
image: {{ .Values.testConnection.image.name }}:{{ .Values.testConnection.image.defaultTag }}
Copy link
Member

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

Suggested change
image: {{ .Values.testConnection.image.name }}:{{ .Values.testConnection.image.defaultTag }}
image: {{ include "sourcegraph.image" (list . "testConnection") }}

Copy link
Contributor

@abeatrix abeatrix left a 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!

@jdpleiness jdpleiness closed this Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants