Skip to content

Commit

Permalink
conditional cluster definition
Browse files Browse the repository at this point in the history
ocp_cluster_name=leogit5

delete_ocp_cluster=true
  • Loading branch information
leiicamundi committed May 16, 2024
1 parent dc42996 commit d13bd45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/actions/rosa-create-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ runs:
repository: "camunda/camunda-tf-rosa"
ref: ${{ inputs.tf-modules-revision }}
path: ${{ inputs.tf-modules-path }}
fetch-depth: 0

- name: Terraform Init
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/rosa-delete-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ runs:
repository: "camunda/camunda-tf-rosa"
ref: ${{ inputs.tf-modules-revision }}
path: ${{ inputs.tf-modules-path }}
fetch-depth: 0

- name: Terraform Init
shell: bash
Expand All @@ -68,7 +69,7 @@ runs:
working-directory: "${{ inputs.tf-modules-path }}/modules/rosa-hcp/"
run: |
terraform plan -destroy -no-color -out rosa-destroy.plan -var "cluster_name=${{ inputs.cluster-name }}" -var "offline_access_token=${{ inputs.rh-token }}" -var "htpasswd_password=dUmmyPassword$123!"
# TODO: remove s3
- name: Terraform Apply Destroy
shell: bash
id: apply-destroy
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ jobs:
rh-token: ${{ steps.secrets.outputs.RH_OPENSHIFT_TOKEN }}
cluster-name: "${{ steps.commit_info.outputs.cluster_name }}"
admin-username: "cluster-admin"
admin-password: "${{ steps.secrets.outputs.CI_OPENSHIFT_MAIN_PASSWORD }}"
#admin-password: "${{ steps.secrets.outputs.CI_OPENSHIFT_MAIN_PASSWORD }}"
# TODO: change this
admin-password: "myUnsecure1234567!pass"
aws-region: ${{ env.AWS_REGION }}
namespace: "myns"
s3-backend-bucket: ${{ env.TF_S3_BUCKET }}
Expand Down

0 comments on commit d13bd45

Please sign in to comment.