-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f77ba45
commit 393601a
Showing
10 changed files
with
134 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
if [ -f "${PWD}/kubeconfig" ]; then | ||
export KUBECONFIG="${PWD}/kubeconfig" | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
kubeconfig | ||
kubeconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# container-app | ||
|
||
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) | ||
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) | ||
![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) | ||
|
||
A Helm chart for a generic Docker app | ||
|
||
## Maintainers | ||
|
||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| demeesterdev | <thijs@demeester.dev> | <https://github.com/demeesterdev> | | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| affinity | object | `{}` | | | ||
| args | list | `[]` | | | ||
| command | list | `[]` | | | ||
| configs | list | `[]` | | | ||
| deploymentStrategy.type | string | `"Recreate"` | | | ||
| env | list | `[]` | | | ||
| envFrom | list | `[]` | | | ||
| extraContainers | list | `[]` | | | ||
| extraVolumes | list | `[]` | | | ||
| fullnameOverride | string | `""` | | | ||
| image.pullPolicy | string | `"IfNotPresent"` | | | ||
| image.repository | string | `"nginx"` | | | ||
| image.tag | string | `"alpine"` | | | ||
| imagePullSecrets | list | `[]` | | | ||
| ingress.annotations | object | `{}` | | | ||
| ingress.enabled | bool | `true` | | | ||
| ingress.hosts[0].host | string | `"example.demeester.app"` | | | ||
| ingress.hosts[0].paths[0].path | string | `"/"` | | | ||
| ingress.hosts[0].paths[0].pathType | string | `"Prefix"` | | | ||
| ingress.hosts[0].paths[0].port | int | `80` | | | ||
| ingress.tls[0].hosts[0] | string | `"example.mcswain.app"` | | | ||
| ingress.tls[0].secretName | string | `"example-demeester-app-tls"` | | | ||
| initContainers | list | `[]` | | | ||
| lifecycle | object | `{}` | | | ||
| nameOverride | string | `""` | | | ||
| nodeSelector | object | `{}` | | | ||
| persistentVolumes | list | `[]` | | | ||
| podAnnotations | object | `{}` | | | ||
| podSecurityContext | object | `{}` | | | ||
| probes | object | `{}` | | | ||
| replicaCount | int | `1` | | | ||
| resources | object | `{}` | | | ||
| secrets | list | `[]` | | | ||
| securityContext | object | `{}` | | | ||
| service.ports[0].name | string | `"http"` | | | ||
| service.ports[0].port | int | `80` | | | ||
| service.type | string | `"ClusterIP"` | | | ||
| serviceAccountName | string | `nil` | | | ||
| tolerations | list | `[]` | | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.deprecationWarning" . }} | ||
|
||
{{ template "chart.versionBadge" . }} | ||
{{ template "chart.typeBadge" . }} | ||
{{ template "chart.appVersionBadge" . }} | ||
|
||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.homepageLine" . }} | ||
|
||
{{ template "chart.maintainersSection" . }} | ||
|
||
{{ template "chart.sourcesSection" . }} | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesSection" . }} | ||
|
||
{{- if not .SkipVersionFooter }} | ||
{{ template "helm-docs.versionFooter" . }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{- define "custom.chart.name" -}} | ||
Generic App | ||
# Generic App | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/demeesterdev/helm-charts | ||
|
||
go 1.22.5 | ||
go 1.22.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# require yq | ||
command -v yq >/dev/null 2>&1 || { | ||
echo >&2 'yq (https://github.com/mikefarah/yq) is not installed. Aborting.' | ||
exit 1 | ||
} | ||
|
||
# Absolute path of repository | ||
repository="$(git rev-parse --show-toplevel)" | ||
charts_folder="$repository/charts" | ||
charts_summary_file="$repository/README.md" | ||
charts_header='## Chart Overview' | ||
|
||
# Gather all charts | ||
stable_charts="$(find "$charts_folder" -name "Chart.yaml" | sort)" | ||
|
||
sed -i '' '/^'"$charts_header"'$/,$d' "$charts_summary_file" | ||
|
||
{ | ||
echo "$charts_header" | ||
echo | ||
echo "| Chart | Description |" | ||
echo "| ----- | ----------- |" | ||
for chart_yaml in ${stable_charts[@]}; do | ||
if ! git ls-files --error-unmatch "$chart_yaml" &>/dev/null; then continue; fi | ||
IFS=$'\t' read -r chart_name chart_description chart_icon < <(yq eval -o=tsv '[.name, .description, .icon // ""]' "$chart_yaml") | ||
if [ -n "$chart_icon" ]; then | ||
width=18 | ||
if [[ "$chart_name" == mnemonic-ninja ]]; then | ||
width=12 | ||
fi | ||
chart_icon=" <img src='$chart_icon' alt='$chart_name icon' width='${width}px' align='right' loading='lazy'>" | ||
fi | ||
pretty_name="$(head -n1 "$(dirname "$chart_yaml")/README.md" | sed 's/^# //')" | ||
echo "| [$pretty_name$chart_icon](charts/$chart_name/) | $chart_description |" | ||
done | ||
} >> "$charts_summary_file" |