concourse-kubernetes-resource icon indicating copy to clipboard operation
concourse-kubernetes-resource copied to clipboard

base64 encoding

Open mdomke opened this issue 8 years ago • 2 comments

I was about to create the same resource in more or less the same way that you did . Nevertheless I was wondering why you require the certificates and keys to be base64 encoded, since the PEM files are base64 encoded anyhow. In the way you implemented it I would have to pass the keys and certificates through the base64 utility before adding them to my pipeline specification instead of just copy-pasting them. Is there any particular reason for it?

mdomke avatar Aug 01 '16 08:08 mdomke

That's a perfectly good point. I'm probably stuck in an anti-pattern of trying to keep things all on one line to tidy up my resources.

jcderr avatar Aug 09 '16 15:08 jcderr

I have a rework in process for a few things anyhow - and will probably reimplement this in Go. I'll keep this in mind as I wrap that up.

jcderr avatar Aug 09 '16 15:08 jcderr