You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2025. It is now read-only.
When approriating the .dockerconfigjson secrets for Container Metadata retrieval
replace the default `https://index.docker.io/v1/` or `domain.io` docker-server values
to `registry-1.docker.io`.
Backport #4428Resolves#4429
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-container-registry/src/main/java/org/springframework/cloud/dataflow/container/registry/ContainerRegistryProperties.java
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,19 @@ public class ContainerRegistryProperties {
64
64
*/
65
65
privateHttpProxyhttpProxy = newHttpProxy();
66
66
67
+
/**
68
+
* When the `kubectl create secret docker-registry` command is used without explicit docker-server property set
69
+
* the later defaults to `https://index.docker.io/v1/` (or to `domain.io`). Those secrets can be used as
70
+
* K8s `imagePullSecret` to pull images from Docker Hub but can not be used for SCDF Metadata Container Registry access.
71
+
* Later expects a docker-server=registry-1.docker.io instead.
72
+
* To be able to reuse docker registry secretes for the purpose of imagePullSecrets and SCDF Container Metadata retrieval.
73
+
* by default the `https://index.docker.io/v1/` and `domain.io` docker-server values found in any mounted dockerconfigjson secret
74
+
* are replaced by `registry-1.docker.io`.
75
+
*
76
+
* You can override this behaviour by setting replaceDefaultDockerRegistryServer to false.
Copy file name to clipboardExpand all lines: spring-cloud-dataflow-container-registry/src/main/java/org/springframework/cloud/dataflow/container/registry/authorization/DockerConfigJsonSecretToRegistryConfigurationConverter.java
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,15 +49,21 @@ public class DockerConfigJsonSecretToRegistryConfigurationConverter implements C
0 commit comments