From 062dc49ff030ee3ada1358a258632b24e7e1db61 Mon Sep 17 00:00:00 2001 From: Emanuel Bennici Date: Fri, 27 Sep 2019 22:22:02 +0200 Subject: [PATCH] Add new Configuration Variable Add a new Configuration Variable 'REPLACE_REGISTRY_URL'. This this Variable a User can decide if he want that the the "Target" Docker Registry Domain (eg. 'quay.io') will be replaced with this own Domain, or if this Registry Domain will be simply pre-pendeted. Example: Kubelet pulls Image: 'docker.io/library/nginx:latest' With 'REPLACE_..' Enabled: 'jfrog.local/library/nginx:latest' With 'REPLACE_..' Disabled: 'jfrog.local/docker.io/library/nginx:latest' This is because we at FABMation are "sorting" the Images from 3rd-Party Registries (and sign them). So having the possibility to decide if the original Registry Domain should be replaced or not is a nice Feature. Signed-off-by: Emanuel Bennici --- cmd/kubenab/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/kubenab/main.go b/cmd/kubenab/main.go index 0646288..ed7e021 100644 --- a/cmd/kubenab/main.go +++ b/cmd/kubenab/main.go @@ -23,6 +23,7 @@ var ( var ( dockerRegistryUrl = os.Getenv("DOCKER_REGISTRY_URL") + replaceRegistryUrl = os.Getenv("REPLACE_REGISTRY_URL") registrySecretName = os.Getenv("REGISTRY_SECRET_NAME") whitelistRegistries = os.Getenv("WHITELIST_REGISTRIES") whitelistNamespaces = os.Getenv("WHITELIST_NAMESPACES")