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
18086737
Commit
18086737
authored
Jan 25, 2021
by
Kris Moore
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of some unneeded API version checks, remove extraArgs which we
ended up not using
parent
1ed68b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
charts/ipfs/1.0.0/templates/_helpers.tpl
charts/ipfs/1.0.0/templates/_helpers.tpl
+0
-17
No files found.
charts/ipfs/1.0.0/templates/_helpers.tpl
View file @
18086737
...
...
@@ -35,23 +35,15 @@ Create chart name and version as used by the chart label.
Return
the
appropriate
apiVersion
for
deployment
.
*/
}
}
{{- define "ipfs.deployment.apiVersion" -}}
{{- if semverCompare "
<1
.
9-0
"
.
Capabilities
.
KubeVersion
.
Version
-
}}
{{
-
print
"
apps
/
v1beta2
"
-
}}
{{
-
else
-
}}
{{- print "apps/v1" -}}
{{- end -}}
{{
-
end
-
}}
{
{
/*
Return
the
appropriate
apiVersion
for
statefulset
.
*/
}
}
{{- define "ipfs.statefulset.apiVersion" -}}
{{
-
if
semverCompare
"<
1
.
17-0
"
.
Capabilities
.
KubeVersion
.
Version
-
}}
{{
-
print
"
apps
/
v1beta2
"
-
}}
{{
-
else
-
}}
{{- print "apps/v1" -}}
{{- end -}}
{{
-
end
-
}}
{
{
/*
Determine
secret
name
.
...
...
@@ -73,12 +65,3 @@ Determine name for scc role and rolebinding
{{- define "ipfs.sccRoleName" -}}
{{- printf "%s-%s" "scc" (include "ipfs.fullname" .) | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{
{
/*
Properly
format
optional
additional
arguments
to
IPFS
binary
*/
}
}
{{
-
define
"
ipfs
.
extraArgs
"
-
}}
{{
-
range
.
Values
.
extraArgs
-
}}
{{
"
"
}}{{
.
}}
{{
-
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