diff --git a/ci-operator/config/openshift/cluster-version-operator/master.json b/ci-operator/config/openshift/cluster-version-operator/master.json new file mode 100644 index 000000000000..6d278bea12bf --- /dev/null +++ b/ci-operator/config/openshift/cluster-version-operator/master.json @@ -0,0 +1,46 @@ +{ + "tag_specification": { + "cluster": "https://api.ci.openshift.org", + "namespace": "openshift", + "name": "origin-v3.11", + "tag": "", + "tag_overrides": {} + }, + "base_images": { + "base": { + "cluster": "https://api.ci.openshift.org", + "namespace": "openshift", + "name": "origin-v3.11", + "tag": "base" + } + }, + "test_base_image": { + "cluster": "https://api.ci.openshift.org", + "namespace": "openshift", + "name": "release", + "tag": "golang-1.10" + }, + "canonical_go_repository": "github.com/openshift/cluster-version-operator", + + "images": [ + { + "from": "base", + "to": "cluster-version-operator" + } + ], + + "tests": [ + { + "as": "unit", + "from": "src", + "commands": "go test ./..." + } + ], + + "resources": { + "*": { + "requests": { "cpu": "100m", "memory": "200Mi" }, + "limits": { "cpu": "2", "memory": "4Gi" } + } + } +} diff --git a/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-postsubmits.yaml b/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-postsubmits.yaml new file mode 100644 index 000000000000..f79a7cc8c795 --- /dev/null +++ b/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-postsubmits.yaml @@ -0,0 +1,27 @@ +postsubmits: + openshift/cluster-monitoring-operator: + - name: branch-ci-openshift-cluster-version-operator-images + agent: kubernetes + labels: + artifacts: images + branches: + - master + decorate: true + skip_cloning: true + spec: + serviceAccountName: ci-operator + containers: + - name: test + image: ci-operator:latest + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + name: ci-operator-openshift-cluster-version-operator + key: master.json + command: + - ci-operator + args: + - --artifact-dir=$(ARTIFACTS) + - --target=[images] + - --promote \ No newline at end of file diff --git a/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-presubmits.yaml b/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-presubmits.yaml new file mode 100644 index 000000000000..b7f2e6fd0573 --- /dev/null +++ b/ci-operator/jobs/openshift/cluster-version-operator/openshift-cluster-version-operator-presubmits.yaml @@ -0,0 +1,29 @@ +presubmits: + openshift/cluster-capacity: + - name: pull-ci-openshift-cluster-version-operator-unit + agent: kubernetes + context: ci/prow/unit + branches: + - master + rerun_command: "/test unit" + always_run: true + trigger: "((?m)^/test( all| unit),?(\\s+|$))" + decorate: true + skip_cloning: true + spec: + serviceAccountName: ci-operator + containers: + - name: test + image: ci-operator:latest + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + name: ci-operator-openshift-cluster-version-operator + key: master.json + command: + - ci-operator + args: + - --artifact-dir=$(ARTIFACTS) + - --target=unit + - --target=[images] diff --git a/cluster/ci/config/prow/config.yaml b/cluster/ci/config/prow/config.yaml index aeed41c23891..e96e5456bdfb 100644 --- a/cluster/ci/config/prow/config.yaml +++ b/cluster/ci/config/prow/config.yaml @@ -130,6 +130,7 @@ tide: - openshift/telemeter - openshift/service-serving-cert-signer - openshift/service-catalog + - openshift/cluster-version-operator labels: - lgtm missingLabels: diff --git a/cluster/ci/config/prow/plugins.yaml b/cluster/ci/config/prow/plugins.yaml index c73201520e37..55ea0e19acb2 100644 --- a/cluster/ci/config/prow/plugins.yaml +++ b/cluster/ci/config/prow/plugins.yaml @@ -60,6 +60,8 @@ config_updater: name: ci-operator-openshift-origin ci-operator/config/openshift/installer/master.json: name: ci-operator-openshift-installer + ci-operator/config/openshift/cluster-version-operator/master.json: + name: ci-operator-openshift-cluster-version-operator ci-operator/config/openshift/origin-web-console-server/master.json: name: ci-operator-openshift-origin-web-console-server ci-operator/config/openshift/origin-web-console-server/release-3.10.json: