Skip to content

Commit

Permalink
internal,images,doc: update base image to ubi7/ubi-minimal:latest (#1376
Browse files Browse the repository at this point in the history
)

* internal,images,doc: update base image to ubi7/ubi-minimal:latest

* CHANGELOG.md: add line for base image change (#1376)
  • Loading branch information
joelanford authored May 2, 2019
1 parent 0698d81 commit b2ca193
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Reduces Helm release information in CR status to only the release name and manifest and moves it from `status.conditions` to a new top-level `deployedRelease` field. ([#1309](https://github.com/operator-framework/operator-sdk/pull/1309))
- **WARNING**: Users with active CRs and releases who are upgrading their helm-based operator should upgrade to one based on v0.7.0 before upgrading further. Helm operators based on v0.8.0+ will not seamlessly transition release state to the persistent backend, and will instead uninstall and reinstall all managed releases.
- Go operator CRDs are overwritten when being regenerated by [`operator-sdk generate openapi`](https://github.com/operator-framework/operator-sdk/blob/master/doc/sdk-cli-reference.md#openapi). Users can now rely on `+kubebuilder` annotations in their API code, which provide access to most OpenAPIv3 [validation properties](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schema-object) (the full set will be supported in the near future, see [this PR](https://github.com/kubernetes-sigs/controller-tools/pull/190)) and [other CRD fields](https://book.kubebuilder.io/beyond_basics/generating_crd.html). ([#1278](https://github.com/operator-framework/operator-sdk/pull/1278))
- Use `registry.access.redhat.com/ubi7/ubi-minimal:latest` base image for the Go and Helm operators and scorecard proxy ([#1376](https://github.com/operator-framework/operator-sdk/pull/1376))

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion doc/sdk-cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ building example-operator...

building container quay.io/example/operator:v0.0.1...
Sending build context to Docker daemon 163.9MB
Step 1/4 : FROM registry.access.redhat.com/ubi7-dev-preview/ubi-minimal:7.6
Step 1/4 : FROM registry.access.redhat.com/ubi7/ubi-minimal:latest
---> 77144d8c6bdc
Step 2/4 : ADD tmp/_output/bin/example-operator /usr/local/bin/example-operator
---> 2ada0d6ca93c
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/ubi7-dev-preview/ubi-minimal:7.6
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/ubi7-dev-preview/ubi-minimal:7.6
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/ubi7-dev-preview/ubi-minimal:7.6
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/ubi7-dev-preview/ubi-minimal:7.6
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 b2ca193

Please sign in to comment.