Skip to content

Commit

Permalink
Merge pull request #110 from gimlet-io/add-oci-support-for-onechart
Browse files Browse the repository at this point in the history
Add OCI support for onechart
  • Loading branch information
laszlocph authored Dec 15, 2023
2 parents f56b8a6 + 1ffc755 commit de52306
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 17 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,34 @@ Because no-one can remember the Kubernetes yaml syntax.
https://gimlet.io/docs/onechart-reference

## Getting started
Check the generated Kubernetes yaml:
```bash
helm template my-release onechart/onechart \
--set image.repository=nginx \
--set image.tag=1.19.3
```
Deploy with Helm:

```bash
helm install my-release onechart/onechart \
--set image.repository=nginx \
--set image.tag=1.19.3
```
### Alternative: using an OCI repository
You can also template and install onechart from an OCI repository as follows:

Check the generated Kubernetes yaml:

```bash
helm template my-release oci://ghcr.io/gimlet-io/onechart \
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 \
--set image.repository=nginx \
--set image.tag=1.19.3
```

Deploy with Helm:

```bash
helm install my-release oci://ghcr.io/gimlet-io/onechart \
helm install my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 \
--set image.repository=nginx \
--set image.tag=1.19.3
```
Expand Down
2 changes: 1 addition & 1 deletion charts/cron-job/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0..0
version: 0.62.0

dependencies:
- name: common
Expand Down
2 changes: 1 addition & 1 deletion charts/onechart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0..0
version: 0.62.0

dependencies:
- name: common
Expand Down
2 changes: 1 addition & 1 deletion charts/static-site/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.64.0-rc.2
version: 0.62.0

2 changes: 1 addition & 1 deletion website/docs/examples/cron-job.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ command: |
echo "hello"
EOF

helm template my-release onechart/cron-job -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/cron-job --version 0.62.0
```

!!! warning
Expand Down
2 changes: 1 addition & 1 deletion website/docs/examples/custom-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ command: |
while true; do date; sleep 2; done
EOF

helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```

### Using bash
Expand Down
2 changes: 1 addition & 1 deletion website/docs/examples/debugSidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ volumes:
Check the Kubernetes manifest:
```bash
helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```
2 changes: 1 addition & 1 deletion website/docs/examples/deploying-a-private-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ imagePullSecrets:
- name: regcred
EOF

helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```

!!! warning
Expand Down
2 changes: 1 addition & 1 deletion website/docs/examples/deploying-an-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ image:
tag: 1.19.3
EOF

helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```
4 changes: 2 additions & 2 deletions website/docs/examples/domain-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ingress:
host: my-release.mycompany.com
EOF

helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```

!!! warning
Expand All @@ -48,5 +48,5 @@ ingress:
tlsEnabled: true
EOF

helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```
2 changes: 1 addition & 1 deletion website/docs/examples/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ image:

EOF

helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```

!!! note
Expand Down
2 changes: 1 addition & 1 deletion website/docs/examples/feature-branch-deploys.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Release name is unique in Helm too, so it makes it a good tool to drive resource
One good practice can be to add a `-$BRANCH` suffix to the feature branch instance:

```
helm template my-release-my-branch oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release-my-branch oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```

### Avoiding domain name collision
Expand Down
2 changes: 1 addition & 1 deletion website/docs/examples/prometheus-monitoring-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ prometheusRules:
Check the Kubernetes manifest:
```bash
helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```
2 changes: 1 addition & 1 deletion website/docs/examples/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ secret:
enabled: true
EOF

helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```

### Using encrypted secret values
Expand Down
2 changes: 1 addition & 1 deletion website/docs/examples/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ volumes:
storageClass: default
EOF

helm template my-release oci://ghcr.io/gimlet-io/onechart -f values.yaml
helm template my-release oci://ghcr.io/gimlet-io/onechart --version 0.62.0 -f values.yaml
```

!!! warning
Expand Down

0 comments on commit de52306

Please sign in to comment.