Skip to content

Commit

Permalink
Merge pull request #4122 from riendeau/add-root-ca-rbac
Browse files Browse the repository at this point in the history
OCPBUGS-34699: Allow access to root-ca configmap in cluster-network-operator role
  • Loading branch information
openshift-merge-bot[bot] authored Jun 4, 2024
2 parents e66add8 + b26b1c6 commit be9e3f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import (
const (
operatorName = "cluster-network-operator"
konnectivityProxyName = "konnectivity-proxy"
caConfigMap = "root-ca"
caConfigMapKey = "ca.crt"
)

type Images struct {
Expand Down Expand Up @@ -115,8 +117,8 @@ func NewParams(hcp *hyperv1.HostedControlPlane, version string, releaseImageProv
TokenAudience: hcp.Spec.IssuerURL,
SbDbPubStrategy: util.ServicePublishingStrategyByTypeForHCP(hcp, hyperv1.OVNSbDb),
DefaultIngressDomain: defaultIngressDomain,
CAConfigMap: "root-ca",
CAConfigMapKey: "ca.crt",
CAConfigMap: caConfigMap,
CAConfigMapKey: caConfigMapKey,
}

p.DeploymentConfig.AdditionalLabels = map[string]string{
Expand Down Expand Up @@ -153,6 +155,7 @@ func ReconcileRole(role *rbacv1.Role, ownerRef config.OwnerRef, networkType hype
},
ResourceNames: []string{
"openshift-service-ca.crt",
caConfigMap,
},
Verbs: []string{
"get",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func expectedRules(networkType hyperv1.NetworkType) []rbacv1.PolicyRule {
},
ResourceNames: []string{
"openshift-service-ca.crt",
caConfigMap,
},
Verbs: []string{
"get",
Expand Down

0 comments on commit be9e3f8

Please sign in to comment.