FROM openshift/golang-builder@sha256:ab1bfcb9d06b339cb767acb804e6aa82eb23cd0795e6f82af54e92c312a32777 AS builder
ENV __doozer=update BUILD_RELEASE=202201211922.p0.g07e059a.assembly.stream BUILD_VERSION=v4.7.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=7 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.7.0-202201211922.p0.g07e059a.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=07e059a OS_GIT_VERSION=4.7.0-202201211922.p0.g07e059a.assembly.stream-07e059a SOURCE_DATE_EPOCH=1619714691 SOURCE_GIT_COMMIT=07e059a6b0c98e98d71f0c08dc741605e2431914 SOURCE_GIT_TAG=v0.0.0-alpha.0-314-g07e059a6 SOURCE_GIT_URL=https://github.com/openshift/cluster-config-operator 
WORKDIR /go/src/github.com/openshift/cluster-config-operator
COPY . .
ENV GO_PACKAGE github.com/openshift/cluster-config-operator
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.7.0-202201082234.p0.g0e45f63.assembly.stream
ENV __doozer=update BUILD_RELEASE=202201211922.p0.g07e059a.assembly.stream BUILD_VERSION=v4.7.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=7 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.7.0-202201211922.p0.g07e059a.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=07e059a OS_GIT_VERSION=4.7.0-202201211922.p0.g07e059a.assembly.stream-07e059a SOURCE_DATE_EPOCH=1619714691 SOURCE_GIT_COMMIT=07e059a6b0c98e98d71f0c08dc741605e2431914 SOURCE_GIT_TAG=v0.0.0-alpha.0-314-g07e059a6 SOURCE_GIT_URL=https://github.com/openshift/cluster-config-operator 
RUN mkdir -p /usr/share/bootkube/manifests/manifests
RUN mkdir -p /usr/share/bootkube/manifests/bootstrap-manifests
COPY --from=builder /go/src/github.com/openshift/cluster-config-operator/vendor/github.com/openshift/api/config/v1/*_config-operator_*.yaml /usr/share/bootkube/manifests/manifests
COPY --from=builder /go/src/github.com/openshift/cluster-config-operator/vendor/github.com/openshift/api/quota/v1/*.yaml /usr/share/bootkube/manifests/manifests
COPY --from=builder /go/src/github.com/openshift/cluster-config-operator/vendor/github.com/openshift/api/security/v1/*.yaml /usr/share/bootkube/manifests/manifests
COPY --from=builder /go/src/github.com/openshift/cluster-config-operator/vendor/github.com/openshift/api/securityinternal/v1/*.yaml /usr/share/bootkube/manifests/manifests
COPY --from=builder /go/src/github.com/openshift/cluster-config-operator/vendor/github.com/openshift/api/authorization/v1/*.yaml /usr/share/bootkube/manifests/manifests
COPY --from=builder /go/src/github.com/openshift/cluster-config-operator/vendor/github.com/openshift/api/operator/v1alpha1/0000_10_config-operator_01_imagecontentsourcepolicy.crd.yaml /usr/share/bootkube/manifests/manifests
COPY --from=builder /go/src/github.com/openshift/cluster-config-operator/cluster-config-operator /usr/bin/
COPY manifests /manifests
COPY vendor/github.com/openshift/api/config/v1/*_config-operator_*.yaml /manifests
COPY vendor/github.com/openshift/api/quota/v1/*.yaml /manifests
COPY vendor/github.com/openshift/api/security/v1/*.yaml /manifests
COPY vendor/github.com/openshift/api/securityinternal/v1/*.yaml /manifests
COPY vendor/github.com/openshift/api/authorization/v1/*.yaml /manifests
COPY vendor/github.com/openshift/api/operator/v1alpha1/0000_10_config-operator_01_imagecontentsourcepolicy.crd.yaml /manifests
COPY vendor/github.com/openshift/api/operator/v1/0000_10_config-operator_*.yaml /manifests
COPY empty-resources /manifests

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-config-operator" \
        com.redhat.component="ose-cluster-config-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="config-operator" \
        release="202201211922.p0.g07e059a.assembly.stream" \
        io.openshift.build.commit.id="07e059a6b0c98e98d71f0c08dc741605e2431914" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-config-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-config-operator/commit/07e059a6b0c98e98d71f0c08dc741605e2431914" \
        version="v4.7.0"

