Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO-ISSUE: parametrize template to enable switching secrets #5313

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 18 additions & 6 deletions openshift/template.yaml
Expand Up @@ -174,6 +174,18 @@ parameters:
- name: KAFKA_EVENT_STREAM_TOPIC
required: false
value: events-stream
- name: KAFKA_BOOTSTRAP_SERVER_SECRET_KEY
value: bootstrap_server_host
- name: KAFKA_BOOTSTRAP_SERVER_SECRET_NAME
value: assisted-installer-event-stream
- name: KAFKA_PASSWORD_SECRET_KEY
value: client_secret
- name: KAFKA_PASSWORD_SECRET_NAME
value: assisted-installer-event-stream
- name: KAFKA_USERNAME_SECRET_KEY
value: client_id
- name: KAFKA_USERNAME_SECRET_NAME
value: assisted-installer-event-stream
- name: ENABLE_EVENT_STREAMING
required: false
value: "true"
Expand Down Expand Up @@ -331,18 +343,18 @@ objects:
- name: KAFKA_BOOTSTRAP_SERVER
valueFrom:
secretKeyRef:
key: bootstrap_server_host
name: ${KAFKA_CREDENTIALS_SECRET_NAME}
key: ${KAFKA_BOOTSTRAP_SERVER_SECRET_KEY}
name: ${KAFKA_BOOTSTRAP_SERVER_SECRET_NAME}
- name: KAFKA_CLIENT_ID
valueFrom:
secretKeyRef:
key: client_id
name: ${KAFKA_CREDENTIALS_SECRET_NAME}
key: ${KAFKA_USERNAME_SECRET_KEY}
name: ${KAFKA_USERNAME_SECRET_NAME}
- name: KAFKA_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: client_secret
name: ${KAFKA_CREDENTIALS_SECRET_NAME}
key: ${KAFKA_PASSWORD_SECRET_KEY}
name: ${KAFKA_PASSWORD_SECRET_NAME}
- name: ENABLE_EVENT_STREAMING
value: ${ENABLE_EVENT_STREAMING}
- name: KAFKA_EVENT_STREAM_TOPIC
Expand Down