File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -227,6 +227,36 @@ webhooks:
227227 timeoutSeconds: 2
228228---
229229apiVersion: admissionregistration.k8s.io /v1
230+ kind: ValidatingWebhookConfiguration
231+ metadata:
232+ annotations:
233+ package-operator.run /phase: webhooks
234+ service.beta.openshift.io /inject-cabundle: " false"
235+ name: sre-network-operator-validation
236+ webhooks:
237+ - admissionReviewVersions:
238+ - v1
239+ clientConfig:
240+ caBundle: '{{.config.serviceca | b64enc }}'
241+ url: https://validation-webhook. {{.package.metadata.namespace }}.svc.cluster.local /network-operator-validation
242+ failurePolicy: Ignore
243+ matchPolicy: Equivalent
244+ name: network-operator-validation.managed.openshift.io
245+ rules:
246+ - apiGroups:
247+ - operator.openshift.io
248+ apiVersions:
249+ - '*'
250+ operations:
251+ - UPDATE
252+ resources:
253+ - network
254+ - networks
255+ scope: Cluster
256+ sideEffects: None
257+ timeoutSeconds: 2
258+ ---
259+ apiVersion: admissionregistration.k8s.io /v1
230260kind: MutatingWebhookConfiguration
231261metadata:
232262 annotations:
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ echo "Using go version $(go version)"
99
1010cd " ${REPO_ROOT} "
1111
12+ # Prow may set GOFLAGS=-mod=vendor which breaks us since we use modules
13+ unset GOFLAGS
14+ export GOFLAGS=-mod=mod
15+
1216# Run tests
1317make test
1418
You can’t perform that action at this time.
0 commit comments