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

Build-time variables to set url and version of chart #119

Closed
wants to merge 17 commits into from

Conversation

osmman
Copy link
Collaborator

@osmman osmman commented Dec 8, 2023

Depends on #118

Changes:

  • add chartUrl flag for tas-install cli
  • add Makefile with support to build tas-installer project
  • set cmd.helmChartVersion and cmd.helmChartUrl during build time by go tool link

Usage:

Dev

Build installer which use by default Helm Chart from ./charts/trusted-artifact-signer path.
make build

Prod

Compile with reseted default values to use released oci helm chart
CHART_VERSION=0.1.24 CHART_URL='oci://quay.io/redhat-user-workloads/arewm-tenant/sigstore-ocp/trusted-artifact-signer' make build

Jason Power and others added 15 commits December 7, 2023 13:14
* enable keycloak install with binary
* enable cert setup
* configure pull secret
* update pull secret logic, add rekor/fulcio secret
* add helm installation
* handle backup segment job
Signed-off-by: Sally O'Malley <[email protected]>

rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.0.3
rh-pre-commit.check-secrets: ENABLED
@osmman osmman marked this pull request as draft December 8, 2023 11:13
@osmman osmman requested review from sallyom and JasonPowr December 8, 2023 11:22
Copy link
Contributor

@JasonPowr JasonPowr left a comment

Choose a reason for hiding this comment

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

This looks good :), having the makefile and building for multiple os's is a handy thing to have.

@@ -0,0 +1,37 @@

CHART_VERSION ?= ""
CHART_URL ?= "./charts/trusted-artifact-signer"
Copy link
Member

Choose a reason for hiding this comment

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

Can this be the full git URL instead? I would like for end users to not need to git clone the repo

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It looks like we have to package chart to tgz if we want to install it via http. From helm doc:

There are six different ways you can express the chart you want to install:

  • By chart reference: helm install mymaria example/mariadb
  • By path to a packaged chart: helm install mynginx ./nginx-1.2.3.tgz
  • By path to an unpacked chart directory: helm install mynginx ./nginx
  • By absolute URL: helm install mynginx https://example.com/charts/nginx-1.2.3.tgz
  • By chart reference and repo url: helm install --repo https://example.com/charts/ mynginx nginx
  • By OCI registries: helm install mynginx --version 1.2.3 oci://example.com/charts/nginx

@sallyom sallyom force-pushed the add-uninstall branch 3 times, most recently from 4b90414 to a23da21 Compare December 10, 2023 22:42
@sallyom
Copy link
Collaborator

sallyom commented Dec 10, 2023

@osmman please rebase - @JasonPowr or I will review/merge Monday!

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.

5 participants