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
1c9df484
Commit
1c9df484
authored
Aug 09, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow specifying domain name for minio
parent
445a6358
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
test/minio/1.3.11/questions.yaml
test/minio/1.3.11/questions.yaml
+10
-0
test/minio/1.3.11/templates/deployment.yaml
test/minio/1.3.11/templates/deployment.yaml
+4
-0
test/minio/1.3.11/templates/secrets.yaml
test/minio/1.3.11/templates/secrets.yaml
+3
-0
test/minio/1.3.11/test_values.yaml
test/minio/1.3.11/test_values.yaml
+1
-0
No files found.
test/minio/1.3.11/questions.yaml
View file @
1c9df484
...
...
@@ -140,6 +140,16 @@ questions:
default
:
9002
required
:
true
-
variable
:
minioDomain
label
:
"
Minio
Domain
Name"
description
:
"
This
is
only
required
if
TLS
is
configured
for
Minio"
group
:
"
Minio
Configuration"
schema
:
type
:
string
default
:
null
null
:
true
show_if
:
[[
"
certificate"
,
"
!="
,
null
]]
-
variable
:
certificate
description
:
"
Minio
Certificate"
label
:
"
Minio
Certificate"
...
...
test/minio/1.3.11/templates/deployment.yaml
View file @
1c9df484
...
...
@@ -42,6 +42,10 @@ spec:
env
:
{{
$secretName
:
= (include "minio.secretName" .)
}}
{{
$envList
:
= (default list .Values.environmentVariables)
}}
{{
if .Values.minioDomain
}}
{{
$envList = mustAppend $envList (dict "name" "MINIO_BROWSER_REDIRECT_URL" "value" (printf "https
:
//%s
:
%
d" .Values.minioDomain .Values.service.consolePort))
}}
{{
$envList = mustAppend $envList (dict "name" "MINIO_SERVER_URL" "value" (printf "https
:
//%s
:
%
d" .Values.minioDomain .Values.service.nodePort))
}}
{{
end
}}
{{
$envList = mustAppend $envList (dict "name" "MINIO_ACCESS_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey")
}}
{{
$envList = mustAppend $envList (dict "name" "MINIO_SECRET_KEY" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey")
}}
{{
include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12
}}
...
...
test/minio/1.3.11/templates/secrets.yaml
View file @
1c9df484
...
...
@@ -8,6 +8,9 @@ data:
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
}}
{{
if eq (include "minio.certAvailable" .) "true"
}}
{{
if eq .Values.minioDomain null
}}
{{
fail "Minio Domain must be specified when TLS is configured"
}}
{{
end
}}
certPublicKey
:
{{
(include "minio.cert.publicKey" .) | toString | b64enc | quote
}}
certPrivateKey
:
{{
(include "minio.cert.privateKey" .) | toString | b64enc | quote
}}
{{
end
}}
test/minio/1.3.11/test_values.yaml
View file @
1c9df484
...
...
@@ -14,4 +14,5 @@ image:
service
:
consolePort
:
32325
nodePort
:
32324
minioDomain
:
null
updateStrategy
:
RollingUpdate
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