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
9bf72d0b
Commit
9bf72d0b
authored
Jul 14, 2020
by
Matt Kasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes limit for terraform artifacts to 5MB
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/220522
parent
eba45673
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
changelogs/unreleased/mattkasa-220522-terraform-artifact-limit.yml
...s/unreleased/mattkasa-220522-terraform-artifact-limit.yml
+5
-0
db/migrate/20200701221303_change_default_value_of_ci_max_artifact_size_terraform_of_plan_limits_from_0_to_5.rb
...max_artifact_size_terraform_of_plan_limits_from_0_to_5.rb
+21
-0
db/structure.sql
db/structure.sql
+2
-1
spec/models/plan_limits_spec.rb
spec/models/plan_limits_spec.rb
+0
-1
No files found.
changelogs/unreleased/mattkasa-220522-terraform-artifact-limit.yml
0 → 100644
View file @
9bf72d0b
---
title
:
Changes limit for terraform artifacts to 5MB
merge_request
:
37018
author
:
type
:
changed
db/migrate/20200701221303_change_default_value_of_ci_max_artifact_size_terraform_of_plan_limits_from_0_to_5.rb
0 → 100644
View file @
9bf72d0b
# frozen_string_literal: true
class
ChangeDefaultValueOfCiMaxArtifactSizeTerraformOfPlanLimitsFrom0To5
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
with_lock_retries
do
change_column_default
:plan_limits
,
:ci_max_artifact_size_terraform
,
5
execute
(
'UPDATE plan_limits SET ci_max_artifact_size_terraform = 5 WHERE ci_max_artifact_size_terraform = 0'
)
end
end
def
down
with_lock_retries
do
change_column_default
:plan_limits
,
:ci_max_artifact_size_terraform
,
0
execute
(
'UPDATE plan_limits SET ci_max_artifact_size_terraform = 0 WHERE ci_max_artifact_size_terraform = 5'
)
end
end
end
db/structure.sql
View file @
9bf72d0b
...
...
@@ -13884,7 +13884,7 @@ CREATE TABLE public.plan_limits (
ci_max_artifact_size_network_referee
integer
DEFAULT
0
NOT
NULL
,
ci_max_artifact_size_dotenv
integer
DEFAULT
0
NOT
NULL
,
ci_max_artifact_size_cobertura
integer
DEFAULT
0
NOT
NULL
,
ci_max_artifact_size_terraform
integer
DEFAULT
0
NOT
NULL
,
ci_max_artifact_size_terraform
integer
DEFAULT
5
NOT
NULL
,
ci_max_artifact_size_accessibility
integer
DEFAULT
0
NOT
NULL
,
ci_max_artifact_size_cluster_applications
integer
DEFAULT
0
NOT
NULL
,
ci_max_artifact_size_secret_detection
integer
DEFAULT
0
NOT
NULL
,
...
...
@@ -23836,6 +23836,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200701093859
20200701190523
20200701205710
20200701221303
20200702123805
20200702201039
20200703064117
...
...
spec/models/plan_limits_spec.rb
View file @
9bf72d0b
...
...
@@ -197,7 +197,6 @@ RSpec.describe PlanLimits do
ci_max_artifact_size_network_referee
ci_max_artifact_size_dotenv
ci_max_artifact_size_cobertura
ci_max_artifact_size_terraform
ci_max_artifact_size_accessibility
ci_max_artifact_size_cluster_applications
ci_max_artifact_size_secret_detection
...
...
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