Skip to content

Commit

Permalink
feat(manifests): Add plugin manifests as bindata
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrt committed Jun 30, 2022
1 parent f87e85f commit 29e73c8
Show file tree
Hide file tree
Showing 9 changed files with 636 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ unexport GOFLAGS
build:
go build -o openshift-provider-cert $(GO_BUILD_FLAGS)

.PHONY: update
update:
./hack/update-generated-bindata.sh

.PHONY: cross-build-windows-amd64
cross-build-windows-amd64:
GOOS=windows GOARCH=amd64 go build -o openshift-provider-cert.exe $(GO_BUILD_FLAGS)
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.16

require (
github.com/adrg/xdg v0.4.0
github.com/go-bindata/go-bindata v3.1.2+incompatible // indirect
github.com/openshift/api v0.0.0-20210910062324-a41d3573a3ba // indirect
github.com/openshift/client-go v0.0.0-20210521082421-73d9475a9142
github.com/pkg/errors v0.9.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWp
github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU=
github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/go-bindata/go-bindata v3.1.2+incompatible h1:5vjJMVhowQdPzjE1LdxyFF7YFTXg5IgGVW4gBr5IbvE=
github.com/go-bindata/go-bindata v3.1.2+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
Expand Down
22 changes: 22 additions & 0 deletions hack/update-generated-bindata.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..

if [[ ! $(which go-bindata) ]]; then
echo "go-bindata not found on PATH. To install:"
echo "go get -u github.com/go-bindata/go-bindata/..."
exit 1
fi

set -x
go-bindata \
-nocompress \
-nometadata \
-pkg "assets" \
-prefix "${SCRIPT_ROOT}" \
-o "${SCRIPT_ROOT}/pkg/assets/bindata.go" \
${SCRIPT_ROOT}/manifests/...
41 changes: 41 additions & 0 deletions manifests/openshift-kube-conformance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
podSpec:
restartPolicy: Never
serviceAccountName: sonobuoy-serviceaccount
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
containers:
- name: report-progress
image: quay.io/mrbraga/openshift-tests-provider-cert:latest
imagePullPolicy: Always
priorityClassName: system-node-critical
command: ["./report-progress.sh"]
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
env:
- name: CERT_LEVEL
value: "0"

sonobuoy-config:
driver: Job
plugin-name: openshift-kube-conformance
result-format: junit
description: The end-to-end tests maintained by Kubernetes to certify the platform.
source-url: https://github.com/openshift/provider-certification-tool/blob/mvp/tools/plugins/openshift-kube-conformance.yaml
skipCleanup: true
spec:
name: plugin
image: quay.io/mrbraga/openshift-tests-provider-cert:latest
imagePullPolicy: Always
priorityClassName: system-node-critical
resources: {}
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
env:
- name: CERT_LEVEL
value: "0"
41 changes: 41 additions & 0 deletions manifests/openshift-provider-cert-level-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
podSpec:
restartPolicy: Never
serviceAccountName: sonobuoy-serviceaccount
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
containers:
- name: report-progress
image: quay.io/mrbraga/openshift-tests-provider-cert:latest
imagePullPolicy: Always
priorityClassName: system-node-critical
command: ["./report-progress.sh"]
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
env:
- name: CERT_LEVEL
value: "1"

sonobuoy-config:
driver: Job
plugin-name: openshift-provider-cert-level1
result-format: junit
description: The end-to-end tests maintained by OpenShift to certify the Provider running the OpenShift Container Platform.
source-url: https://github.com/openshift/provider-certification-tool/blob/mvp/tools/plugins/openshift-provider-cert-level-1.yaml
skipCleanup: true
spec:
name: plugin
image: quay.io/mrbraga/openshift-tests-provider-cert:latest
imagePullPolicy: Always
priorityClassName: system-node-critical
resources: {}
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
env:
- name: CERT_LEVEL
value: "1"
41 changes: 41 additions & 0 deletions manifests/openshift-provider-cert-level-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
podSpec:
restartPolicy: Never
serviceAccountName: sonobuoy-serviceaccount
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
containers:
- name: report-progress
image: quay.io/mrbraga/openshift-tests-provider-cert:latest
imagePullPolicy: Always
priorityClassName: system-node-critical
command: ["./report-progress.sh"]
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
env:
- name: CERT_LEVEL
value: "2"

sonobuoy-config:
driver: Job
plugin-name: openshift-provider-cert-level2
result-format: junit
description: The end-to-end tests maintained by OpenShift to certify the Provider running the OpenShift Container Platform.
source-url: https://github.com/openshift/provider-certification-tool/blob/mvp/tools/plugins/openshift-provider-cert-level-2.yaml
skipCleanup: true
spec:
name: plugin
image: quay.io/mrbraga/openshift-tests-provider-cert:latest
imagePullPolicy: Always
priorityClassName: system-node-critical
resources: {}
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
env:
- name: CERT_LEVEL
value: "2"
41 changes: 41 additions & 0 deletions manifests/openshift-provider-cert-level-3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
podSpec:
restartPolicy: Never
serviceAccountName: sonobuoy-serviceaccount
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
containers:
- name: report-progress
image: quay.io/mrbraga/openshift-tests-provider-cert:latest
imagePullPolicy: Always
priorityClassName: system-node-critical
command: ["./report-progress.sh"]
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
env:
- name: CERT_LEVEL
value: "3"

sonobuoy-config:
driver: Job
plugin-name: openshift-provider-cert-level3
result-format: junit
description: The end-to-end tests maintained by OpenShift to certify the Provider running the OpenShift Container Platform.
source-url: https://github.com/openshift/provider-certification-tool/blob/mvp/tools/plugins/openshift-provider-cert-level-3.yaml
skipCleanup: true
spec:
name: plugin
image: quay.io/mrbraga/openshift-tests-provider-cert:latest
imagePullPolicy: Always
priorityClassName: system-node-critical
resources: {}
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
env:
- name: CERT_LEVEL
value: "3"

0 comments on commit 29e73c8

Please sign in to comment.