Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Add new Configuration Variable
Browse files Browse the repository at this point in the history
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 <benniciemanuel78@gmail.com>
  • Loading branch information
l0nax committed Sep 27, 2019
1 parent 7b5d5f2 commit 062dc49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kubenab/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 062dc49

Please # to comment.