ImageSwap 2.0 Planning #74
phenixblue
started this conversation in
Ideas
Replies: 3 comments 3 replies
-
Here's my first stab at what a true config file for ImageSwap might look like. I think I included all previously handled map scenarios: global:
log-level: info
mode: maps
disable-label: "k8s.twr.io/imageswap"
maps:
- name: default
registry:
map: default.example.com
- name: docker.io
registry: docker.io
map: my-example.com/mirror-
- name: quay.io
registry: quay.io
map: quay.example3.com
- name: cool.io
registry: cool.io
map:
- name: registry.internal.twr.io
registry: registry.internal.twr.io
map: registry.example.com
- name: twr.io-skip
registry: twr.io
map:
skip: true
- name: walrus.io-skip
registry: walrus.io
map:
skip: true
- name: ghcrl.io-coolstuff-v1.0
match: ghcr.io/fantasy/coolstuff:v1.0
swap: my-local-registry.com/patched-coolstuff:latest
exact: true |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here's another possibility that would add more verbosity on the frontend configuration of maps, but reduce the overall complexity of processing the maps: apiVersion: imgswap.io/v1alpha1
kind: Maps
metadata:
name: example-maps
spec:
maps:
- name: swap-docker-nginx-latest
registry: "docker.io"
project: "nginx"
image: "nginx:latest"
noSwap: false
- name: no-swap-nginx
registry: "docker.io"
project: "nginx"
image: "nginx:1.14-alpine"
noSwap: true
- name: swap-registry-port
registry: "example.registry.com"
port: "5000"
project: "nginx"
image: "nginx:1.15-alpine"
noSwap: false
- name: swap-full-image-name
registry: "docker.io"
project: "nginx"
image: "nginx:1.15-alpine"
noSwap: false |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mariomcosta @howardburgess @log2 @jchanam @ferenc-hechler @M4C4R Looking for some feedback here if you have any thoughts |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have been ruminating on ImageSwap 2.0 lately.
If you have any thoughts, please comment below. After a certain period of time, we'll lock down the final enhancements and begin implementation.
Major Thoughts at the moment:
Move to Golang
Implement proper configuration file with flexible structure
Other Ideas
Beta Was this translation helpful? Give feedback.
All reactions