using resultsdb username and password
This commit is contained in:
parent
49cdae0e41
commit
877aa2f99f
3 changed files with 22 additions and 0 deletions
|
@ -48,6 +48,11 @@
|
|||
key: resultsdb-ci-listener.ca
|
||||
privatefile: "rabbitmq/{{env}}/pki/ca.crt"
|
||||
|
||||
- role: openshift/object
|
||||
app: resultsdb-ci-listener
|
||||
template: secrets.yml
|
||||
objectname: secrets.yml
|
||||
|
||||
- role: openshift/object
|
||||
app: resultsdb-ci-listener
|
||||
template: configmaps.yml
|
||||
|
|
|
@ -21,6 +21,9 @@ spec:
|
|||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 5001
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: resultsdb-ci-listener-auth
|
||||
volumeMounts:
|
||||
- name: config-volume
|
||||
mountPath: /etc/ci-resultsdb-listener
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: resultsdb-ci-listener-auth
|
||||
labels:
|
||||
app: resultsdb-ci-listener
|
||||
data:
|
||||
{% if env == 'staging' %}
|
||||
RESULTSDB_AUTH_BASIC_USERNAME: {{ stg_resultsdb_httpd_user | b64encode }}
|
||||
RESULTSDB_AUTH_BASIC_PASSWORD: {{ stg_resultsdb_httpd_password | b64encode }}
|
||||
{% else %}
|
||||
RESULTSDB_AUTH_BASIC_USERNAME: {{ prod_resultsdb_httpd_user | b64encode }}
|
||||
RESULTSDB_AUTH_BASIC_PASSWORD: {{ prod_resultsdb_httpd_password | b64encode }}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue