Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenTofu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
components
OpenTofu
Commits
bac5a61b
Unverified
Commit
bac5a61b
authored
7 months ago
by
Timo Furrer
Browse files
Options
Downloads
Patches
Plain Diff
Remove `TF_FF_AUTO_APPROVE_APPLY` feature flag
This feature flag is now always enabled. Changelog: removed
parent
8d8c0d7d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gitlab-tofu.sh
+2
-11
2 additions, 11 deletions
src/gitlab-tofu.sh
with
2 additions
and
11 deletions
src/gitlab-tofu.sh
+
2
−
11
View file @
bac5a61b
...
@@ -15,10 +15,6 @@ if [ -z "$TF_FF_AUTO_URLENCODE_STATE_NAME" ]; then
...
@@ -15,10 +15,6 @@ if [ -z "$TF_FF_AUTO_URLENCODE_STATE_NAME" ]; then
TF_FF_AUTO_URLENCODE_STATE_NAME
=
true
TF_FF_AUTO_URLENCODE_STATE_NAME
=
true
fi
fi
if
[
-z
"
$TF_FF_AUTO_APPROVE_APPLY
"
]
;
then
TF_FF_AUTO_APPROVE_APPLY
=
true
fi
# Helpers
# Helpers
# Evaluate if this script is being sourced or executed directly.
# Evaluate if this script is being sourced or executed directly.
...
@@ -211,17 +207,12 @@ if [ $sourced -eq 0 ]; then
...
@@ -211,17 +207,12 @@ if [ $sourced -eq 0 ]; then
case
"
${
1
}
"
in
case
"
${
1
}
"
in
"apply"
)
"apply"
)
auto_approve_args
=
""
if
[
"
${
TF_FF_AUTO_APPROVE_APPLY
}
"
=
true
]
;
then
auto_approve_args
=
"-auto-approve"
fi
$TF_IMPLICIT_INIT
&&
terraform_init
$TF_IMPLICIT_INIT
&&
terraform_init
if
[
"
$TF_APPLY_NO_PLAN
"
=
false
]
;
then
if
[
"
$TF_APPLY_NO_PLAN
"
=
false
]
;
then
tofu
"
${
TF_CHDIR_OPT
}
"
"
${
@
}
"
-input
=
false
"
${
auto
_
approve
_args
}
"
"
${
TF_PLAN_CACHE
}
"
tofu
"
${
TF_CHDIR_OPT
}
"
"
${
@
}
"
-input
=
false
-
auto
-
approve
"
${
TF_PLAN_CACHE
}
"
else
else
# shellcheck disable=SC2086
# shellcheck disable=SC2086
tofu
"
${
TF_CHDIR_OPT
}
"
"
${
@
}
"
-input
=
false
"
${
auto
_
approve
_args
}
"
${
var_file_args
}
tofu
"
${
TF_CHDIR_OPT
}
"
"
${
@
}
"
-input
=
false
-
auto
-
approve
${
var_file_args
}
fi
fi
;;
;;
"destroy"
)
"destroy"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment