Skip to content

Commit ab7ec24

Browse files
tmshortopenshift-merge-bot[bot]
authored andcommitted
UPSTREAM: <drop>: Separate CA configuration for pulls vs catalogd services (#1673)
Rename the flags that provide CAs to image pulling to indicate the use. Keep the old flag around (for backward compatibility), but prefer the new flag(s). Signed-off-by: Todd Short <[email protected]>
1 parent 5be8f94 commit ab7ec24

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cmd/manager/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func main() {
9696
certFile string
9797
keyFile string
9898
webhookPort int
99-
caCertDir string
99+
pullCasDir string
100100
globalPullSecret string
101101
)
102102
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
@@ -114,7 +114,7 @@ func main() {
114114
flag.StringVar(&certFile, "tls-cert", "", "The certificate file used for serving catalog contents over HTTPS. Requires tls-key.")
115115
flag.StringVar(&keyFile, "tls-key", "", "The key file used for serving catalog contents over HTTPS. Requires tls-cert.")
116116
flag.IntVar(&webhookPort, "webhook-server-port", 9443, "The port that the mutating webhook server serves at.")
117-
flag.StringVar(&caCertDir, "ca-certs-dir", "", "The directory of CA certificate to use for verifying HTTPS connections to image registries.")
117+
flag.StringVar(&pullCasDir, "pull-cas-dir", "", "The directory of TLS certificate authoritiess to use for verifying HTTPS connections to image registries.")
118118
flag.StringVar(&globalPullSecret, "global-pull-secret", "", "The <namespace>/<name> of the global pull secret that is going to be used to pull bundle images.")
119119

120120
klog.InitFlags(flag.CommandLine)
@@ -243,8 +243,8 @@ func main() {
243243
BaseCachePath: unpackCacheBasePath,
244244
SourceContextFunc: func(logger logr.Logger) (*types.SystemContext, error) {
245245
srcContext := &types.SystemContext{
246-
DockerCertPath: caCertDir,
247-
OCICertPath: caCertDir,
246+
DockerCertPath: pullCasDir,
247+
OCICertPath: pullCasDir,
248248
}
249249
if _, err := os.Stat(authFilePath); err == nil && globalPullSecretKey != nil {
250250
logger.Info("using available authentication information for pulling image")

config/components/ca/patches/manager_deployment_cacerts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
value: {"name":"olmv1-certificate", "readOnly": true, "mountPath":"/var/ca-certs/"}
77
- op: add
88
path: /spec/template/spec/containers/1/args/-
9-
value: "--ca-certs-dir=/var/ca-certs"
9+
value: "--pull-cas-dir=/var/ca-certs"

0 commit comments

Comments
 (0)