Skip to content

Commit

Permalink
Fix flow schema deployment
Browse files Browse the repository at this point in the history
PR: #880 added a
deployment stanza for a specific kubernetes feature, but only did that for
openshift-sdn and not for ovn-kubernetes, moreover it added it in the wrong
place independently of the network plugin being deployed

Signed-off-by: Alexander Constantinescu <aconstan@redhat.com>
  • Loading branch information
alexanderConstantinescu committed Dec 16, 2020
1 parent c23495c commit 37be290
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions bindata/network/ovn-kubernetes/007-flowschema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: flowcontrol.apiserver.k8s.io/v1alpha1
kind: FlowSchema
metadata:
name: openshift-ovn-kubernetes
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
spec:
distinguisherMethod:
type: ByUser
matchingPrecedence: 500
priorityLevelConfiguration:
name: system
rules:
- nonResourceRules:
- nonResourceURLs:
- '*'
verbs:
- '*'
resourceRules:
- apiGroups:
- '*'
clusterScope: true
namespaces:
- '*'
resources:
- '*'
verbs:
- '*'
subjects:
- kind: ServiceAccount
serviceAccount:
name: ovn-kubernetes-controller
namespace: openshift-ovn-kubernetes
- kind: ServiceAccount
serviceAccount:
name: ovn-kubernetes-node
namespace: openshift-ovn-kubernetes

0 comments on commit 37be290

Please sign in to comment.