Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Adding CA Certificate support to redis broker #105

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

coding-trees
Copy link
Contributor

Adding an optional caCertificate field for the scenarios where Redis requires a cert - address feature request outlined here: triggermesh/brokers#129

Comment on lines 88 to 90
resources.ContainerAddEnvVarFromSecret("REDIS_CA_CERTIFICATE",
rb.Spec.Redis.Connection.CACertificate.SecretKeyRef.Name,
rb.Spec.Redis.Connection.CACertificate.SecretKeyRef.Key)(c)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coding-trees
Can we update the environment variable here?

Suggested change
resources.ContainerAddEnvVarFromSecret("REDIS_CA_CERTIFICATE",
rb.Spec.Redis.Connection.CACertificate.SecretKeyRef.Name,
rb.Spec.Redis.Connection.CACertificate.SecretKeyRef.Key)(c)
resources.ContainerAddEnvVarFromSecret("REDIS_TLS_CA_CERTIFICATE",
rb.Spec.Redis.Connection.CACertificate.SecretKeyRef.Name,
rb.Spec.Redis.Connection.CACertificate.SecretKeyRef.Key)(c)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, good catch. Updated.

@odacremolbap odacremolbap removed the hold label Mar 28, 2023
@odacremolbap odacremolbap merged commit 9f74864 into triggermesh:main Mar 28, 2023
@odacremolbap
Copy link
Member

Thanks so much @coding-trees !!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants