Skip to content

Conversation

@ReSearchITEng
Copy link
Contributor

make tls(pr798 of @zimbatm ) use additionalVolumes capability from pr736 (of @seuf @Thierry )
(as suggested by @frittentheke and @FxKu )
in
#736 (comment)
It also adds capability to hold ca.crt in a different secret.

@FxKu
Copy link
Member

FxKu commented Apr 15, 2020

Thanks @ReSearchITEng for following up on my suggestion from #736 😃
Can you rebase and also run ./hack/update-codgen.sh?

* **caSecretName**
By setting the `caSecretName` value, the ca certificate file defined by the
`caFile` will be fetched from this secret instead of `secretName` above.
This secret has to hold a file with that name in its root.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not strictly necessary as the user can provide an absolute path to caFile and point into the additional volume directly. The caFile only gets expanded with the /tls prefix if the path is relative.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, it could be done separately using the new additionalVolumeMounts capability and point to it (which is actually used in background).
Still, following the patterns for tls in similar projects, (therefore align), having a ca secret is might be more intuitive.
FYI, your nice ensurePath function has been reused, this time on top of /tlsca path.
btw, if the ca secret is not provided, the rest of functionality remains as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, the extra code complexity might be worth it if it makes things easier for the user. I am not in a position to judge that.

@ReSearchITEng
Copy link
Contributor Author

superseded by pr #920

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants