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
cca836e3
Commit
cca836e3
authored
Dec 09, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove existingSecret option
parent
d4cd85e0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
44 deletions
+0
-44
test/minio/8.0.5/README.md
test/minio/8.0.5/README.md
+0
-26
test/minio/8.0.5/templates/_helpers.tpl
test/minio/8.0.5/templates/_helpers.tpl
+0
-4
test/minio/8.0.5/templates/secrets.yaml
test/minio/8.0.5/templates/secrets.yaml
+0
-2
test/minio/8.0.5/values.yaml
test/minio/8.0.5/values.yaml
+0
-12
No files found.
test/minio/8.0.5/README.md
View file @
cca836e3
...
@@ -136,7 +136,6 @@ The following table lists the configurable parameters of the MinIO chart and the
...
@@ -136,7 +136,6 @@ The following table lists the configurable parameters of the MinIO chart and the
|
`image.pullPolicy`
| Image pull policy |
`IfNotPresent`
|
|
`image.pullPolicy`
| Image pull policy |
`IfNotPresent`
|
|
`trustedCertsSecret`
| Kubernetes secret with trusted certificates to be mounted on
`{{ .Values.certsPath }}/CAs`
|
`""`
|
|
`trustedCertsSecret`
| Kubernetes secret with trusted certificates to be mounted on
`{{ .Values.certsPath }}/CAs`
|
`""`
|
|
`extraArgs`
| Additional command line arguments to pass to the MinIO server |
`[]`
|
|
`extraArgs`
| Additional command line arguments to pass to the MinIO server |
`[]`
|
|
`existingSecret`
| Name of existing secret with access and secret key. |
`""`
|
|
`accessKey`
| Default access key (5 to 20 characters) | random 20 chars |
|
`accessKey`
| Default access key (5 to 20 characters) | random 20 chars |
|
`secretKey`
| Default secret key (8 to 40 characters) | random 40 chars |
|
`secretKey`
| Default secret key (8 to 40 characters) | random 40 chars |
|
`certsPath`
| Default certs path location |
`/etc/minio/certs`
|
|
`certsPath`
| Default certs path location |
`/etc/minio/certs`
|
...
@@ -252,31 +251,6 @@ For more precise policy, set `networkPolicy.allowExternal=true`. This will
...
@@ -252,31 +251,6 @@ For more precise policy, set `networkPolicy.allowExternal=true`. This will
only allow pods with the generated client label to connect to MinIO.
only allow pods with the generated client label to connect to MinIO.
This label will be displayed in the output of a successful install.
This label will be displayed in the output of a successful install.
Existing secret
---------------
Instead of having this chart create the secret for you, you can supply a preexisting secret, much
like an existing PersistentVolumeClaim.
First, create the secret:
```
bash
$
kubectl create secret generic my-minio-secret
--from-literal
=
accesskey
=
foobarbaz
--from-literal
=
secretkey
=
foobarbazqux
```
Then install the chart, specifying that you want to use an existing secret:
```
bash
$
helm
install
--set
existingSecret
=
my-minio-secret minio/minio
```
The following fields are expected in the secret:
| .data.
<key>
in Secret | Corresponding variable | Description |
|:---------------------------|:------------------------|:----------------------------------------------------------------------------------|
|
`accesskey`
|
`accessKey`
| Access key ID. Mandatory. |
|
`secretkey`
|
`secretKey`
| Secret key. Mandatory. |
All corresponding variables will be ignored in values file.
Configure TLS
Configure TLS
-------------
-------------
...
...
test/minio/8.0.5/templates/_helpers.tpl
View file @
cca836e3
...
@@ -68,12 +68,8 @@ Return the appropriate apiVersion for statefulset.
...
@@ -68,12 +68,8 @@ Return the appropriate apiVersion for statefulset.
Determine
secret
name
.
Determine
secret
name
.
*/
}
}
*/
}
}
{{
-
define
"
minio
.
secretName
"
-
}}
{{
-
define
"
minio
.
secretName
"
-
}}
{{
-
if
.
Values
.
existingSecret
-
}}
{{
-
.
Values
.
existingSecret
}}
{{
-
else
-
}}
{{
-
include
"
minio
.
fullname
"
.
-
}}
{{
-
include
"
minio
.
fullname
"
.
-
}}
{{
-
end
-
}}
{{
-
end
-
}}
{{
-
end
-
}}
{
{
/*
{
{
/*
Determine
service
account
name
for
deployment
or
statefulset
.
Determine
service
account
name
for
deployment
or
statefulset
.
...
...
test/minio/8.0.5/templates/secrets.yaml
View file @
cca836e3
{{
- if not .Values.existingSecret
}}
apiVersion
:
v1
apiVersion
:
v1
kind
:
Secret
kind
:
Secret
metadata
:
metadata
:
...
@@ -12,4 +11,3 @@ type: Opaque
...
@@ -12,4 +11,3 @@ 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
}}
secretkey
:
{{
if .Values.secretKey
}}{{
.Values.secretKey | toString | b64enc | quote
}}{{
else
}}{{
randAlphaNum 40 | b64enc | quote
}}{{
end
}}
secretkey
:
{{
if .Values.secretKey
}}{{
.Values.secretKey | toString | b64enc | quote
}}{{
else
}}{{
randAlphaNum 40 | b64enc | quote
}}{{
end
}}
{{
- end
}}
test/minio/8.0.5/values.yaml
View file @
cca836e3
...
@@ -44,18 +44,6 @@ secretKey: ""
...
@@ -44,18 +44,6 @@ secretKey: ""
certsPath
:
"
/etc/minio/certs/"
certsPath
:
"
/etc/minio/certs/"
mountPath
:
"
/export"
mountPath
:
"
/export"
## Use existing Secret that store following variables:
##
## | Chart var | .data.<key> in Secret |
## |:----------------------|:-------------------------|
## | accessKey | accesskey |
## | secretKey | secretkey |
##
## All mentioned variables will be ignored in values file.
## .data.accesskey and .data.secretkey are mandatory,
## others depend on enabled status of corresponding sections.
existingSecret
:
"
"
## Override the root directory which the minio server should serve from.
## Override the root directory which the minio server should serve from.
## If left empty, it defaults to the value of {{ .Values.mountPath }}
## If left empty, it defaults to the value of {{ .Values.mountPath }}
## If defined, it must be a sub-directory of the path specified in {{ .Values.mountPath }}
## If defined, it must be a sub-directory of the path specified in {{ .Values.mountPath }}
...
...
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