Skip to content
Snippets Groups Projects
Commit c0e45a52 authored by Timo Furrer's avatar Timo Furrer
Browse files

Change all potentially destructive jobs to manual by default

This patch changes the default for all jobs that perform potentially
destructive or state-changing actions to manual.

This only affects the job templates, not the opinionated pipeline
templates.

Closes https://gitlab.com/components/opentofu/-/issues/117

Changelog: changed
parent 814a9e8a
No related branches found
No related tags found
No related merge requests found
...@@ -76,10 +76,7 @@ spec: ...@@ -76,10 +76,7 @@ spec:
type: string type: string
description: 'Path to a variables files relative to root_dir. Only used if no_plan is true otherwise the variables are coming from the plan.' description: 'Path to a variables files relative to root_dir. Only used if no_plan is true otherwise the variables are coming from the plan.'
rules: rules:
# FIXME: eventually, we'll want to define `null` as the default, default: [{when: manual}]
# but this is NOT support yet, see
# https://gitlab.com/gitlab-org/gitlab/-/issues/440468
default: [{when: on_success}]
type: array type: array
description: 'Defines the `rules` of the job.' description: 'Defines the `rules` of the job.'
cache_policy: cache_policy:
......
...@@ -16,10 +16,7 @@ spec: ...@@ -16,10 +16,7 @@ spec:
default: 'true' default: 'true'
description: 'Wheather the delete-state job should be created or not.' description: 'Wheather the delete-state job should be created or not.'
rules: rules:
# FIXME: eventually, we'll want to define `null` as the default, default: [{when: manual}]
# but this is NOT support yet, see
# https://gitlab.com/gitlab-org/gitlab/-/issues/440468
default: [{when: on_success}]
type: array type: array
description: 'Defines the `rules` of the job.' description: 'Defines the `rules` of the job.'
......
...@@ -76,10 +76,7 @@ spec: ...@@ -76,10 +76,7 @@ spec:
type: string type: string
description: 'Path to a variables files relative to root_dir. Only used if no_plan is true otherwise the variables are coming from the plan.' description: 'Path to a variables files relative to root_dir. Only used if no_plan is true otherwise the variables are coming from the plan.'
rules: rules:
# FIXME: eventually, we'll want to define `null` as the default, default: [{when: manual}]
# but this is NOT support yet, see
# https://gitlab.com/gitlab-org/gitlab/-/issues/440468
default: [{when: on_success}]
type: array type: array
description: 'Defines the `rules` of the job.' description: 'Defines the `rules` of the job.'
cache_policy: cache_policy:
......
...@@ -11,6 +11,7 @@ include: ...@@ -11,6 +11,7 @@ include:
no_plan: true no_plan: true
auto_encryption: true auto_encryption: true
auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09' auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09'
rules: [{when: on_success}]
# For CI Terraform state cleanup # For CI Terraform state cleanup
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/delete-state@$CI_COMMIT_SHA - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/delete-state@$CI_COMMIT_SHA
......
...@@ -10,6 +10,7 @@ include: ...@@ -10,6 +10,7 @@ include:
root_dir: $TEST_GITLAB_TOFU_ROOT_DIR root_dir: $TEST_GITLAB_TOFU_ROOT_DIR
state_name: $TEST_GITLAB_TOFU_STATE_NAME state_name: $TEST_GITLAB_TOFU_STATE_NAME
no_plan: true no_plan: true
rules: [{when: on_success}]
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/apply@$CI_COMMIT_SHA - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/apply@$CI_COMMIT_SHA
inputs: inputs:
...@@ -25,6 +26,7 @@ include: ...@@ -25,6 +26,7 @@ include:
auto_encryption: true auto_encryption: true
auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09' auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09'
auto_encryption_enable_migration_from_unencrypted: true auto_encryption_enable_migration_from_unencrypted: true
rules: [{when: on_success}]
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/apply@$CI_COMMIT_SHA - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/apply@$CI_COMMIT_SHA
inputs: inputs:
...@@ -39,6 +41,7 @@ include: ...@@ -39,6 +41,7 @@ include:
no_plan: true no_plan: true
auto_encryption: true auto_encryption: true
auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09' auto_encryption_passphrase: '947F23E4-B9FC-4E76-B7B4-1D35ECBE9B09'
rules: [{when: on_success}]
# For CI Terraform state cleanup # For CI Terraform state cleanup
- component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/delete-state@$CI_COMMIT_SHA - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/delete-state@$CI_COMMIT_SHA
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment