EDITD / kubetools

:nut_and_bolt: Kubetools is a tool and processes for developing and deploying microservices to Kubernetes.
MIT License
13 stars 2 forks source link

Update to only build/push docker images relevant to current context #103

Closed eatoncns closed 3 years ago

eatoncns commented 3 years ago

Purpose of PR

Currently when ensuring images are present in repo during a deploy or push we loop over all container contexts present in the config. As context filters (dev, envs, namespaces etc.) are not applied to container contexts this results in unnecessary images being built/pushed.

This change updates to look only at containers that are present in config after filtering has been applied. Container contexts are then looked up from there.