Skip to content

Commit

Permalink
add CI for v1.13 (openshift#55287)
Browse files Browse the repository at this point in the history
Signed-off-by: Varsha B <[email protected]>
  • Loading branch information
varshab1210 authored Aug 7, 2024
1 parent 1d31e6c commit d5bb7b2
Show file tree
Hide file tree
Showing 2 changed files with 374 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
base_images:
cli:
name: "4.16"
namespace: ocp
tag: cli
operator-sdk:
name: "4.16"
namespace: origin
tag: operator-sdk
build_root:
from_repository: true
images:
- context_dir: openshift-ci/build-root/source-image
from: src
inputs:
cli:
paths:
- destination_dir: .
source_path: /usr/bin/oc
to: oc-bin-image
- dockerfile_path: openshift-ci/build-root/Dockerfile
from: oc-bin-image
to: dependencies
- context_dir: .
from: src
to: gitops-operator
operator:
bundles:
- as: gitops-operator-bundle
context_dir: bundle/
dockerfile_path: bundle.Dockerfile
substitutions:
- pullspec: quay.io/redhat-developer/gitops-operator:latest
with: pipeline:gitops-operator
releases:
initial:
integration:
name: "4.16"
namespace: ocp
latest:
integration:
include_built_images: true
name: "4.16"
namespace: ocp
resources:
'*':
requests:
cpu: 800m
memory: 6Gi
tests:
- as: kuttl-parallel
skip_if_only_changed: ^docs/|\.(md|adoc)$|^(README|LICENSE|OWNERS)$
steps:
cluster_profile: gitops-aws
env:
BASE_DOMAIN: ocp-gitops-qe.com
test:
- as: install
cli: latest
commands: |
oc create namespace openshift-gitops-operator
oc get ns openshift-gitops-operator -o yaml
operator-sdk run bundle --security-context-config restricted -n openshift-gitops-operator "$OO_BUNDLE"
oc wait --for condition=Available -n openshift-gitops-operator deployment openshift-gitops-operator-controller-manager
dependencies:
- env: OO_BUNDLE
name: gitops-operator-bundle
from: operator-sdk
resources:
requests:
cpu: "2"
memory: 6Gi
- as: parallel-e2e-steps
commands: |
scripts/openshift-CI-kuttl-tests.sh
make e2e-tests-parallel
from: dependencies
resources:
requests:
cpu: "2"
memory: 6Gi
workflow: ipi-aws
- as: e2e
skip_if_only_changed: ^docs/|\.(md|adoc)$|^(README|LICENSE|OWNERS)$
steps:
cluster_profile: gitops-aws
env:
BASE_DOMAIN: ocp-gitops-qe.com
test:
- as: e2e-steps
commands: scripts/openshiftci-presubmit-all-tests.sh
from: dependencies
resources:
requests:
cpu: "2"
memory: 6Gi
workflow: ipi-aws
zz_generated_metadata:
branch: v1.13
org: redhat-developer
repo: gitops-operator
variant: v4.16
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,275 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )gitops-ocp4.17-lp-interop-images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^v1\.13$
- ^v1\.13-
cluster: build02
context: ci/prow/v4.16-ci-index-gitops-operator-bundle
decorate: true
labels:
ci-operator.openshift.io/variant: v4.16
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-redhat-developer-gitops-operator-v1.13-v4.16-ci-index-gitops-operator-bundle
rerun_command: /test v4.16-ci-index-gitops-operator-bundle
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=ci-index-gitops-operator-bundle
- --variant=v4.16
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )v4.16-ci-index-gitops-operator-bundle,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^v1\.13$
- ^v1\.13-
cluster: build05
context: ci/prow/v4.16-e2e
decorate: true
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: gitops-aws
ci-operator.openshift.io/variant: v4.16
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-redhat-developer-gitops-operator-v1.13-v4.16-e2e
rerun_command: /test v4.16-e2e
skip_if_only_changed: ^docs/|\.(md|adoc)$|^(README|LICENSE|OWNERS)$
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --secret-dir=/usr/local/e2e-cluster-profile
- --target=e2e
- --variant=v4.16
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /usr/local/e2e-cluster-profile
name: cluster-profile
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- name: cluster-profile
secret:
secretName: cluster-secrets-gitops-aws
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )v4.16-e2e,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^v1\.13$
- ^v1\.13-
cluster: build02
context: ci/prow/v4.16-images
decorate: true
labels:
ci-operator.openshift.io/variant: v4.16
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-redhat-developer-gitops-operator-v1.13-v4.16-images
rerun_command: /test v4.16-images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=[images]
- --variant=v4.16
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )v4.16-images,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^v1\.13$
- ^v1\.13-
cluster: build05
context: ci/prow/v4.16-kuttl-parallel
decorate: true
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: gitops-aws
ci-operator.openshift.io/variant: v4.16
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-redhat-developer-gitops-operator-v1.13-v4.16-kuttl-parallel
rerun_command: /test v4.16-kuttl-parallel
skip_if_only_changed: ^docs/|\.(md|adoc)$|^(README|LICENSE|OWNERS)$
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --secret-dir=/usr/local/kuttl-parallel-cluster-profile
- --target=kuttl-parallel
- --variant=v4.16
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /usr/local/kuttl-parallel-cluster-profile
name: cluster-profile
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- name: cluster-profile
secret:
secretName: cluster-secrets-gitops-aws
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )v4.16-kuttl-parallel,?($|\s.*)

0 comments on commit d5bb7b2

Please sign in to comment.