Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions tkn/infra-aws-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: "false"
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -274,8 +279,13 @@ spec:
cmd+="--tags '$(params.tags)' "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi

eval "${cmd}"
Expand Down
16 changes: 13 additions & 3 deletions tkn/infra-aws-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ spec:
description: |
Comma-separated list of VPC service endpoints to create.
Accepted values: s3, ecr, ssm. Empty = no endpoints created.
default: ""
default: "''"

# Metadata params
- name: tags
Expand All @@ -128,6 +128,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: 'false'
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -233,8 +238,13 @@ spec:
cmd+="--tags $(params.tags) "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi

eval "${cmd}"
Expand Down
14 changes: 12 additions & 2 deletions tkn/infra-aws-mac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: 'false'
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -229,8 +234,13 @@ spec:
cmd+="--tags $(params.tags) "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi

eval "${cmd}"
Expand Down
16 changes: 14 additions & 2 deletions tkn/infra-aws-ocp-snc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: 'false'
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -259,13 +264,20 @@ spec:
if [[ $(params.timeout) != "" ]]; then
cmd+="--timeout $(params.timeout) "
fi
if [[ $(params.service-endpoints) != "" ]]; then
if [[ "$(params.service-endpoints)" != "" ]]; then
cmd+="--service-endpoints $(params.service-endpoints) "
fi
cmd+="--tags $(params.tags) "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi
cmd+="--keep-state "
fi

Expand Down
14 changes: 13 additions & 1 deletion tkn/infra-aws-rhel-ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: "false"
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -281,7 +286,14 @@ spec:
cmd+="--tags '$(params.tags)' "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi
cmd+="--keep-state "
fi

Expand Down
14 changes: 13 additions & 1 deletion tkn/infra-aws-rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: "false"
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -299,7 +304,14 @@ spec:
cmd+="--tags '$(params.tags)' "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi
cmd+="--keep-state "
fi

Expand Down
20 changes: 14 additions & 6 deletions tkn/infra-aws-windows-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ spec:
Comma-separated list of VPC service endpoints to create.
Accepted values: s3, ecr, ssm. Empty = no endpoints created.
default: "''"

- name: tags
description: tags for the resources created on the providers
default: "''"
Expand All @@ -130,6 +130,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: 'false'
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -227,14 +232,17 @@ spec:
cmd+="--spot --spot-increase-rate $(params.spot-increase-rate) --spot-eviction-tolerance $(params.spot-eviction-tolerance) "
fi
if [[ $(params.airgap) == "true" ]]; then cmd+="--airgap "; fi
if [[ $(params.service-endpoints) != "" ]]; then
cmd+="--service-endpoints $(params.service-endpoints) "
fi
if [[ $(params.service-endpoints) != "" ]]; then cmd+="--service-endpoints $(params.service-endpoints) "; fi
cmd+="--tags $(params.tags) "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi

eval "${cmd}"
Expand Down
14 changes: 13 additions & 1 deletion tkn/infra-azure-rhel-ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: "false"
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -235,7 +240,14 @@ spec:
cmd+="--tags '$(params.tags)' "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi
cmd+="--keep-state "
fi

Expand Down
14 changes: 12 additions & 2 deletions tkn/template/infra-aws-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: "false"
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -274,8 +279,13 @@ spec:
cmd+="--tags '$(params.tags)' "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi

eval "${cmd}"
Expand Down
14 changes: 12 additions & 2 deletions tkn/template/infra-aws-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: 'false'
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -233,8 +238,13 @@ spec:
cmd+="--tags $(params.tags) "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi

eval "${cmd}"
Expand Down
14 changes: 12 additions & 2 deletions tkn/template/infra-aws-mac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: 'false'
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -229,8 +234,13 @@ spec:
cmd+="--tags $(params.tags) "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi

eval "${cmd}"
Expand Down
14 changes: 13 additions & 1 deletion tkn/template/infra-aws-ocp-snc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: 'false'
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -265,7 +270,14 @@ spec:
cmd+="--tags $(params.tags) "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi
cmd+="--keep-state "
fi

Expand Down
14 changes: 13 additions & 1 deletion tkn/template/infra-aws-rhel-ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ spec:
The parameter is intended to add verbosity on the task execution and also print masked credentials
(showing first and last character with *** in the middle) on stdout to help with debugging
default: "false"
- name: force-destroy
description: |
If force-destroy is set the command will destroy even if there is a lock.
Allowed values: true, false
default: "false"
- name: keep-state
description: |
Keep Pulumi state files in S3 backend after successful destroy (by default, state files are removed). Only used when operation is destroy.
Expand Down Expand Up @@ -281,7 +286,14 @@ spec:
cmd+="--tags '$(params.tags)' "
fi

if [[ "$(params.operation)" == "destroy" && "$(params.keep-state)" == "true" ]]; then
if [[ "$(params.operation)" == "destroy" ]]; then
if [[ "$(params.keep-state)" == "true" ]]; then
cmd+="--keep-state "
fi
if [[ "$(params.force-destroy)" == "true" ]]; then
cmd+="--force-destroy "
fi
fi
cmd+="--keep-state "
fi

Expand Down
Loading