Skip to content

Commit 2b8bb82

Browse files
committed
Merge branch 'set-upload-object_store-enabled-even-if-disabled' into sync-configs
2 parents cac01d6 + 844d57d commit 2b8bb82

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

assets/runtime/functions

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,9 @@ gitlab_configure_ci() {
980980
}
981981

982982
gitlab_configure_artifacts() {
983+
update_template ${GITLAB_CONFIG} \
984+
GITLAB_ARTIFACTS_OBJECT_STORE_ENABLED
985+
983986
if [[ ${GITLAB_ARTIFACTS_OBJECT_STORE_ENABLED} == true ]]; then
984987
echo "Configuring gitlab::artifacts:object_store"
985988

@@ -997,7 +1000,6 @@ gitlab_configure_artifacts() {
9971000
fi
9981001

9991002
update_template ${GITLAB_CONFIG} \
1000-
GITLAB_ARTIFACTS_OBJECT_STORE_ENABLED \
10011003
GITLAB_ARTIFACTS_OBJECT_STORE_REMOTE_DIRECTORY \
10021004
GITLAB_ARTIFACTS_OBJECT_STORE_DIRECT_UPLOAD \
10031005
GITLAB_ARTIFACTS_OBJECT_STORE_BACKGROUND_UPLOAD \
@@ -1025,6 +1027,9 @@ gitlab_configure_artifacts() {
10251027

10261028

10271029
gitlab_configure_packages() {
1030+
update_template ${GITLAB_CONFIG} \
1031+
GITLAB_PACKAGES_OBJECT_STORE_ENABLED
1032+
10281033
if [[ ${GITLAB_PACKAGES_OBJECT_STORE_ENABLED} == true ]]; then
10291034
echo "Configuring gitlab::packages:object_store"
10301035

@@ -1042,7 +1047,6 @@ gitlab_configure_packages() {
10421047
fi
10431048

10441049
update_template ${GITLAB_CONFIG} \
1045-
GITLAB_PACKAGES_OBJECT_STORE_ENABLED \
10461050
GITLAB_PACKAGES_OBJECT_STORE_REMOTE_DIRECTORY \
10471051
GITLAB_PACKAGES_OBJECT_STORE_DIRECT_UPLOAD \
10481052
GITLAB_PACKAGES_OBJECT_STORE_BACKGROUND_UPLOAD \
@@ -1069,6 +1073,9 @@ gitlab_configure_packages() {
10691073
}
10701074

10711075
gitlab_configure_terraform_state() {
1076+
update_template ${GITLAB_CONFIG} \
1077+
GITLAB_TERRAFORM_STATE_OBJECT_STORE_ENABLED
1078+
10721079
if [[ ${GITLAB_TERRAFORM_STATE_OBJECT_STORE_ENABLED} == true ]]; then
10731080
echo "Configuring gitlab::terraform_state:object_store"
10741081

@@ -1086,7 +1093,6 @@ gitlab_configure_terraform_state() {
10861093
fi
10871094

10881095
update_template ${GITLAB_CONFIG} \
1089-
GITLAB_TERRAFORM_STATE_OBJECT_STORE_ENABLED \
10901096
GITLAB_TERRAFORM_STATE_OBJECT_STORE_REMOTE_DIRECTORY \
10911097
GITLAB_TERRAFORM_STATE_OBJECT_STORE_CONNECTION_PROVIDER \
10921098
GITLAB_TERRAFORM_STATE_OBJECT_STORE_CONNECTION_AWS_ACCESS_KEY_ID \
@@ -1110,6 +1116,9 @@ gitlab_configure_terraform_state() {
11101116
}
11111117

11121118
gitlab_configure_lfs() {
1119+
update_template ${GITLAB_CONFIG} \
1120+
GITLAB_LFS_OBJECT_STORE_ENABLED \
1121+
11131122
if [[ ${GITLAB_LFS_OBJECT_STORE_ENABLED} == true ]]; then
11141123
echo "Configuring gitlab::lfs:object_store"
11151124

@@ -1127,7 +1136,6 @@ gitlab_configure_lfs() {
11271136
fi
11281137

11291138
update_template ${GITLAB_CONFIG} \
1130-
GITLAB_LFS_OBJECT_STORE_ENABLED \
11311139
GITLAB_LFS_OBJECT_STORE_REMOTE_DIRECTORY \
11321140
GITLAB_LFS_OBJECT_STORE_DIRECT_UPLOAD \
11331141
GITLAB_LFS_OBJECT_STORE_BACKGROUND_UPLOAD \
@@ -1154,6 +1162,9 @@ gitlab_configure_lfs() {
11541162
}
11551163

11561164
gitlab_configure_uploads() {
1165+
update_template ${GITLAB_CONFIG} \
1166+
GITLAB_UPLOADS_OBJECT_STORE_ENABLED
1167+
11571168
if [[ ${GITLAB_UPLOADS_OBJECT_STORE_ENABLED} == true ]]; then
11581169
echo "Configuring gitlab::uploads:object_store"
11591170

@@ -1171,7 +1182,6 @@ gitlab_configure_uploads() {
11711182
fi
11721183

11731184
update_template ${GITLAB_CONFIG} \
1174-
GITLAB_UPLOADS_OBJECT_STORE_ENABLED \
11751185
GITLAB_UPLOADS_OBJECT_STORE_REMOTE_DIRECTORY \
11761186
GITLAB_UPLOADS_OBJECT_STORE_DIRECT_UPLOAD \
11771187
GITLAB_UPLOADS_OBJECT_STORE_BACKGROUND_UPLOAD \

0 commit comments

Comments
 (0)