Skip to content

Commit

Permalink
Merge pull request openshift#461 from mlguerrero12/addoperatorconfigw…
Browse files Browse the repository at this point in the history
…ebhook

Add sriovoperatorconfigs resource to webhook
  • Loading branch information
SchSeba authored Jul 3, 2023
2 parents b9102a7 + 9262126 commit 2d37483
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindata/manifests/operator-webhook/003-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ webhooks:
apiGroups: ["sriovnetwork.openshift.io"]
apiVersions: ["v1"]
resources: ["sriovnetworknodepolicies"]
- operations: [ "CREATE", "UPDATE", "DELETE" ]
apiGroups: [ "sriovnetwork.openshift.io" ]
apiVersions: [ "v1" ]
resources: [ "sriovoperatorconfigs" ]
2 changes: 2 additions & 0 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ var _ = BeforeSuite(func(done Done) {
ErrorIfCRDPathMissing: true,
}

testEnv.ControlPlane.GetAPIServer().Configure().Set("disable-admission-plugins", "MutatingAdmissionWebhook", "ValidatingAdmissionWebhook")

cfg, err := testEnv.Start()
Expect(err).NotTo(HaveOccurred())
Expect(cfg).NotTo(BeNil())
Expand Down

0 comments on commit 2d37483

Please sign in to comment.