Add AWS credentials to the cloud-image-uploader
For now, just re-use the fedimg credentials. Note that currently the AWS support is not enabled so nothing makes use of these credentials just yet.
This commit is contained in:
parent
a30087e431
commit
858ab494c3
3 changed files with 29 additions and 0 deletions
|
@ -98,6 +98,11 @@
|
||||||
template: secret.yml
|
template: secret.yml
|
||||||
objectname: secret.yml
|
objectname: secret.yml
|
||||||
|
|
||||||
|
- role: openshift/object
|
||||||
|
app: cloud-image-uploader
|
||||||
|
template: aws-secrets.yml
|
||||||
|
objectname: aws-secrets.yml
|
||||||
|
|
||||||
- role: openshift/start-build
|
- role: openshift/start-build
|
||||||
app: cloud-image-uploader
|
app: cloud-image-uploader
|
||||||
buildname: cloud-image-uploader-build
|
buildname: cloud-image-uploader-build
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: "aws-credentials"
|
||||||
|
labels:
|
||||||
|
app: "cloud-image-uploader"
|
||||||
|
stringData:
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
access_key_id: "{{fedimg_aws_stg_access_id}}"
|
||||||
|
secret_access_key: "{{fedimg_aws_stg_secret_key}}"
|
||||||
|
{% else %}
|
||||||
|
access_key_id: "{{fedimg_aws_prod_access_id}}"
|
||||||
|
secret_access_key: "{{fedimg_aws_prod_secret_key}}"
|
||||||
|
{% endif %}
|
|
@ -55,6 +55,16 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: azure-credentials
|
name: azure-credentials
|
||||||
key: subscription_id
|
key: subscription_id
|
||||||
|
- name: AWS_ACCESS_KEY_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: aws-credentials
|
||||||
|
key: access_key_id
|
||||||
|
- name: AWS_SECRET_ACCESS_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: aws-credentials
|
||||||
|
key: secret_access_key
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/fedora-messaging
|
mountPath: /etc/fedora-messaging
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue