Skip to content

Commit 84967c1

Browse files
oceanc80joelanford
authored andcommitted
UPSTREAM: <drop>: Revert "Separate CA configuration for pulls vs catalogd services (#1673)"
This reverts commit 859b4d2.
1 parent 859b4d2 commit 84967c1

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

cmd/manager/main.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,12 @@ func main() {
9595
cachePath string
9696
operatorControllerVersion bool
9797
systemNamespace string
98-
catalogdCasDir string
99-
pullCasDir string
98+
caCertDir string
10099
globalPullSecret string
101100
)
102101
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
103102
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
104-
flag.StringVar(&catalogdCasDir, "catalogd-cas-dir", "", "The directory of TLS certificate authorities to use for verifying HTTPS connections to the Catalogd web service.")
105-
flag.StringVar(&pullCasDir, "pull-cas-dir", "", "The directory of TLS certificate authorities to use for verifying HTTPS connections to image registries.")
103+
flag.StringVar(&caCertDir, "ca-certs-dir", "", "The directory of TLS certificate to use for verifying HTTPS connections to the Catalogd and docker-registry web servers.")
106104
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
107105
"Enable leader election for controller manager. "+
108106
"Enabling this will ensure there is only one active controller manager.")
@@ -223,7 +221,7 @@ func main() {
223221
os.Exit(1)
224222
}
225223

226-
certPoolWatcher, err := httputil.NewCertPoolWatcher(catalogdCasDir, ctrl.Log.WithName("cert-pool"))
224+
certPoolWatcher, err := httputil.NewCertPoolWatcher(caCertDir, ctrl.Log.WithName("cert-pool"))
227225
if err != nil {
228226
setupLog.Error(err, "unable to create CA certificate pool")
229227
os.Exit(1)
@@ -233,8 +231,8 @@ func main() {
233231
BaseCachePath: filepath.Join(cachePath, "unpack"),
234232
SourceContextFunc: func(logger logr.Logger) (*types.SystemContext, error) {
235233
srcContext := &types.SystemContext{
236-
DockerCertPath: pullCasDir,
237-
OCICertPath: pullCasDir,
234+
DockerCertPath: caCertDir,
235+
OCICertPath: caCertDir,
238236
}
239237
if _, err := os.Stat(authFilePath); err == nil && globalPullSecretKey != nil {
240238
logger.Info("using available authentication information for pulling image")

config/components/tls/patches/manager_deployment_cert.yaml

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

0 commit comments

Comments
 (0)