Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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 michaellzc and a team 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

annotations:
"helm.sh/hook": test
spec:
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!

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.

3 participants