Skip to content

Commit a1a9cbb

Browse files
Updated README.md with new envvar to make clear how push the image
Signed-off-by: Eran Cohen <[email protected]> Co-authored-by: Camila Macedo <[email protected]>
1 parent 7e5b864 commit a1a9cbb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,22 @@ $ operator-sdk add api --api-version=app.example.com/v1alpha1 --kind=AppService
7373
# Add a new controller that watches for AppService
7474
$ operator-sdk add controller --api-version=app.example.com/v1alpha1 --kind=AppService
7575

76+
# Set the username variable
77+
$ export USERNAME=<username>
78+
7679
# Build and push the app-operator image to a public registry such as quay.io
77-
$ operator-sdk build quay.io/<username>/app-operator
80+
$ operator-sdk build quay.io/$USERNAME/app-operator
7881

7982
# Login to public registry such as quay.io
8083
$ docker login quay.io
8184

8285
# Push image
83-
$ docker push quay.io/<username>/app-operator
86+
$ docker push quay.io/$USERNAME/app-operator
8487

8588
# Update the operator manifest to use the built image name (if you are performing these steps on OSX, see note below)
86-
$ sed -i 's|REPLACE_IMAGE|quay.io/<username>/app-operator|g' deploy/operator.yaml
89+
$ sed -i "s|REPLACE_IMAGE|quay.io/$USERNAME/app-operator|g" deploy/operator.yaml
8790
# On OSX use:
88-
$ sed -i "" 's|REPLACE_IMAGE|quay.io/<username>/app-operator|g' deploy/operator.yaml
91+
$ sed -i "" "s|REPLACE_IMAGE|quay.io/$USERNAME/app-operator|g" deploy/operator.yaml
8992

9093
# Setup Service Account
9194
$ kubectl create -f deploy/service_account.yaml

0 commit comments

Comments
 (0)