File tree Expand file tree Collapse file tree 6 files changed +83
-0
lines changed
charts/custom-resource-template Expand file tree Collapse file tree 6 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ # Patterns to ignore when building packages.
2+ # This supports shell glob matching, relative path matching, and
3+ # negation (prefixed with !). Only one pattern per line.
4+ .DS_Store
5+ # Common VCS dirs
6+ .git/
7+ .gitignore
8+ .bzr/
9+ .bzrignore
10+ .hg/
11+ .hgignore
12+ .svn/
13+ # Common backup files
14+ *.swp
15+ *.bak
16+ *.tmp
17+ *.orig
18+ *~
19+ # Various IDEs
20+ .project
21+ .idea/
22+ *.tmproj
23+ .vscode/
Original file line number Diff line number Diff line change 1+ apiVersion : v2
2+ appVersion : v1.0.0
3+ description : A Helm chart for custom resources
4+ home : https://app.modusign.co.kr
5+ keywords :
6+ - modusign
7+ - custom-resource
8+ kubeVersion : " >=1.23"
9+ maintainers :
10+ - name : modusign
11+ url : https://github.com/modusign
12+ name : custom-resource-template
13+ version : 1.0.0
Original file line number Diff line number Diff line change 1+ { {/*
2+ Expand the name of the chart.
3+ */} }
4+ { {- define " name" -} }
5+ { {- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix " -" } }
6+ { {- end } }
7+
8+ { {/*
9+ Create a default fully qualified app name.
10+ We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+ If release name contains chart name it will be used as a full name.
12+ */} }
13+ { {- define " fullname" -} }
14+ { {- if .Values.fullnameOverride } }
15+ { {- .Values.fullnameOverride | trunc 63 | trimSuffix " -" } }
16+ { {- else } }
17+ { {- $name := default .Chart.Name .Values.nameOverride } }
18+ { {- if contains $name .Release.Name } }
19+ { {- .Release.Name | trunc 63 | trimSuffix " -" } }
20+ { {- else } }
21+ { {- printf " %s-%s" .Release.Name $name | trunc 63 | trimSuffix " -" } }
22+ { {- end } }
23+ { {- end } }
24+ { {- end } }
25+
26+ { {/*
27+ Create chart name and version as used by the chart label.
28+ */} }
29+ { {- define " chart" -} }
30+ { {- printf " %s-%s" .Chart.Name .Chart.Version | replace " +" " _" | trunc 63 | trimSuffix " -" } }
31+ { {- end } }
32+
33+ { {/*
34+ Common labels
35+ */} }
36+ { {- define " labels" -} }
37+ helm.sh/chart: { { include " chart" . } }
38+ { {- if .Chart.AppVersion } }
39+ app.kubernetes.io/version: { { .Chart.AppVersion | quote } }
40+ { {- end } }
41+ app.kubernetes.io/managed-by: { { .Release.Service } }
42+ { {- end } }
Original file line number Diff line number Diff line change 1+ {{- range $resource := .Values.extraResources }}
2+ ---
3+ {{ toYaml $resource }}
4+ {{- end }}
Original file line number Diff line number Diff line change 1+ extraResources : []
You can’t perform that action at this time.
0 commit comments