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

add ci for openshift/cluster-policy-controller #5075

Merged
merged 2 commits into from
Sep 30, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions ci-operator/config/openshift/cluster-policy-controller/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# DO NOT EDIT; this file is auto-generated using tools/populate-owners.
# from https://github.com/openshift/cluster-policy-controller/blob/c49a0b500994f2873111f6be5cef1735ec9e087b/OWNERS
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- bparees
- mfojtik
- soltysh
- adambkaplan
reviewers:
- bparees
- smarterclayton
- mfojtik
- soltysh
- csrwng
- gabemontero
- adambkaplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
base_images:
base:
name: "4.3"
namespace: ocp
tag: base
binary_build_commands: make build --warn-undefined-variables
build_root:
image_stream_tag:
cluster: https://api.ci.openshift.org
name: release
namespace: openshift
tag: golang-1.12
images:
- dockerfile_path: Dockerfile.rhel
from: base
inputs:
bin:
as:
- registry.svc.ci.openshift.org/ocp/builder:golang-1.12
paths: null
to: cluster-policy-controller
promotion:
name: "4.3"
namespace: ocp
resources:
'*':
limits:
memory: 9Gi
requests:
cpu: "3"
memory: 6Gi
tag_specification:
name: "4.3"
namespace: ocp
test_binary_build_commands: make build GOFLAGS='-race' --warn-undefined-variables
tests:
- as: verify
commands: |
make verify -k --warn-undefined-variables
container:
from: bin
- as: verify-deps
commands: |
HOME=$( mktemp -d )
make verify-deps -k --warn-undefined-variables
container:
from: src
- artifact_dir: /tmp/artifacts
as: unit
commands: |
mkdir -p /tmp/artifacts
make test-unit JUNITFILE=/tmp/artifacts/unit_report.xml --warn-undefined-variables
container:
from: test-bin
- as: e2e-aws
commands: TEST_SUITE=openshift/conformance/parallel run-tests
openshift_installer:
cluster_profile: aws
- as: e2e-aws-upgrade
commands: TEST_SUITE=all run-upgrade-tests
openshift_installer:
cluster_profile: aws
upgrade: true
17 changes: 17 additions & 0 deletions ci-operator/jobs/openshift/cluster-policy-controller/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# DO NOT EDIT; this file is auto-generated using tools/populate-owners.
# from https://github.com/openshift/cluster-policy-controller/blob/c49a0b500994f2873111f6be5cef1735ec9e087b/OWNERS
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- bparees
- mfojtik
- soltysh
- adambkaplan
reviewers:
- bparees
- smarterclayton
- mfojtik
- soltysh
- csrwng
- gabemontero
- adambkaplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
postsubmits:
openshift/cluster-policy-controller:
- agent: kubernetes
branches:
- ^master$
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: branch-ci-openshift-cluster-policy-controller-master-images
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --promote
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: openshift-cluster-policy-controller-master.yaml
name: ci-operator-master-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn