diff --git a/ci-operator/config/openshift/installer/openshift-installer-fcos-master.yaml b/ci-operator/config/openshift/installer/openshift-installer-fcos-master.yaml new file mode 100644 index 0000000000000..6041a84947550 --- /dev/null +++ b/ci-operator/config/openshift/installer/openshift-installer-fcos-master.yaml @@ -0,0 +1,140 @@ +base_images: + base: + name: "4.3" + namespace: fcos + tag: base +build_root: + image_stream_tag: + name: release + namespace: openshift + tag: golang-1.12 +images: +- dockerfile_path: images/installer/Dockerfile.ci + from: base + inputs: + root: + as: + - build + paths: null + to: installer +- dockerfile_path: images/installer-artifacts/Dockerfile.rhel + from: installer + inputs: + root: + as: + - build + paths: null + to: installer-artifacts +- dockerfile_path: images/nested-libvirt/Dockerfile + from: base + inputs: + root: + as: + - build + paths: null + to: libvirt-installer +- dockerfile_path: images/installer/Dockerfile.upi.ci + from: base + inputs: + root: + as: + - build + paths: null + to: upi-installer +- dockerfile_path: images/openstack/Dockerfile.ci + from: base + inputs: + root: + as: + - build + paths: null + to: openstack-installer +- dockerfile_path: images/baremetal/Dockerfile.ci + from: base + inputs: + root: + as: + - build + paths: null + to: baremetal-installer +promotion: + name: "4.3" + namespace: fcos +resources: + '*': + limits: + memory: 4Gi + requests: + cpu: 100m + memory: 200Mi + baremetal-installer: + limits: + memory: 9Gi + requests: + cpu: "3" + memory: 5Gi + installer: + limits: + memory: 9Gi + requests: + cpu: "3" + memory: 5Gi + installer-artifacts: + limits: + memory: 9Gi + requests: + cpu: "3" + memory: 5Gi + libvirt-installer: + limits: + memory: 9Gi + requests: + cpu: "3" + memory: 5Gi + openstack-installer: + limits: + memory: 9Gi + requests: + cpu: "3" + memory: 5Gi + unit: + limits: + memory: 9Gi + requests: + cpu: "3" + memory: 5Gi + upi-installer: + limits: + memory: 9Gi + requests: + cpu: "3" + memory: 5Gi +tag_specification: + name: "4.3" + namespace: fcos +tests: +- as: unit + commands: go test ./pkg/... + container: + from: src +- as: gofmt + commands: IS_CONTAINER=TRUE ./hack/go-fmt.sh . + container: + from: src +- as: govet + commands: IS_CONTAINER=TRUE ./hack/go-vet.sh ./... + container: + from: src +- as: golint + commands: IS_CONTAINER=TRUE ./hack/go-lint.sh -min_confidence 0.3 $(go list -f '{{ + .ImportPath }}' ./...) + container: + from: src +- as: verify-vendor + commands: IS_CONTAINER=TRUE ./hack/verify-vendor.sh + container: + from: src +- as: e2e-aws + commands: TEST_SUITE=openshift/conformance/parallel run-tests + openshift_installer: + cluster_profile: aws diff --git a/ci-operator/jobs/openshift/installer/openshift-installer-fcos-master-postsubmits.yaml b/ci-operator/jobs/openshift/installer/openshift-installer-fcos-master-postsubmits.yaml new file mode 100644 index 0000000000000..1608316a12905 --- /dev/null +++ b/ci-operator/jobs/openshift/installer/openshift-installer-fcos-master-postsubmits.yaml @@ -0,0 +1,46 @@ +postsubmits: + openshift/installer: + - agent: kubernetes + branches: + - ^fcos-master$ + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + name: branch-ci-openshift-installer-fcos-master-images + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos-master + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --promote + - --repo=installer + - --resolver-address=http://ci-operator-configresolver + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=[images] + command: + - ci-operator + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-installer-fcos-master.yaml + name: ci-operator-misc-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 diff --git a/ci-operator/jobs/openshift/installer/openshift-installer-fcos-master-presubmits.yaml b/ci-operator/jobs/openshift/installer/openshift-installer-fcos-master-presubmits.yaml new file mode 100644 index 0000000000000..10345ef1b04eb --- /dev/null +++ b/ci-operator/jobs/openshift/installer/openshift-installer-fcos-master-presubmits.yaml @@ -0,0 +1,359 @@ +presubmits: + openshift/installer: + - agent: kubernetes + always_run: true + branches: + - fcos-master + context: ci/prow/e2e-aws + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-fcos-master-e2e-aws + rerun_command: /test e2e-aws + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos-master + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=installer + - --resolver-address=http://ci-operator-configresolver + - --secret-dir=/usr/local/e2e-aws-cluster-profile + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=e2e-aws + - --template=/usr/local/e2e-aws + command: + - ci-operator + env: + - name: CLUSTER_TYPE + value: aws + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-installer-fcos-master.yaml + name: ci-operator-misc-configs + - name: JOB_NAME_SAFE + value: e2e-aws + - name: TEST_COMMAND + value: TEST_SUITE=openshift/conformance/parallel run-tests + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /usr/local/e2e-aws-cluster-profile + name: cluster-profile + - mountPath: /usr/local/e2e-aws + name: job-definition + subPath: cluster-launch-installer-e2e.yaml + - mountPath: /etc/sentry-dsn + name: sentry-dsn + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: cluster-profile + projected: + sources: + - secret: + name: cluster-secrets-aws + - configMap: + name: prow-job-cluster-launch-installer-e2e + name: job-definition + - name: sentry-dsn + secret: + secretName: sentry-dsn + trigger: (?m)^/test( | .* )e2e-aws,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - fcos-master + context: ci/prow/gofmt + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-fcos-master-gofmt + rerun_command: /test gofmt + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos-master + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=installer + - --resolver-address=http://ci-operator-configresolver + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=gofmt + command: + - ci-operator + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-installer-fcos-master.yaml + name: ci-operator-misc-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 + trigger: (?m)^/test( | .* )gofmt,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - fcos-master + context: ci/prow/golint + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-fcos-master-golint + rerun_command: /test golint + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos-master + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=installer + - --resolver-address=http://ci-operator-configresolver + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=golint + command: + - ci-operator + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-installer-fcos-master.yaml + name: ci-operator-misc-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 + trigger: (?m)^/test( | .* )golint,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - fcos-master + context: ci/prow/govet + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-fcos-master-govet + rerun_command: /test govet + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos-master + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=installer + - --resolver-address=http://ci-operator-configresolver + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=govet + command: + - ci-operator + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-installer-fcos-master.yaml + name: ci-operator-misc-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 + trigger: (?m)^/test( | .* )govet,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - fcos-master + context: ci/prow/images + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-fcos-master-images + rerun_command: /test images + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos-master + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=installer + - --resolver-address=http://ci-operator-configresolver + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=[images] + command: + - ci-operator + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-installer-fcos-master.yaml + name: ci-operator-misc-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 + trigger: (?m)^/test( | .* )images,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - fcos-master + context: ci/prow/unit + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-fcos-master-unit + rerun_command: /test unit + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos-master + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=installer + - --resolver-address=http://ci-operator-configresolver + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=unit + command: + - ci-operator + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-installer-fcos-master.yaml + name: ci-operator-misc-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 + trigger: (?m)^/test( | .* )unit,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - fcos-master + context: ci/prow/verify-vendor + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-installer-fcos-master-verify-vendor + rerun_command: /test verify-vendor + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos-master + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=installer + - --resolver-address=http://ci-operator-configresolver + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=verify-vendor + command: + - ci-operator + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-installer-fcos-master.yaml + name: ci-operator-misc-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 + trigger: (?m)^/test( | .* )verify-vendor,?($|\s.*)