Commit a1a9cbb 1 parent 7e5b864 commit a1a9cbb Copy full SHA for a1a9cbb
File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -73,19 +73,22 @@ $ operator-sdk add api --api-version=app.example.com/v1alpha1 --kind=AppService
73
73
# Add a new controller that watches for AppService
74
74
$ operator-sdk add controller --api-version=app.example.com/v1alpha1 --kind=AppService
75
75
76
+ # Set the username variable
77
+ $ export USERNAME=< username>
78
+
76
79
# 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
78
81
79
82
# Login to public registry such as quay.io
80
83
$ docker login quay.io
81
84
82
85
# Push image
83
- $ docker push quay.io/< username > /app-operator
86
+ $ docker push quay.io/$USERNAME /app-operator
84
87
85
88
# 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
87
90
# 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
89
92
90
93
# Setup Service Account
91
94
$ kubectl create -f deploy/service_account.yaml
You can’t perform that action at this time.
0 commit comments