FROM openshift/golang-builder:1.12 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=27 OS_GIT_VERSION=4.2.27-202003301126-3e1ab1a OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=3e1ab1a5909f94a1ef971a191802ecc053ce6b36 SOURCE_GIT_TAG=3e1ab1a5 SOURCE_GIT_URL=https://github.com/openshift/cluster-kube-scheduler-operator SOURCE_DATE_EPOCH=1583532558 OS_GIT_COMMIT=3e1ab1a BUILD_VERSION=v4.2.27 BUILD_RELEASE=202003301126
WORKDIR /go/src/github.com/openshift/cluster-kube-scheduler-operator
COPY . .
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.2.27.20200330.112641
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=27 OS_GIT_VERSION=4.2.27-202003301126-3e1ab1a OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=3e1ab1a5909f94a1ef971a191802ecc053ce6b36 SOURCE_GIT_TAG=3e1ab1a5 SOURCE_GIT_URL=https://github.com/openshift/cluster-kube-scheduler-operator SOURCE_DATE_EPOCH=1583532558 OS_GIT_COMMIT=3e1ab1a BUILD_VERSION=v4.2.27 BUILD_RELEASE=202003301126
RUN mkdir -p /usr/share/bootkube/manifests/bootstrap-manifests/ /usr/share/bootkube/manifests/config/ /usr/share/bootkube/manifests/manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-kube-scheduler-operator/bindata/bootkube/bootstrap-manifests /usr/share/bootkube/manifests/bootstrap-manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-kube-scheduler-operator/bindata/bootkube/config /usr/share/bootkube/manifests/config/
COPY --from=builder /go/src/github.com/openshift/cluster-kube-scheduler-operator/bindata/bootkube/manifests /usr/share/bootkube/manifests/manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-kube-scheduler-operator/cluster-kube-scheduler-operator /usr/bin/
COPY manifests /manifests

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-kube-scheduler-operator" \
        com.redhat.component="ose-cluster-kube-scheduler-operator-container" \
        version="v4.2.27" \
        release="202003301126" \
        io.openshift.build.commit.id="3e1ab1a5909f94a1ef971a191802ecc053ce6b36" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-kube-scheduler-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-kube-scheduler-operator/commit/3e1ab1a5909f94a1ef971a191802ecc053ce6b36"

