Skip to content

Commit f9cb4c7

Browse files
Shamsher Ansaricamilamacedo86
Shamsher Ansari
authored andcommitted
Update README.md (#2317)
To [avoid confusion for new user](#1337) trying `operator-sdk`, Improve README and replace `example` with `<username>`. Also add step to login to public registry like quay.io. If user is not logged in through CLI, He will face following error `quay unauthorized: access to the requested resource is not authorized` After login push work seamlessly.
1 parent cea92d5 commit f9cb4c7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,18 @@ $ operator-sdk add api --api-version=app.example.com/v1alpha1 --kind=AppService
7474
$ operator-sdk add controller --api-version=app.example.com/v1alpha1 --kind=AppService
7575

7676
# Build and push the app-operator image to a public registry such as quay.io
77-
$ operator-sdk build quay.io/example/app-operator
78-
$ docker push quay.io/example/app-operator
77+
$ operator-sdk build quay.io/<username>/app-operator
78+
79+
# Login to public registry such as quay.io
80+
$ docker login quay.io
81+
82+
# Push image
83+
$ docker push quay.io/<username>/app-operator
7984

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

8590
# Setup Service Account
8691
$ kubectl create -f deploy/service_account.yaml

0 commit comments

Comments
 (0)