Skip to content

Commit

Permalink
Making the HTTPD_AUTH_OIDC_* environment variables
Browse files Browse the repository at this point in the history
optional so older httpd auth-configmaps will still
work with the newer pods supporting OpenID-Connect.
  • Loading branch information
abellotti committed Apr 27, 2018
1 parent 223ecbe commit e380b76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/miq-template-ext-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -554,16 +554,19 @@ objects:
configMapKeyRef:
name: "${HTTPD_SERVICE_NAME}-auth-configs"
key: auth-oidc-provider-metadata-url
optional: true
- name: HTTPD_AUTH_OIDC_CLIENT_ID
valueFrom:
configMapKeyRef:
name: "${HTTPD_SERVICE_NAME}-auth-configs"
key: auth-oidc-client-id
optional: true
- name: HTTPD_AUTH_OIDC_CLIENT_SECRET
valueFrom:
configMapKeyRef:
name: "${HTTPD_SERVICE_NAME}-auth-configs"
key: auth-oidc-client-secret
optional: true
lifecycle:
postStart:
exec:
Expand Down
3 changes: 3 additions & 0 deletions templates/miq-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -699,16 +699,19 @@ objects:
configMapKeyRef:
name: "${HTTPD_SERVICE_NAME}-auth-configs"
key: auth-oidc-provider-metadata-url
optional: true
- name: HTTPD_AUTH_OIDC_CLIENT_ID
valueFrom:
configMapKeyRef:
name: "${HTTPD_SERVICE_NAME}-auth-configs"
key: auth-oidc-client-id
optional: true
- name: HTTPD_AUTH_OIDC_CLIENT_SECRET
valueFrom:
configMapKeyRef:
name: "${HTTPD_SERVICE_NAME}-auth-configs"
key: auth-oidc-client-secret
optional: true
lifecycle:
postStart:
exec:
Expand Down

0 comments on commit e380b76

Please # to comment.