Skip to content

Commit

Permalink
Merge pull request #17 from krancour/helm-3.7
Browse files Browse the repository at this point in the history
updating for helm 3.7
  • Loading branch information
krancour authored Aug 31, 2021
2 parents 035961e + 8aa1431 commit 47de1b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .brigade/brigade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const releaseTagRegex = /^refs\/tags\/(v[0-9]+(?:\.[0-9]+)*(?:\-.+)?)$/

const goImg = "brigadecore/go-tools:v0.1.0"
const kanikoImg = "brigadecore/kaniko:v0.2.0"
const helmImg = "brigadecore/helm-tools:v0.1.0"
const helmImg = "brigadecore/helm-tools:v0.2.0"
const localPath = "/workspaces/brigade-metrics"

// MakeTargetJob is just a job wrapper around a make target.
Expand Down
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ifneq ($(SKIP_DOCKER),true)
-w /workspaces/brigade-metrics \
$(KANIKO_IMAGE)

HELM_IMAGE := brigadecore/helm-tools:v0.1.0
HELM_IMAGE := brigadecore/helm-tools:v0.2.0

HELM_DOCKER_CMD := docker run \
-it \
Expand Down Expand Up @@ -164,10 +164,8 @@ publish-chart:
helm registry login $(HELM_REGISTRY) -u $(HELM_USERNAME) -p $${HELM_PASSWORD} && \
cd charts/brigade-metrics && \
helm dep up && \
sed -i "s/^version:.*/version: $(VERSION)/" Chart.yaml && \
sed -i "s/^appVersion:.*/appVersion: $(VERSION)/" Chart.yaml && \
helm chart save . $(HELM_CHART_PREFIX)brigade-metrics:$(VERSION) && \
helm chart push $(HELM_CHART_PREFIX)brigade-metrics:$(VERSION) \
helm package . --version $(VERSION) --app-version $(VERSION) && \
helm push brigade-metrics-$(VERSION).tgz oci://$(HELM_REGISTRY)$(HELM_ORG) \
'

################################################################################
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ the Helm 3 dependency proves troublesome for users, or in the event that this
experimental feature goes away, or isn't working like we'd hope, we will revisit
this choice before going GA.

To install Brigade Metrics, begin by pulling the chart from GCR and exporting
it to some location on your local system. Here, we export it to `~/charts`:
First, be sure you are using
[Helm 3.7.0-rc.1](https://github.com/helm/helm/releases/tag/v3.7.0-rc.1) and
enable experimental OCI support:

```console
$ export HELM_EXPERIMENTAL_OCI=1
$ helm chart pull ghcr.io/brigadecore/brigade-metrics:v0.1.0
$ helm chart export ghcr.io/brigadecore/brigade-metrics:v0.1.0 -d ~/charts
```

Use the following command to extract the full set of configuration options from
the chart. Here we're storing a copy at `~/brigade-metrics-values.yaml`:

```console
$ helm inspect values ~/charts/brigade-metrics > ~/brigade-metrics-values.yaml
$ helm inspect values oci://ghcr.io/brigadecore/brigade-metrics \
--version v0.2.0 > ~/brigade-metrics-values.yaml
```

Edit the configuration (`~/brigade-metrics-values.yaml` in this example). At
Expand All @@ -86,7 +86,9 @@ minimum, you will need to make the following changes:
Install Brigade Metrics, referencing your edited configuration:

```console
$ helm install brigade-metrics ~/charts/brigade-metrics \
$ helm install brigade-metrics \
oci://ghcr.io/brigadecore/brigade-metrics \
--version v0.2.0 \
--create-namespace \
--namespace brigade-metrics \
--values ~/brigade-metrics-values.yaml
Expand Down

0 comments on commit 47de1b9

Please sign in to comment.