Skip to content

Commit

Permalink
Rm image prep from OSDK Ansible/Helm guide
Browse files Browse the repository at this point in the history
  • Loading branch information
adellape committed Jul 1, 2021
1 parent 2d458fa commit 8debe58
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
41 changes: 0 additions & 41 deletions modules/osdk-prepare-supported-images.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ ifeval::["{context}" == "osdk-golang-tutorial"]
:golang:
:type: Go
endif::[]
ifeval::["{context}" == "osdk-ansible-tutorial"]
:ansible:
:type: Ansible
:type_lc: ansible
endif::[]
ifeval::["{context}" == "osdk-helm-tutorial"]
:helm:
:type: Helm
:type_lc: helm
endif::[]

[id="osdk-prepare-supported-images_{context}"]
= Preparing your Operator to use supported images
Expand All @@ -45,27 +35,6 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
. Depending on the Go project version, your Dockerfile might contain a `USER 65532:65532` or `USER nonroot:nonroot` directive. In either case, remove the line, as it is not required by the supported runner image.
endif::[]

ifdef::ansible,helm[]
. Update the project root-level Dockerfile to use supported images. Change the default builder image reference from:
+
[source,terminal,subs="attributes+"]
----
FROM quay.io/operator-framework/{type_lc}-operator:{osdk_ver}
----
+
to:
+
[source,terminal,subs="attributes+"]
----
FROM registry.redhat.io/openshift4/ose-{type_lc}-operator:v{product-version}
----
+
[IMPORTANT]
====
Use the builder image version that matches your Operator SDK version. Failure to do so can result in problems due to project layout, or _scaffolding_, differences, particularly when mixing newer upstream versions of the Operator SDK with downstream {product-title} builder images.
====
endif::[]

. In the `config/default/manager_auth_proxy_patch.yaml` file, change the `image` value from:
+
[source,terminal]
Expand All @@ -85,13 +54,3 @@ ifeval::["{context}" == "osdk-golang-tutorial"]
:!golang:
:!type:
endif::[]
ifeval::["{context}" == "osdk-ansible-tutorial"]
:!ansible:
:!type:
:!type_lc:
endif::[]
ifeval::["{context}" == "osdk-helm-tutorial"]
:!helm:
:!type:
:!type_lc:
endif::[]
1 change: 0 additions & 1 deletion operators/operator_sdk/ansible/osdk-ansible-tutorial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ include::modules/osdk-ansible-modify-manager.adoc[leveloffset=+1]

include::modules/osdk-run-operator.adoc[leveloffset=+1]
include::modules/osdk-run-locally.adoc[leveloffset=+2]
include::modules/osdk-prepare-supported-images.adoc[leveloffset=+2]
include::modules/osdk-run-deployment.adoc[leveloffset=+2]

[id="osdk-bundle-deploy-olm_{context}"]
Expand Down
1 change: 0 additions & 1 deletion operators/operator_sdk/helm/osdk-helm-tutorial.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ include::modules/osdk-helm-modify-cr.adoc[leveloffset=+2]

include::modules/osdk-run-operator.adoc[leveloffset=+1]
include::modules/osdk-run-locally.adoc[leveloffset=+2]
include::modules/osdk-prepare-supported-images.adoc[leveloffset=+2]
include::modules/osdk-run-deployment.adoc[leveloffset=+2]

[id="osdk-bundle-deploy-olm_{context}"]
Expand Down

0 comments on commit 8debe58

Please sign in to comment.