-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[monochart] bugfix, remove dependecy
- Loading branch information
Showing
7 changed files
with
132 additions
and
15 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
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,42 @@ | ||
{{- /* | ||
From obsolete Kubernetes Incubator Common chart | ||
https://github.com/helm/charts/blob/master/incubator/common/ | ||
fullname defines a suitably unique name for a resource by combining | ||
the release name and the chart name. | ||
The prevailing wisdom is that names should only contain a-z, 0-9 plus dot (.) and dash (-), and should | ||
not exceed 63 characters. | ||
Parameters: | ||
- .Values.fullnameOverride: Replaces the computed name with this given name | ||
- .Values.fullnamePrefix: Prefix | ||
- .Values.global.fullnamePrefix: Global prefix | ||
- .Values.fullnameSuffix: Suffix | ||
- .Values.global.fullnameSuffix: Global suffix | ||
The applied order is: "global prefix + prefix + name + suffix + global suffix" | ||
Usage: 'name: "{{- template "common.fullname" . -}}"' | ||
*/ -}} | ||
{{- define "common.fullname"}} | ||
{{- $global := default (dict) .Values.global -}} | ||
{{- $base := default (printf "%s-%s" .Release.Name .Chart.Name) .Values.fullnameOverride -}} | ||
{{- $gpre := default "" $global.fullnamePrefix -}} | ||
{{- $pre := default "" .Values.fullnamePrefix -}} | ||
{{- $suf := default "" .Values.fullnameSuffix -}} | ||
{{- $gsuf := default "" $global.fullnameSuffix -}} | ||
{{- $name := print $gpre $pre $base $suf $gsuf -}} | ||
{{- $name | lower | trunc 54 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{- /* | ||
common.fullname.unique adds a random suffix to the unique name. | ||
This takes the same parameters as common.fullname | ||
*/ -}} | ||
{{- define "common.fullname.unique" -}} | ||
{{ template "common.fullname" . }}-{{ randAlphaNum 7 | lower }} | ||
{{- 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,46 @@ | ||
{{- /* | ||
From obsolete Kubernetes Incubator Common chart | ||
https://github.com/helm/charts/blob/master/incubator/common/ | ||
common.labelize takes a dict or map and generates labels. | ||
Values will be quoted. Keys will not. | ||
Example output: | ||
first: "Matt" | ||
last: "Butcher" | ||
*/ -}} | ||
{{- define "common.labelize" -}} | ||
{{- range $k, $v := . }} | ||
{{ $k }}: {{ $v | quote }} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- /* | ||
common.chartref prints a chart name and version. | ||
It does minimal escaping for use in Kubernetes labels. | ||
Example output: | ||
zookeeper-1.2.3 | ||
wordpress-3.2.1_20170219 | ||
*/ -}} | ||
{{- define "common.chartref" -}} | ||
{{- replace "+" "_" .Chart.Version | printf "%s-%s" .Chart.Name -}} | ||
{{- end -}} | ||
|
||
{{- /* | ||
common.labels.standard prints the standard Helm labels. | ||
The standard labels are frequently used in metadata. | ||
*/ -}} | ||
{{- define "common.labels.standard" -}} | ||
app: {{ template "common.name" . }} | ||
chart: {{ template "common.chartref" . }} | ||
heritage: {{ .Release.Service | quote }} | ||
release: {{ .Release.Name | quote }} | ||
{{- 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,32 @@ | ||
{{- /* | ||
From obsolete Kubernetes Incubator Common chart | ||
https://github.com/helm/charts/blob/master/incubator/common/ | ||
name defines a template for the name of the chart. It should be used for the `app` label. | ||
This is common practice in many Kubernetes manifests, and is not Helm-specific. | ||
The prevailing wisdom is that names should only contain a-z, 0-9 plus dot (.) and dash (-), and should | ||
not exceed 63 characters. | ||
Parameters: | ||
- .Values.nameOverride: Replaces the computed name with this given name | ||
- .Values.namePrefix: Prefix | ||
- .Values.global.namePrefix: Global prefix | ||
- .Values.nameSuffix: Suffix | ||
- .Values.global.nameSuffix: Global suffix | ||
The applied order is: "global prefix + prefix + name + suffix + global suffix" | ||
Usage: 'name: "{{- template "common.name" . -}}"' | ||
*/ -}} | ||
{{- define "common.name"}} | ||
{{- $global := default (dict) .Values.global -}} | ||
{{- $base := default .Chart.Name .Values.nameOverride -}} | ||
{{- $gpre := default "" $global.namePrefix -}} | ||
{{- $pre := default "" .Values.namePrefix -}} | ||
{{- $suf := default "" .Values.nameSuffix -}} | ||
{{- $gsuf := default "" $global.nameSuffix -}} | ||
{{- $name := print $gpre $pre $base $suf $gsuf -}} | ||
{{- $name | lower | trunc 54 | trimSuffix "-" -}} | ||
{{- 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