Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
8d8fe11e
Commit
8d8fe11e
authored
Dec 12, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add helper functions to retrieve new/old chart versions
parent
142c8354
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
15 deletions
+37
-15
test/nextcloud/1.0.0/templates/_backup.tpl
test/nextcloud/1.0.0/templates/_backup.tpl
+0
-0
test/nextcloud/1.0.0/templates/_helpers.tpl
test/nextcloud/1.0.0/templates/_helpers.tpl
+0
-15
test/nextcloud/1.0.0/templates/_postgres.tpl
test/nextcloud/1.0.0/templates/_postgres.tpl
+16
-0
test/nextcloud/1.0.0/templates/_upgrade.tpl
test/nextcloud/1.0.0/templates/_upgrade.tpl
+21
-0
No files found.
test/nextcloud/1.0.0/templates/_backup.tpl
0 → 100644
View file @
8d8fe11e
test/nextcloud/1.0.0/templates/_helpers.tpl
View file @
8d8fe11e
...
...
@@ -106,24 +106,9 @@ app.kubernetes.io/name: {{ include "nextcloud.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{
{
/*
Postgres
Selector
labels
*/
}
}
{{- define "nextcloud.postgres.selectorLabels" -}}
app.kubernetes.io/name: {{ include "nextcloud.name" . }}-postgres
app.kubernetes.io/instance: {{ .Release.Name }}-postgres
{{- end }}
{
{
/*
Nextcloud
service
account
*/
}
}
{{- define "nextcloud.serviceAccountName" -}}
{{- printf "%s-service-account" .Release.Name -}}
{{- end -}}
{
{
/*
Get
Nextloud
Postgres
Database
Name
*/
}
}
{{- define "postgres.DatabaseName" -}}
{{- print "nextcloud" -}}
{{- end -}}
test/nextcloud/1.0.0/templates/_postgres.tpl
0 → 100644
View file @
8d8fe11e
{{
/*
Get
Nextloud
Postgres
Database
Name
*/
}}
{{- define "postgres.DatabaseName" -}}
{{- print "nextcloud" -}}
{{- end -}}
{
{
/*
Postgres
Selector
labels
*/
}
}
{{- define "nextcloud.postgres.selectorLabels" -}}
app.kubernetes.io/name: {{ include "nextcloud.name" . }}-postgres
app.kubernetes.io/instance: {{ .Release.Name }}-postgres
{{- end }}
test/nextcloud/1.0.0/templates/_upgrade.tpl
0 → 100644
View file @
8d8fe11e
{{
/*
Retrieve
previous
chart
version
from
which
we
are
upgrading
to
a
newer
chart
version
*/
}}
{{- define "tn.chart.old_version" -}}
{{- if .Values.ixChartContext.is_upgrade -}}
{{- .Values.ixChartContext.upgradeMetadata.oldChartVersion -}}
{{- else -}}
{{- fail "A chart upgrade is not taking place" -}}
{{- end -}}
{{- end -}}
{
{
/*
Retrieve
new
chart
version
to
which
we
are
upgrading
from
an
old
chart
version
*/
}
}
{{- define "tn.chart.new_version" -}}
{{- if .Values.ixChartContext.is_upgrade -}}
{{- .Values.ixChartContext.upgradeMetadata.newChartVersion -}}
{{- else -}}
{{- fail "A chart upgrade is not taking place" -}}
{{- end -}}
{{- end -}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment