vmware-archive / kubernetes-image-mapper

[Prototype] Apply relocation mappings on the fly to kubernetes resources
Apache License 2.0
0 stars 2 forks source link

Support ClusterImageMaps #4

Open glyn opened 5 years ago

glyn commented 5 years ago

Sometimes it is necessary to provide a relocation mapping that will apply to all namespaces. So the namespaced ImageMap resource should be augmented with a cluster-wide ClusterImageMap.

When an ImageMap is inconsistent with a ClusterImageMap, this is not an error and the ImageMap should take precedence. This allows specific namespaces to override the cluster-wide behaviour when necessary, e.g. for testing a later version of the images in the ClusterImageMap.