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

control-service: vdk sdk docker repository secret #694

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

mivanov1988
Copy link
Collaborator

Currently, VDK helm chart allows different repositories for data job images
and VDK SDK images to be set. However, it doesn't allow different credentials to be specified.
This means that the Data Job Pod can authenticate against only one repository
and as a result, it can pull only one image.

This change provides an ability to specify credentials for VDK SDK repository.

Testing Done: unit tests, integration tests, and helm template

Signed-off-by: Miroslav Ivanov [email protected]

Currently VDK helm chart allows different repositories for data job images
and VDK SDK image to be set. However, it doesn't allow
different creadentials to be specified. This means that the Data Job Pod
can authenticate against only one repository
and as a result it can pull only one image.

This change provides an ability to specify credentials for VDK SDK repository.

Testing Done: unit tests, integration tests and helm template

Signed-off-by: Miroslav Ivanov [email protected]
@mivanov1988 mivanov1988 merged commit ff6ff10 into main Feb 7, 2022
@mivanov1988 mivanov1988 deleted the person/miroslavi/vdk-sdk-docker-repo-secret branch February 7, 2022 12:02
{{- define "imagePullSecretJson" }}
{{- printf "{\"auths\": {\"%s\": {\"auth\": \"%s\"}}}" .Values.deploymentDockerRepository (printf "%s:%s" .Values.deploymentDockerRegistryUsernameReadOnly .Values.deploymentDockerRegistryPasswordReadOnly | b64enc) | b64enc }}
{{ include "buildImagePullSecretJson" (list .Values.deploymentDockerRepository .Values.deploymentDockerRegistryUsernameReadOnly .Values.deploymentDockerRegistryPasswordReadOnly) }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mivanov1988
I am very confused here.
You seem to be passing in different values for the first parameter of the function.
For the first secret(line 224) I see that you are passing in just the registry name.
And for the second(line 227) you are passing in the registry name followed by the repository name.

For me only the first solution works with the jfrog docker repo.
Which repo requires it to have the second format?

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

Successfully merging this pull request may close these issues.

4 participants