Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions controllers/object_controls.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ var rootUID = ptr.To(int64(0))
// RepoConfigPathMap indicates standard OS specific paths for repository configuration files
var RepoConfigPathMap = map[string]string{
"centos": "/etc/yum.repos.d",
"debian": "/etc/apt/sources.list.d",
"ubuntu": "/etc/apt/sources.list.d",
"rhcos": "/etc/yum.repos.d",
"rhel": "/etc/yum.repos.d",
Expand All @@ -206,6 +207,7 @@ var RepoConfigPathMap = map[string]string{
// https://access.redhat.com/documentation/en-us/openshift_container_platform/4.3/html/authentication/ocp-certificates#proxy-certificates_ocp-certificates
var CertConfigPathMap = map[string]string{
"centos": "/etc/pki/ca-trust/extracted/pem",
"debian": "/usr/local/share/ca-certificates",
"ubuntu": "/usr/local/share/ca-certificates",
"rhcos": "/etc/pki/ca-trust/extracted/pem",
"rhel": "/etc/pki/ca-trust/extracted/pem",
Expand Down
2 changes: 2 additions & 0 deletions internal/state/driver_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
// RepoConfigPathMap indicates standard OS specific paths for repository configuration files
var RepoConfigPathMap = map[string]string{
"centos": "/etc/yum.repos.d",
"debian": "/etc/apt/sources.list.d",
"ubuntu": "/etc/apt/sources.list.d",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update CertConfigPathMap as well below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rahulait Good idea. Done.

"rhcos": "/etc/yum.repos.d",
"rhel": "/etc/yum.repos.d",
Expand All @@ -44,6 +45,7 @@ var RepoConfigPathMap = map[string]string{
// https://access.redhat.com/documentation/en-us/openshift_container_platform/4.3/html/authentication/ocp-certificates#proxy-certificates_ocp-certificates
var CertConfigPathMap = map[string]string{
"centos": "/etc/pki/ca-trust/extracted/pem",
"debian": "/usr/local/share/ca-certificates",
"ubuntu": "/usr/local/share/ca-certificates",
"rhcos": "/etc/pki/ca-trust/extracted/pem",
"rhel": "/etc/pki/ca-trust/extracted/pem",
Expand Down