-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Azure/ARO-RP into proxy-r…
…efactor-and-tes
- Loading branch information
Showing
48 changed files
with
2,005 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ gomock_reflect_* | |
/e2e.test | ||
/env* | ||
!/env.example | ||
!/env-int.example | ||
/id_rsa | ||
/proxy | ||
/pyenv* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM registry.access.redhat.com/ubi8/go-toolset:1.16.12 AS builder | ||
ARG MUOVERSION | ||
ENV DOWNLOAD_URL=https://github.com/openshift/managed-upgrade-operator/archive/${MUOVERSION}.tar.gz | ||
ENV GOOS=linux \ | ||
GOPATH=/go/ \ | ||
GOARCH=amd64 \ | ||
CGO_ENABLED=0 | ||
WORKDIR ${GOPATH}/src/github.com/openshift/managed-upgrade-operator | ||
USER root | ||
RUN yum update -yq | ||
RUN curl -Lq $DOWNLOAD_URL | tar -xz --strip-components=1 | ||
RUN go build -gcflags="all=-trimpath=/go/" -asmflags="all=-trimpath=/go/" -tags mandate_fips -o build/_output/bin/managed-upgrade-operator ./cmd/manager | ||
|
||
#### Runtime container | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest | ||
|
||
ENV USER_UID=1001 \ | ||
USER_NAME=managed-upgrade-operator | ||
|
||
RUN microdnf update && microdnf clean all | ||
COPY --from=builder /go/src/github.com/openshift/managed-upgrade-operator/build/_output/bin/* \ | ||
/go/src/github.com/openshift/managed-upgrade-operator/build/bin/* \ | ||
/usr/local/bin/ | ||
RUN /usr/local/bin/user_setup | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint"] | ||
USER ${USER_UID} | ||
LABEL io.openshift.managed.name="managed-upgrade-operator" \ | ||
io.openshift.managed.description="Operator to manage upgrades for Openshift version 4 clusters" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
. ./env | ||
|
||
# Overrides for a full int-like local environment | ||
export RESOURCEGROUP=$USER-aro-$LOCATION | ||
export DATABASE_ACCOUNT_NAME=$USER-aro-$LOCATION | ||
export DATABASE_NAME=ARO | ||
export KEYVAULT_PREFIX=$USER-aro-$LOCATION | ||
export ARO_IMAGE=${USER}aro.azurecr.io/aro:$(git rev-parse --short=7 HEAD)$([[ $(git status --porcelain) = "" ]] || echo -dirty) | ||
export FLUENTBIT_IMAGE=${USER}aro.azurecr.io/fluentbit:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.