You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: image registries not handling CA certificates (#729)
**What problem does this PR solve?**:
While working on
#724
I noticed that setting imageRegistry CA certificate had no effect on the
generated configuration.
I structured `/mirrors/inject.go` similar to
`/imageregistries/credentials/inject.go` where it reads both the
`globalImageRegistryMirror` and `imageRegistries` variables and handles
them together when generating the necessary files.
**Which issue(s) this PR fixes**:
Fixes #
**How Has This Been Tested?**:
<!--
Please describe the tests that you ran to verify your changes.
Provide output from the tests and any manual steps needed to replicate
the tests.
-->
```
# Tested by setting an imageRegistries. The mirror Pod failure is expected because the cluster is not configured as a mirror
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
cluster-autoscaler-docker-creds-1-77c5df58c4-gs6m2 0/1 ContainerCreating 0 94s
nginx-latest 1/1 Running 0 10s
nginx-mirror 0/1 ErrImagePull 0 10s
nginx-stable 1/1 Running 0 10s
# Tested by setting an globalImageRegistryMirror
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
cluster-autoscaler-docker-creds-1-77c5df58c4-nncdc 0/1 ContainerCreating 0 22m
nginx-latest 1/1 Running 0 9s
nginx-mirror 1/1 Running 0 9s
nginx-stable 1/1 Running 0 9s
```
**Special notes for your reviewer**:
<!--
Use this to provide any additional information to the reviewers.
This may include:
- Best way to review the PR.
- Where the author wants the most review attention on.
- etc.
-->
0 commit comments