Skip to content

Commit 1b354c0

Browse files
Pete Wallpetewall
Pete Wall
authored andcommitted
Update Concourse example to put the relocated chart in a different registry. This is a useful final step to this example.
Signed-off-by: Pete Wall <[email protected]>
1 parent 22f1793 commit 1b354c0

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

examples/concourse-pipeline/README.md

+24-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ resources:
1919
repository: projects.registry.vmware.com/tanzu_isv_engineering/relok8s
2020
```
2121
22-
### Helm Chart
22+
### Helm Charts
2323
24-
The pipeline also loads a Helm chart, using the [Helm Chart resource](https://github.com/jghiloni/helm-chart-resource).
25-
In this example, we are using the [Bitnami Nginx](https://bitnami.com/stack/nginx/helm) chart.
24+
The pipeline also loads a Helm chart, using the [Helm Chart resource](https://github.com/jghiloni/helm-chart-resource)
25+
(In this example, the [Bitnami Nginx](https://bitnami.com/stack/nginx/helm) chart),
26+
and it finally stores the relocated chart into a Harbor registry.
2627
2728
```yaml
2829
resource_types:
@@ -41,6 +42,15 @@ resources:
4142
source:
4243
repository_url: https://charts.bitnami.com/bitnami
4344
chart: nginx
45+
46+
- name: relocated-chart
47+
type: helm-chart
48+
icon: kubernetes
49+
source:
50+
repository_url: https://harbor-repo.vmware.com/chartrepo/tanzu_isv_engineering_private
51+
username: ((harbor-private.username))
52+
password: ((harbor-private.token))
53+
chart: nginx
4454
```
4555
4656
## Jobs
@@ -130,4 +140,15 @@ In a production setting, this task would not be necessary, but would likely be r
130140
! diff --context=3 \
131141
<(tar xzfO nginx-chart/*.tgz nginx/values.yaml) \
132142
<(tar xzfO rewritten-chart/chart.tgz nginx/values.yaml)
143+
```
144+
145+
### put
146+
147+
Finally, the relocated chart is pushed to the Harbor registry
148+
149+
```yaml
150+
- put: relocated-chart
151+
inputs: detect
152+
params:
153+
repository: rewritten-chart/chart.tgz
133154
```
-2.05 KB
Loading

examples/concourse-pipeline/pipeline.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ resources:
2424
repository_url: https://charts.bitnami.com/bitnami
2525
chart: nginx
2626

27+
- name: relocated-chart
28+
type: helm-chart
29+
icon: kubernetes
30+
source:
31+
repository_url: https://harbor-repo.vmware.com/chartrepo/tanzu_isv_engineering_private
32+
username: ((harbor-private.username))
33+
password: ((harbor-private.token))
34+
chart: nginx
35+
2736
jobs:
2837
- name: relocate-chart
2938
plan:
@@ -91,3 +100,7 @@ jobs:
91100
! diff --context=3 \
92101
<(tar xzfO nginx-chart/*.tgz nginx/values.yaml) \
93102
<(tar xzfO rewritten-chart/chart.tgz nginx/values.yaml)
103+
- put: relocated-chart
104+
inputs: detect
105+
params:
106+
repository: rewritten-chart/chart.tgz

0 commit comments

Comments
 (0)