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
14c8036e
Commit
14c8036e
authored
Jun 10, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use shared tls synced from `review-apps` namespace
parent
beebebff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
scripts/review_apps/base-config.yaml
scripts/review_apps/base-config.yaml
+2
-2
scripts/review_apps/review-apps.sh
scripts/review_apps/review-apps.sh
+10
-3
No files found.
scripts/review_apps/base-config.yaml
View file @
14c8036e
...
@@ -5,9 +5,9 @@ global:
...
@@ -5,9 +5,9 @@ global:
ingress
:
ingress
:
annotations
:
annotations
:
external-dns.alpha.kubernetes.io/ttl
:
10
external-dns.alpha.kubernetes.io/ttl
:
10
cert-manager.io/cluster-issuer
:
review-apps-route53-dns01-wildcard-cluster-issuer
kubernetes.io/tls-acme
:
true
configureCertmanager
:
false
configureCertmanager
:
false
tls
:
secretName
:
review-apps-tls
initialRootPassword
:
initialRootPassword
:
secret
:
shared-gitlab-initial-root-password
secret
:
shared-gitlab-initial-root-password
certmanager
:
certmanager
:
...
...
scripts/review_apps/review-apps.sh
View file @
14c8036e
...
@@ -161,6 +161,15 @@ function ensure_namespace() {
...
@@ -161,6 +161,15 @@ function ensure_namespace() {
kubectl describe namespace
"
${
namespace
}
"
||
kubectl create namespace
"
${
namespace
}
"
kubectl describe namespace
"
${
namespace
}
"
||
kubectl create namespace
"
${
namespace
}
"
}
}
function
label_namespace
()
{
local
namespace
=
"
${
1
}
"
local
label
=
"
${
2
}
"
echoinfo
"Labeling the
${
namespace
}
namespace with
${
label
}
"
true
kubectl label namespace
"
${
namespace
}
"
"
${
label
}
"
}
function
install_external_dns
()
{
function
install_external_dns
()
{
local
namespace
=
"
${
KUBE_NAMESPACE
}
"
local
namespace
=
"
${
KUBE_NAMESPACE
}
"
local
release
=
"dns-gitlab-review-app-helm3"
local
release
=
"dns-gitlab-review-app-helm3"
...
@@ -302,6 +311,7 @@ function deploy() {
...
@@ -302,6 +311,7 @@ function deploy() {
gitlab_workhorse_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-workhorse-ee"
gitlab_workhorse_image_repository
=
"
${
IMAGE_REPOSITORY
}
/gitlab-workhorse-ee"
ensure_namespace
"
${
namespace
}
"
ensure_namespace
"
${
namespace
}
"
label_namespace
"
${
namespace
}
"
"tls=review-apps-tls"
# label namespace for kubed to sync tls
create_application_secret
create_application_secret
...
@@ -319,9 +329,6 @@ HELM_CMD=$(cat << EOF
...
@@ -319,9 +329,6 @@ HELM_CMD=$(cat << EOF
--set releaseOverride="
${
release
}
"
\
--set releaseOverride="
${
release
}
"
\
--set global.hosts.hostSuffix="
${
HOST_SUFFIX
}
"
\
--set global.hosts.hostSuffix="
${
HOST_SUFFIX
}
"
\
--set global.hosts.domain="
${
REVIEW_APPS_DOMAIN
}
"
\
--set global.hosts.domain="
${
REVIEW_APPS_DOMAIN
}
"
\
--set gitlab.webservice.ingress.tls.secretName="
${
release
}
-gitlab-tls"
\
--set registry.ingress.tls.secretName="
${
release
}
-registry-tls"
\
--set minio.ingress.tls.secretName="
${
release
}
-minio-tls"
\
--set gitlab.migrations.image.repository="
${
gitlab_migrations_image_repository
}
"
\
--set gitlab.migrations.image.repository="
${
gitlab_migrations_image_repository
}
"
\
--set gitlab.migrations.image.tag="
${
CI_COMMIT_REF_SLUG
}
"
\
--set gitlab.migrations.image.tag="
${
CI_COMMIT_REF_SLUG
}
"
\
--set gitlab.gitaly.image.repository="
${
gitlab_gitaly_image_repository
}
"
\
--set gitlab.gitaly.image.repository="
${
gitlab_gitaly_image_repository
}
"
\
...
...
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