Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Revert "Operator developers gets UBI8 based images (for all less Ansi…
Browse files Browse the repository at this point in the history
…ble) (operator-framework#1952)"

This reverts commit bef05f9.
  • Loading branch information
estroz committed Sep 27, 2019
1 parent e1c32a9 commit 8d80fb6
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
- Commands [`olm uninstall`](https://github.com/operator-framework/operator-sdk/blob/master/doc/sdk-cli-reference.md#uninstall) and [`olm status`](https://github.com/operator-framework/operator-sdk/blob/master/doc/sdk-cli-reference.md#status) no longer use a `--version` flag to specify OLM version. This information is now retrieved from the running cluster. ([#1634](https://github.com/operator-framework/operator-sdk/pull/1634))
- The Helm operator no longer prints manifest diffs in the operator log at verbosity levels lower than INFO ([#1857](https://github.com/operator-framework/operator-sdk/pull/1857))
- CRD manifest `spec.version` is still supported, but users will see a warning message if `spec.versions` is not present and an error if `spec.versions` is populated but the version in `spec.version` is not in `spec.versions`. ([#1876](https://github.com/operator-framework/operator-sdk/pull/1876))
- Upgrade base image for Go, Helm, and scorecard proxy from `registry.access.redhat.com/ubi7/ubi-minimal:latest` to `registry.access.redhat.com/ubi8/ubi-minimal:latest`. ([#1952](https://github.com/operator-framework/operator-sdk/pull/1952))

### Breaking changes

Expand Down
2 changes: 1 addition & 1 deletion ci/dockerfiles/go-e2e.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM osdk-builder as builder

RUN ci/tests/e2e-go-scaffold.sh

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi7/ubi-minimal:latest

ENV OPERATOR=/usr/local/bin/memcached-operator \
USER_UID=1001 \
Expand Down
2 changes: 1 addition & 1 deletion ci/dockerfiles/helm-e2e-hybrid.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM osdk-builder as builder
RUN make image/scaffold/helm
RUN ci/tests/e2e-helm-scaffold-hybrid.sh

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi7/ubi-minimal:latest

ENV OPERATOR=/usr/local/bin/helm-operator \
USER_UID=1001 \
Expand Down
2 changes: 1 addition & 1 deletion ci/dockerfiles/helm.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM osdk-builder as builder

RUN make image/scaffold/helm

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi7/ubi-minimal:latest

ENV OPERATOR=/usr/local/bin/helm-operator \
USER_UID=1001 \
Expand Down
2 changes: 1 addition & 1 deletion ci/dockerfiles/scorecard-proxy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM osdk-builder as builder

RUN ci/tests/scorecard-proxy-scaffold.sh

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi7/ubi-minimal:latest

ENV PROXY=/usr/local/bin/scorecard-proxy \
USER_UID=1001 \
Expand Down
2 changes: 1 addition & 1 deletion ci/tests/e2e-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ test_operator() {
fi

# verify that the metrics endpoint exists
if ! timeout 1m bash -c -- "until kubectl run -i --rm --restart=Never test-metrics --image=registry.access.redhat.com/ubi8/ubi-minimal:latest -- curl -sfo /dev/null http://nginx-operator-metrics:8383/metrics; do sleep 1; done";
if ! timeout 1m bash -c -- "until kubectl run -i --rm --restart=Never test-metrics --image=registry.access.redhat.com/ubi7/ubi-minimal:latest -- curl -sfo /dev/null http://nginx-operator-metrics:8383/metrics; do sleep 1; done";
then
echo "Failed to verify that metrics endpoint exists"
kubectl logs deployment/nginx-operator
Expand Down
4 changes: 2 additions & 2 deletions hack/tests/e2e-helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test_operator() {
fi

# verify that the metrics endpoint exists
if ! timeout 1m bash -c -- "until kubectl run -it --rm --restart=Never test-metrics --image=registry.access.redhat.com/ubi8/ubi-minimal:latest -- curl -sfo /dev/null http://nginx-operator-metrics:8383/metrics; do sleep 1; done";
if ! timeout 1m bash -c -- "until kubectl run -it --rm --restart=Never test-metrics --image=registry.access.redhat.com/ubi7/ubi-minimal:latest -- curl -sfo /dev/null http://nginx-operator-metrics:8383/metrics; do sleep 1; done";
then
echo "Failed to verify that metrics endpoint exists"
kubectl logs deployment/nginx-operator
Expand All @@ -59,7 +59,7 @@ test_operator() {
fi

# verify that the custom resource metrics endpoint exists
if ! timeout 1m bash -c -- "until kubectl run -it --rm --restart=Never test-cr-metrics --image=registry.access.redhat.com/ubi8/ubi-minimal:latest -- curl -sfo /dev/null http://nginx-operator-metrics:8686/metrics; do sleep 1; done";
if ! timeout 1m bash -c -- "until kubectl run -it --rm --restart=Never test-cr-metrics --image=registry.access.redhat.com/ubi7/ubi-minimal:latest -- curl -sfo /dev/null http://nginx-operator-metrics:8686/metrics; do sleep 1; done";
then
echo "Failed to verify that custom resource metrics endpoint exists"
kubectl logs deployment/nginx-operator
Expand Down
2 changes: 1 addition & 1 deletion images/scorecard-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Base image
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi7/ubi-minimal:latest

ENV PROXY=/usr/local/bin/scorecard-proxy \
USER_UID=1001 \
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/scaffold/build_dockerfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (s *Dockerfile) GetInput() (input.Input, error) {
return s.Input, nil
}

const dockerfileTmpl = `FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
const dockerfileTmpl = `FROM registry.access.redhat.com/ubi7/ubi-minimal:latest
ENV OPERATOR=/usr/local/bin/{{.ProjectName}} \
USER_UID=1001 \
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/scaffold/build_dockerfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestDockerfile(t *testing.T) {
}
}

const dockerfileExp = `FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
const dockerfileExp = `FROM registry.access.redhat.com/ubi7/ubi-minimal:latest
ENV OPERATOR=/usr/local/bin/app-operator \
USER_UID=1001 \
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/scaffold/helm/dockerfilehybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (d *DockerfileHybrid) GetInput() (input.Input, error) {
return d.Input, nil
}

const dockerFileHybridHelmTmpl = `FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
const dockerFileHybridHelmTmpl = `FROM registry.access.redhat.com/ubi7/ubi-minimal:latest
ENV OPERATOR=/usr/local/bin/helm-operator \
USER_UID=1001 \
Expand Down

0 comments on commit 8d80fb6

Please sign in to comment.