Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d93013c0
Commit
d93013c0
authored
Mar 29, 2022
by
ddieulivol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence kubectl get secret errors
parent
503a4b5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+2
-2
No files found.
scripts/review_apps/review-apps.sh
View file @
d93013c0
...
@@ -213,7 +213,7 @@ function create_application_secret() {
...
@@ -213,7 +213,7 @@ function create_application_secret() {
local
initial_root_password_shared_secret
local
initial_root_password_shared_secret
local
gitlab_license_shared_secret
local
gitlab_license_shared_secret
initial_root_password_shared_secret
=
$(
kubectl get secret
--namespace
${
namespace
}
--no-headers
-o
=
custom-columns
=
NAME:.metadata.name shared-gitlab-initial-root-password |
tail
-n
1
)
initial_root_password_shared_secret
=
$(
kubectl get secret
--namespace
${
namespace
}
--no-headers
-o
=
custom-columns
=
NAME:.metadata.name shared-gitlab-initial-root-password
2> /dev/null
|
tail
-n
1
)
if
[[
"
${
initial_root_password_shared_secret
}
"
==
""
]]
;
then
if
[[
"
${
initial_root_password_shared_secret
}
"
==
""
]]
;
then
echoinfo
"Creating the 'shared-gitlab-initial-root-password' secret in the
${
namespace
}
namespace..."
true
echoinfo
"Creating the 'shared-gitlab-initial-root-password' secret in the
${
namespace
}
namespace..."
true
kubectl create secret generic
--namespace
"
${
namespace
}
"
\
kubectl create secret generic
--namespace
"
${
namespace
}
"
\
...
@@ -226,7 +226,7 @@ function create_application_secret() {
...
@@ -226,7 +226,7 @@ function create_application_secret() {
if
[
-z
"
${
REVIEW_APPS_EE_LICENSE_FILE
}
"
]
;
then
echo
"License not found"
&&
return
;
fi
if
[
-z
"
${
REVIEW_APPS_EE_LICENSE_FILE
}
"
]
;
then
echo
"License not found"
&&
return
;
fi
gitlab_license_shared_secret
=
$(
kubectl get secret
--namespace
${
namespace
}
--no-headers
-o
=
custom-columns
=
NAME:.metadata.name shared-gitlab-license |
tail
-n
1
)
gitlab_license_shared_secret
=
$(
kubectl get secret
--namespace
${
namespace
}
--no-headers
-o
=
custom-columns
=
NAME:.metadata.name shared-gitlab-license
2> /dev/null
|
tail
-n
1
)
if
[[
"
${
gitlab_license_shared_secret
}
"
==
""
]]
;
then
if
[[
"
${
gitlab_license_shared_secret
}
"
==
""
]]
;
then
echoinfo
"Creating the 'shared-gitlab-license' secret in the
${
namespace
}
namespace..."
true
echoinfo
"Creating the 'shared-gitlab-license' secret in the
${
namespace
}
namespace..."
true
kubectl create secret generic
--namespace
"
${
namespace
}
"
\
kubectl create secret generic
--namespace
"
${
namespace
}
"
\
...
...
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