forked from helm/charts
-
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.
Rename service port to http (helm#4442)
* Rename service port to http * Remove dependency from common chart * Added keywords for Chart.yaml
- Loading branch information
Showing
8 changed files
with
106 additions
and
22 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 was deleted.
Oops, something went wrong.
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,84 @@ | ||
{{- /* | ||
name defines a template for the name of the chartmuseum chart. | ||
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 "chartmuseum.name" . -}}"' | ||
*/ -}} | ||
{{- define "chartmuseum.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 -}} | ||
|
||
{{- /* | ||
fullname defines a suitably unique name for a resource by combining | ||
the release name and the chartmuseum 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 "chartmuseum.fullname" . -}}"' | ||
*/ -}} | ||
{{- define "chartmuseum.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 -}} | ||
|
||
|
||
{{- /* | ||
chartmuseum.labels.standard prints the standard chartmuseum Helm labels. | ||
The standard labels are frequently used in metadata. | ||
*/ -}} | ||
{{- define "chartmuseum.labels.standard" -}} | ||
app: {{ template "chartmuseum.name" . }} | ||
chart: {{ template "chartmuseum.chartref" . }} | ||
heritage: {{ .Release.Service | quote }} | ||
release: {{ .Release.Name | quote }} | ||
{{- end -}} | ||
|
||
{{- /* | ||
chartmuseum.chartref prints a chart name and version. | ||
It does minimal escaping for use in Kubernetes labels. | ||
Example output: | ||
chartmuseum-0.4.5 | ||
*/ -}} | ||
{{- define "chartmuseum.chartref" -}} | ||
{{- replace "+" "_" .Chart.Version | printf "%s-%s" .Chart.Name -}} | ||
{{- 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
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