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
125e685c
Commit
125e685c
authored
Jun 22, 2020
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use certmanager in review apps
parent
161bf209
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
.gitlab/ci/review.gitlab-ci.yml
.gitlab/ci/review.gitlab-ci.yml
+1
-0
scripts/review_apps/base-config.yaml
scripts/review_apps/base-config.yaml
+1
-1
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+23
-0
No files found.
.gitlab/ci/review.gitlab-ci.yml
View file @
125e685c
...
...
@@ -41,6 +41,7 @@ review-build-cng:
image
:
registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-helm3-kubectl1.14
variables
:
HOST_SUFFIX
:
"
${CI_ENVIRONMENT_SLUG}"
REVIEW_APPS_DOMAIN
:
"
temp.gitlab-review.app"
# FIXME: using temporary domain
DOMAIN
:
"
-${CI_ENVIRONMENT_SLUG}.${REVIEW_APPS_DOMAIN}"
GITLAB_HELM_CHART_REF
:
"
master"
environment
:
...
...
scripts/review_apps/base-config.yaml
View file @
125e685c
...
...
@@ -7,7 +7,7 @@ global:
external-dns.alpha.kubernetes.io/ttl
:
10
configureCertmanager
:
false
tls
:
secretName
:
tls-cert
secretName
:
review-apps-tls
initialRootPassword
:
secret
:
shared-gitlab-initial-root-password
certmanager
:
...
...
scripts/review_apps/review-apps.sh
View file @
125e685c
...
...
@@ -213,6 +213,29 @@ function install_external_dns() {
fi
}
function
install_certmanager
()
{
local
namespace
=
"
${
KUBE_NAMESPACE
}
"
local
release
=
"cert-manager-review-app-helm3"
echoinfo
"Installing cert-manager..."
true
if
!
deploy_exists
"
${
namespace
}
"
"
${
release
}
"
||
previous_deploy_failed
"
${
namespace
}
"
"
${
release
}
"
;
then
kubectl apply
\
-f
https://raw.githubusercontent.com/jetstack/cert-manager/release-0.10/deploy/manifests/00-crds.yaml
echoinfo
"Installing cert-manager Helm chart"
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm
install
"
${
release
}
"
jetstack/cert-manager
\
--namespace
"
${
namespace
}
"
\
--version
v0.15.1
\
--set
installCRDS
=
true
else
echoinfo
"The cert-manager Helm chart is already successfully deployed."
fi
}
function
create_application_secret
()
{
local
namespace
=
"
${
KUBE_NAMESPACE
}
"
local
release
=
"
${
CI_ENVIRONMENT_SLUG
}
"
...
...
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