jib icon indicating copy to clipboard operation
jib copied to clipboard

Possibly change 'credHelpers' to 'credentialHelpers'.

Open coollog opened this issue 8 years ago • 6 comments

For better readability.

coollog avatar Mar 22 '18 17:03 coollog

What about credsStore and credHelper?

lukago avatar Apr 13 '18 18:04 lukago

Hi Łukasz,

By credHelper, do you mean an additional configuration parameter for just configuring a single credential helper (instead of <credHelpers><credHelper>thecredhelper</credHelper></credHelpers>)?

For credsStore, would this be just a different mechanism for retrieving credentials or just an alias for credHelper?

Thanks for your feedback!

coollog avatar Apr 13 '18 19:04 coollog

I meant credHelper in com.google.cloud.tools.jib.gradle.ImageConfiguration but maven tags are qualifying for my question as well. What I asked is if we want to rename any occurence of cred* to credential to keep it consistent? So credsStore in com.google.cloud.tools.jib.registry.credentials.json.DockerConfigTemplate would be changed to credentialsStore, similarly credHelper and maven tags, plus occurences in comments and documentation.

lukago avatar Apr 13 '18 19:04 lukago

Ah okay, that makes sense. I should have been clearer in the issue description. Your suggestion sounds good if we do go with renaming, since it fits more of our style of generally no abbreviations.

EDIT: Actually, for DockerConfigTemplate (similarly for all other JSON templates), we actually have to keep it credsStore since that is the field name in Docker config.

coollog avatar Apr 13 '18 19:04 coollog

If you're stuck with credStore maybe it'd just be best to stay with credHelpers for consistency.

TadCordle avatar Apr 13 '18 20:04 TadCordle

This is superceded by https://github.com/GoogleContainerTools/jib/pull/251

coollog avatar May 03 '18 18:05 coollog