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

feat: add the ability to install the agent and control plane without secrets #189

Merged

Conversation

emil2k
Copy link
Contributor

@emil2k emil2k commented Jul 5, 2024

I have forked/vendored the Dex and Minio charts to enable installations without secrets. The following PRs have been contributed to the upstream charts:

Checklist:

  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.
  • My CI is green.

@emil2k emil2k added the enhancement New feature or request label Jul 5, 2024
@emil2k emil2k self-assigned this Jul 5, 2024
ed382 added 2 commits July 8, 2024 12:17
…ity-to-install-the-agent-and-control-plane

 Conflicts:
	charts/testkube-enterprise/Chart.lock
	charts/testkube-enterprise/Chart.yaml
	charts/testkube-enterprise/values.yaml
@ed382 ed382 marked this pull request as ready for review July 8, 2024 11:53
@ed382 ed382 requested a review from a team as a code owner July 8, 2024 11:53
@ed382 ed382 assigned ed382 and unassigned emil2k Jul 9, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this ci folder in our charts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not, I just did the helm pull and made my changes on the vendored copy. It was easier not to make too many changes to the original, so that I could easily produce a patch to contribute to the upstream repository.

@@ -302,6 +307,10 @@ spec:
value: "{{ $minioSkipVerify }}"
- name: MINIO_EXPIRATION
value: "{{ .Values.api.minio.expirationPeriod }}"
{{- if .Values.api.minio.credsFilePath }}
- name: MINIO_SHARED_CREDENTIALS_FILE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this env var added to the API code? also how to define the creds in this file?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is environment variable is accessed by the Minio Go SDK.
I added the ability to specify Minio credentials by file here:
https://github.com/kubeshop/testkube-cloud-api/pull/1371

How to define the credentials in this file is described in the accompanying docs here:
https://github.com/kubeshop/testkube-docs/pull/58/files#diff-afed191427785df27b2a6e0cd7840e9fceab8a15af487b5e62f9b20ea326ba46R237

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we also need to have templates for cassandra, mariadb etc..?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not, but I did not prune the chart down to only what we need.
The intent is for us to get the PRs merged into the upstream repos and then maybe go back to using the original charts.

Otherwise, we could look into trimming these charts later.

…ity-to-install-the-agent-and-control-plane

 Conflicts:
	charts/testkube-enterprise/Chart.lock
	charts/testkube-enterprise/values.yaml
@ed382 ed382 merged commit 15b4c33 into main Jul 10, 2024
3 checks passed
@ed382 ed382 deleted the tkc-2139-add-the-ability-to-install-the-agent-and-control-plane branch July 10, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants