Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP/devel: lab with replay plugin #99

Closed
Closed
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
80 changes: 80 additions & 0 deletions data/templates/plugins/openshift-conformance-replay.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
podSpec:
restartPolicy: Never
serviceAccountName: sonobuoy-serviceaccount
volumes:
- name: shared
emptyDir: {}
containers:
- name: report-progress
image: "{{ .PluginsImage }}"
imagePullPolicy: Always
priorityClassName: system-node-critical
command: ["./report-progress.sh"]
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
- mountPath: /tmp/shared
name: shared
env:
- name: PLUGIN_ID
value: "80"
- name: ENV_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: ENV_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: ENV_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
sonobuoy-config:
driver: Job
plugin-name: 80-openshift-tests-replay
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/redhat-openshift-ecosystem/provider-certification-tool/blob/main/manifests/openshift-conformance-validated.yaml
skipCleanup: true
spec:
name: plugin
image: "{{ .PluginsImage }}"
imagePullPolicy: Always
priorityClassName: system-node-critical
volumeMounts:
- mountPath: /tmp/sonobuoy/results
name: results
- mountPath: /tmp/shared
name: shared
env:
- name: PLUGIN_ID
value: "80"
- name: ENV_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: ENV_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: ENV_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: RUN_MODE
valueFrom:
configMapKeyRef:
name: plugins-config
key: run-mode
- name: DEV_MODE_COUNT
valueFrom:
configMapKeyRef:
name: plugins-config
key: dev-count
- name: MIRROR_IMAGE_REPOSITORY
valueFrom:
configMapKeyRef:
name: plugins-config
key: mirror-registry
optional: true
2 changes: 1 addition & 1 deletion hack/image-mirror-sonobuoy/mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail
set -o nounset
set -o errexit

export SONOBUOY_VERSION=${SONOBUOY_VERSION:-v0.57.1}
export SONOBUOY_VERSION=${SONOBUOY_VERSION:-v0.56.17}
export SONOBUOY_REPO=docker.io/sonobuoy/sonobuoy
export MIRROR_REPO=${MIRROR_REPO:-quay.io/opct/sonobuoy}
export PLATFORM_IMAGES=""
Expand Down
8 changes: 4 additions & 4 deletions pkg/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package pkg
const (
PrivilegedClusterRole = "opct-scc-privileged"
PrivilegedClusterRoleBinding = "opct-scc-privileged"
CertificationNamespace = "openshift-provider-certification"
VersionInfoConfigMapName = "openshift-provider-certification-version"
CertificationNamespace = "opct"
VersionInfoConfigMapName = "opct-version"
PluginsVarsConfigMapName = "plugins-config"
DedicatedNodeRoleLabel = "node-role.kubernetes.io/tests"
DedicatedNodeRoleLabelSelector = "node-role.kubernetes.io/tests="
SonobuoyServiceAccountName = "sonobuoy-serviceaccount"
SonobuoyLabelNamespaceName = "namespace"
SonobuoyLabelComponentName = "component"
SonobuoyLabelComponentValue = "sonobuoy"
DefaultToolsRepository = "quay.io/ocp-cert"
PluginsImage = "openshift-tests-provider-cert:v0.5.0-alpha.1"
DefaultToolsRepository = "quay.io/opct"
PluginsImage = "plugin-openshift-tests:v0.5.0-alpha.4"
)

var (
Expand Down
Loading