Skip to content

Commit

Permalink
ci: Adding env var for RG and location
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurilahane authored and mshriver committed Feb 11, 2024
1 parent 0c47a88 commit aa49e3f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions deploy/cloudwash_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: provisioning-cleanup-cloud-resources
# Job template to run the cloudwash cmd with args and env variables
objects:
- apiVersion: batch/v1
kind: CronJob
Expand Down Expand Up @@ -57,6 +58,16 @@ objects:
secretKeyRef:
key: subscription_id
name: provisioning-azure-auth-secret
- name: CLEANUP_AZURE__AUTH__RESOURCE_GROUPS
valueFrom:
secretKeyRef:
key: resource_group
name: provisioning-azure-auth-secret
- name: CLEANUP_AZURE__AUTH__REGIONS
valueFrom:
secretKeyRef:
key: location
name: provisioning-azure-auth-secret

- name: provisioning-aws-cleanup
image: quay.io/redhatqe/cloudwash
Expand All @@ -82,6 +93,11 @@ objects:
secretKeyRef:
key: secret_access_key
name: provisioning-aws-auth-secret
- name: CLEANUP_AWS__AUTH__REGION
valueFrom:
secretKeyRef:
key: region
name: provisioning-aws-auth-secret
volumes:
- name: config-volume
configMap:
Expand Down

0 comments on commit aa49e3f

Please sign in to comment.