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
f5b7e4e6
Commit
f5b7e4e6
authored
Jan 30, 2021
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary code in minio chart
parent
e06cbe12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
97 deletions
+2
-97
test/minio/1.0.1/templates/_helpers.tpl
test/minio/1.0.1/templates/_helpers.tpl
+1
-69
test/minio/1.0.1/templates/_storage.tpl
test/minio/1.0.1/templates/_storage.tpl
+0
-23
test/minio/1.0.1/templates/secrets.yaml
test/minio/1.0.1/templates/secrets.yaml
+1
-5
No files found.
test/minio/1.0.1/templates/_helpers.tpl
View file @
f5b7e4e6
{{
/*
vim
:
set
filetype
=
mustache
:
*/
}}
{
{
/*
Expand
the
name
of
the
chart
.
*/
}
}
{{- define "minio.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{
{
/*
Create
a
default
fully
qualified
app
name
.
We
truncate
at
63
chars
because
some
Kubernetes
name
fields
are
limited
to
this
(
by
the
DNS
naming
spec
).
If
release
name
contains
chart
name
it
will
be
used
as
a
full
name
.
*/
}
}
{{- define "minio.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{
{
/*
Create
chart
name
and
version
as
used
by
the
chart
label
.
*/
}
}
{{- define "minio.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{
{
/*
Return
the
appropriate
apiVersion
for
deployment
.
*/
}
}
{{- define "minio.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
"
minio
.
statefulset
.
apiVersion
"
-
}}
{{
-
if
semverCompare
"<
1
.
17-0
"
.
Capabilities
.
KubeVersion
.
Version
-
}}
{{
-
print
"
apps
/
v1beta2
"
-
}}
{{
-
else
-
}}
{{
-
print
"
apps
/
v1
"
-
}}
{{
-
end
-
}}
{{
-
end
-
}}
{{
/*
{{
/*
Determine
secret
name
.
Determine
secret
name
.
*/
}}
*/
}}
{{- define "minio.secretName" -}}
{{- define "minio.secretName" -}}
{{
-
include
"
minio
.
fullname
"
.
-
}}
{{- include "
common.names
.fullname" . -}}
{{- end -}}
{{- end -}}
{
{
/*
Determine
service
account
name
for
deployment
or
statefulset
.
*/
}
}
{{
-
define
"
minio
.
serviceAccountName
"
-
}}
{{
-
(
include
"
minio
.
fullname
"
.)
|
replace
"+"
"
_
"
|
trunc
63
|
trimSuffix
"
-
"
-
}}
{{
-
end
-
}}
{
{
/*
Determine
name
for
scc
role
and
rolebinding
*/
}
}
{{
-
define
"
minio
.
sccRoleName
"
-
}}
{{
-
printf
"%
s-
%
s
"
"
scc
"
(
include
"
minio
.
fullname
"
.)
|
trunc
63
|
trimSuffix
"
-
"
-
}}
{{
-
end
-
}}
{
{
/*
{
{
/*
Properly
format
optional
additional
arguments
to
Minio
binary
Properly
format
optional
additional
arguments
to
Minio
binary
...
...
test/minio/1.0.1/templates/_storage.tpl
deleted
100644 → 0
View file @
e06cbe12
{{
/*
Retrieve
host
path
from
ix
volumes
based
on
dataset
name
*/
}}
{{- define "retrieveHostPathFromiXVolume" -}}
{{- range $index, $hostPathConfiguration := $.ixVolumes }}
{{- $dsName := base $hostPathConfiguration.hostPath -}}
{{- if eq $.datasetName $dsName -}}
{{- $hostPathConfiguration.hostPath -}}
{{- end -}}
{{- end }}
{{- end -}}
{
{
/*
Retrieve
host
path
for
minio
*/
}
}
{{- define "configuredMinioHostPath" -}}
{{- if .Values.minioHostPathEnabled -}}
{{- .Values.minioHostPath -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.minioDataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
test/minio/1.0.1/templates/secrets.yaml
View file @
f5b7e4e6
...
@@ -2,11 +2,7 @@ apiVersion: v1
...
@@ -2,11 +2,7 @@ apiVersion: v1
kind
:
Secret
kind
:
Secret
metadata
:
metadata
:
name
:
{{
template "minio.secretName" .
}}
name
:
{{
template "minio.secretName" .
}}
labels
:
labels
:
{{
include "common.labels" | nindent 4
}}
app
:
{{
template "minio.name" .
}}
chart
:
{{
template "minio.chart" .
}}
release
:
{{
.Release.Name
}}
heritage
:
{{
.Release.Service
}}
type
:
Opaque
type
:
Opaque
data
:
data
:
accesskey
:
{{
if .Values.accessKey
}}{{
.Values.accessKey | toString | b64enc | quote
}}{{
else
}}{{
randAlphaNum 20 | b64enc | quote
}}{{
end
}}
accesskey
:
{{
if .Values.accessKey
}}{{
.Values.accessKey | toString | b64enc | quote
}}{{
else
}}{{
randAlphaNum 20 | b64enc | quote
}}{{
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