-
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.
Merge pull request #58 from foomo/blank
Blank
- Loading branch information
Showing
10 changed files
with
220 additions
and
1 deletion.
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
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,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,18 @@ | ||
apiVersion: v2 | ||
type: application | ||
name: blank | ||
description: Blank Resource Chart | ||
icon: https://avatars.githubusercontent.com/u/889755?s=200&v=4 | ||
home: https://www.foomo.org | ||
keywords: | ||
- foomo | ||
- blank | ||
sources: | ||
- https://github.com/foomo/helm-charts | ||
annotations: | ||
"artifacthub.io/links": | | ||
- name: Chart Source | ||
url: https://github.com/foomo/helm-charts/tree/main/charts/blank | ||
version: 0.1.0 | ||
appVersion: 0.1.0 |
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,27 @@ | ||
# blank | ||
|
||
   | ||
|
||
Blank Resource Chart | ||
|
||
**Homepage:** <https://www.foomo.org> | ||
|
||
## Source Code | ||
|
||
* <https://github.com/foomo/helm-charts> | ||
|
||
## Values | ||
|
||
### Overrides | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| fullnameOverride | string | `""` | Overrides the chart's computed fullname | | ||
| nameOverride | string | `""` | Overrides the chart's name | | ||
| namespaceOverride | string | `""` | The name of the Namespace to deploy | | ||
|
||
### General | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| templates | object | `{}` | Custom templates to inject | |
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,16 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.deprecationWarning" . }} | ||
|
||
{{ template "chart.badgesSection" . }} | ||
|
||
{{ template "chart.description" . }} | ||
|
||
{{ template "chart.homepageLine" . }} | ||
|
||
{{ template "chart.maintainersSection" . }} | ||
|
||
{{ template "chart.sourcesSection" . }} | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesSection" . }} |
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,58 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "blank.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "blank.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "blank.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "blank.labels" -}} | ||
helm.sh/chart: {{ include "blank.chart" . }} | ||
{{ include "blank.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "blank.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "blank.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the namespace | ||
*/}} | ||
{{- define "blank.namespace" -}} | ||
{{- default .Release.Namespace .Values.namespaceOverride }} | ||
{{- 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{- $files := .Files }} | ||
{{- range $filename, $template := .Values.templates }} | ||
# Filename: {{ $filename }} | ||
{{ tpl $template $ }} | ||
--- | ||
{{- 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"additionalProperties": false, | ||
"properties": { | ||
"fullnameOverride": { | ||
"default": "", | ||
"description": "Overrides the chart's computed fullname", | ||
"required": [], | ||
"title": "fullnameOverride", | ||
"type": "string" | ||
}, | ||
"global": { | ||
"description": "Global values are values that can be accessed from any chart or subchart by exactly the same name.", | ||
"required": [], | ||
"title": "global", | ||
"type": "object" | ||
}, | ||
"nameOverride": { | ||
"default": "", | ||
"description": "Overrides the chart's name", | ||
"required": [], | ||
"title": "nameOverride", | ||
"type": "string" | ||
}, | ||
"namespaceOverride": { | ||
"default": "", | ||
"description": "The name of the Namespace to deploy", | ||
"required": [], | ||
"title": "namespaceOverride", | ||
"type": "string" | ||
}, | ||
"templates": { | ||
"additionalProperties": true, | ||
"description": "Custom templates to inject", | ||
"required": [], | ||
"title": "templates", | ||
"type": "object" | ||
} | ||
}, | ||
"required": [], | ||
"type": "object" | ||
} |
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,28 @@ | ||
# yaml-language-server: $schema=values.schema.json | ||
|
||
# @schema | ||
# type: string | ||
# @schema | ||
# -- Overrides the chart's name | ||
# @section -- Overrides | ||
nameOverride: '' | ||
# @schema | ||
# type: string | ||
# @schema | ||
# -- Overrides the chart's computed fullname | ||
# @section -- Overrides | ||
fullnameOverride: '' | ||
# @schema | ||
# type: string | ||
# @schema | ||
# -- The name of the Namespace to deploy | ||
# @section -- Overrides | ||
namespaceOverride: '' | ||
|
||
# @schema | ||
# type: object | ||
# additionalProperties: true | ||
# @schema | ||
# -- Custom templates to inject | ||
# @section -- General | ||
templates: {} |
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