Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions config/package/resources.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,36 @@ webhooks:
timeoutSeconds: 2
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
annotations:
package-operator.run/phase: webhooks
service.beta.openshift.io/inject-cabundle: "false"
name: sre-network-operator-validation
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: '{{.config.serviceca | b64enc }}'
url: https://validation-webhook.{{.package.metadata.namespace}}.svc.cluster.local/network-operator-validation
failurePolicy: Ignore
matchPolicy: Equivalent
name: network-operator-validation.managed.openshift.io
rules:
- apiGroups:
- operator.openshift.io
apiVersions:
- '*'
operations:
- UPDATE
resources:
- network
- networks
scope: Cluster
sideEffects: None
timeoutSeconds: 2
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
annotations:
Expand Down
4 changes: 4 additions & 0 deletions hack/prow_pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ echo "Using go version $(go version)"

cd "${REPO_ROOT}"

# Prow may set GOFLAGS=-mod=vendor which breaks us since we use modules
unset GOFLAGS
export GOFLAGS=-mod=mod

# Run tests
make test

Expand Down