diff --git a/ci-operator/config/openshift/installer/openshift-installer-fcos.yaml b/ci-operator/config/openshift/installer/openshift-installer-fcos.yaml new file mode 100644 index 0000000000000..450db01fe2342 --- /dev/null +++ b/ci-operator/config/openshift/installer/openshift-installer-fcos.yaml @@ -0,0 +1,148 @@ +base_images: + base: + name: "4.3" + namespace: fcos + tag: base + machine-os-content: + namespace: fcos + name: "4.3" + tag: machine-os-content + installer: + namespace: fcos + name: "4.3" + tag: installer +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/config/openshift/machine-config-operator/openshift-machine-config-operator-fcos.yaml b/ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-fcos.yaml new file mode 100644 index 0000000000000..10cccf57e8323 --- /dev/null +++ b/ci-operator/config/openshift/machine-config-operator/openshift-machine-config-operator-fcos.yaml @@ -0,0 +1,49 @@ +base_images: + base: + name: "4.3" + namespace: ocp + tag: base + machine-os-content: + namespace: fcos + name: "4.3" + tag: machine-os-content + installer: + namespace: fcos + name: "4.3" + tag: installer +build_root: + image_stream_tag: + name: release + namespace: openshift + tag: golang-1.12 +images: +- dockerfile_path: Dockerfile + from: base + to: machine-config-operator +promotion: + name: "4.3" + namespace: fcos +resources: + '*': + limits: + memory: 8Gi + requests: + cpu: 100m + memory: 200Mi +tag_specification: + name: "4.3" + namespace: fcos +tests: +- as: unit + commands: make test-unit + container: + from: src +- as: e2e-aws + commands: TEST_SUITE=openshift/conformance/parallel run-tests + openshift_installer: + cluster_profile: aws +- as: verify + commands: | + make verify + container: + from: src diff --git a/ci-operator/jobs/openshift/installer/openshift-installer-fcos-postsubmits.yaml b/ci-operator/jobs/openshift/installer/openshift-installer-fcos-postsubmits.yaml new file mode 100644 index 0000000000000..8ee90a672b65f --- /dev/null +++ b/ci-operator/jobs/openshift/installer/openshift-installer-fcos-postsubmits.yaml @@ -0,0 +1,46 @@ +postsubmits: + openshift/installer: + - agent: kubernetes + branches: + - ^fcos$ + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + name: branch-ci-openshift-installer-fcos-images + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --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.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-presubmits.yaml b/ci-operator/jobs/openshift/installer/openshift-installer-fcos-presubmits.yaml new file mode 100644 index 0000000000000..ec3dee5431ce2 --- /dev/null +++ b/ci-operator/jobs/openshift/installer/openshift-installer-fcos-presubmits.yaml @@ -0,0 +1,359 @@ +presubmits: + openshift/installer: + - agent: kubernetes + always_run: true + branches: + - fcos + 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-e2e-aws + rerun_command: /test e2e-aws + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --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.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 + 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-gofmt + rerun_command: /test gofmt + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --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.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 + 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-golint + rerun_command: /test golint + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --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.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 + 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-govet + rerun_command: /test govet + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --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.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 + 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-images + rerun_command: /test images + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --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.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 + 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-unit + rerun_command: /test unit + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --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.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 + 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-verify-vendor + rerun_command: /test verify-vendor + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --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.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.*) diff --git a/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-fcos-postsubmits.yaml b/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-fcos-postsubmits.yaml new file mode 100644 index 0000000000000..aa3d321a79b18 --- /dev/null +++ b/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-fcos-postsubmits.yaml @@ -0,0 +1,46 @@ +postsubmits: + openshift/machine-config-operator: + - agent: kubernetes + branches: + - ^fcos$ + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/prowgen-controlled: "true" + name: branch-ci-openshift-machine-config-operator-fcos-images + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --promote + - --repo=machine-config-operator + - --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-machine-config-operator-fcos.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/machine-config-operator/openshift-machine-config-operator-fcos-presubmits.yaml b/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-fcos-presubmits.yaml new file mode 100644 index 0000000000000..3af4747352f3b --- /dev/null +++ b/ci-operator/jobs/openshift/machine-config-operator/openshift-machine-config-operator-fcos-presubmits.yaml @@ -0,0 +1,215 @@ +presubmits: + openshift/machine-config-operator: + - agent: kubernetes + always_run: true + branches: + - fcos + 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-machine-config-operator-fcos-e2e-aws + rerun_command: /test e2e-aws + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=machine-config-operator + - --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-machine-config-operator-fcos.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 + 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-machine-config-operator-fcos-images + rerun_command: /test images + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=machine-config-operator + - --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-machine-config-operator-fcos.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 + 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-machine-config-operator-fcos-unit + rerun_command: /test unit + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=machine-config-operator + - --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-machine-config-operator-fcos.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 + context: ci/prow/verify + 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-machine-config-operator-fcos-verify + rerun_command: /test verify + spec: + containers: + - args: + - --artifact-dir=$(ARTIFACTS) + - --branch=fcos + - --give-pr-author-access-to-namespace=true + - --org=openshift + - --repo=machine-config-operator + - --resolver-address=http://ci-operator-configresolver + - --sentry-dsn-path=/etc/sentry-dsn/ci-operator + - --target=verify + command: + - ci-operator + env: + - name: CONFIG_SPEC + valueFrom: + configMapKeyRef: + key: openshift-machine-config-operator-fcos.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,?($|\s.*)