On CI machines the image registry is present and reachable.
That causes the actual registry, not mock server, is accessed by the test.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* src: refactor
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* src: Allow usage of custom CA for
Allows TLS verify against custom CA for chosen server names.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: style
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: lint
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fixup: cleanup
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* src: dialer pod auto-exit
The pod should exit (be Completed) when func exits.
Signed-off-by: Matej Vasek <mvasek@redhat.com>
* feat: use in cluster dialer by default
This sets http.DefaultTransport to our specialized RoundTripper.
The RoundTripper first tries dial in standard way.
If dial operation fails due to hostname resolution error
in cluster dialer will be used.
Signed-off-by: Matej Vasek <mvasek@redhat.com>