Skip to content

Commit

Permalink
Merge pull request #156 from octarinesec/openshift-support-5-6-2
Browse files Browse the repository at this point in the history
OpenShift's Route & DeploymentConfig support
  • Loading branch information
kkadosh-vmware authored Jun 15, 2023
2 parents ea4e607 + f11aa21 commit 011237f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cbcontainers/state/components/enforcer_mutating_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ func (obj *EnforcerMutatingWebhookK8sObject) getResourcesList() []string {
"cronjobs",
"ingresses",
"customresourcedefinitions",
"deploymentconfigs",
"routes",
}
}

Expand Down
2 changes: 2 additions & 0 deletions cbcontainers/state/components/enforcer_validating_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ func (obj *EnforcerValidatingWebhookK8sObject) getResourcesList() []string {
"cronjobs",
"ingresses",
"customresourcedefinitions",
"deploymentconfigs",
"routes",
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ rules:
- networking.k8s.io
- rbac
- rbac.authorization.k8s.io
- apps.openshift.io
- route.openshift.io
resources:
- clusterrolebindings
- cronjobs
Expand All @@ -96,6 +98,8 @@ rules:
- rolebindings
- services
- statefulsets
- deploymentconfigs
- routes
verbs:
- watch
---
Expand Down
4 changes: 4 additions & 0 deletions config/rbac/dataplane_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ rules:
- networking.k8s.io
- rbac
- rbac.authorization.k8s.io
- apps.openshift.io
- route.openshift.io
resources:
- clusterrolebindings
- cronjobs
Expand All @@ -110,5 +112,7 @@ rules:
- rolebindings
- services
- statefulsets
- deploymentconfigs
- routes
verbs:
- watch

0 comments on commit 011237f

Please sign in to comment.