This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git

commit 4eeb5bbafbc1a4d771f1d3a6fe80e0eed13d922f
Author: Michele Sciabarra <[email protected]>
AuthorDate: Fri Jul 12 16:45:34 2024 +0200

    kaniko build
---
 README.md            | 33 ++++++++++++++++++++++-----------
 Taskfile.yml         |  1 +
 kaniko-build.yaml    |  2 +-
 operator-deploy.yaml |  3 ++-
 4 files changed, 26 insertions(+), 13 deletions(-)

diff --git a/README.md b/README.md
index 4f61e6c..9c6b326 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,28 @@
 # Apache OpenServerless Operator
 
-In this readme there are informations for developer, please refer to the 
[website](https://openserverless.apache.org) for more informations.
+In this readme there are informations for developers. 
 
+We describe how to build and test the operator in our development environment
+
+Please refer to the [website](https://openserverless.apache.org) for user 
informations.
+
+## How to build and use an operator image
+
+Ensure you have satified the prerequisites below. Most notably, you need to 
use our development virtual machine and you need write access to a github 
repository repository.
+
+Once you have satisfied the prerequisites, you can build an image you can use 
in the development machine.
+
+Build an image with `task build`. 
+
+Please note the it will build the image locally and push in an internal 
registry, even if it is name is 
`ghcr.io/${GITHUB_USER}/openserverless-operator`.
+
+To be able to build, the task `build` will commit and push all your changes 
and then build the operator from the public sources in your local k3s.
+
+It will also generate
+
+You can then deploy it with `task deploy`.
+
+Once you have finished  with development you can create a publici image with 
`task publish` that will publish the tag and trigger a creation of the image.
 
 ## Prerequisites
 
@@ -24,13 +45,3 @@ git branch -u 
https://github.com/<GITHUB_USERNAME>/openserverless-operator
 
 That's it. Now you can use `task build` to build the image
 
-## How to build and use an operator image
-
-Ensure you have satified the prerequisites.
-
-Note you need write access to a github repository repository.
-
-The task build will commit and push all your changes and then build the 
operator from the public sources in your local k3s.
-
-Build your operator with: `task build`
-
diff --git a/Taskfile.yml b/Taskfile.yml
index 90f8cd9..4bfdb2f 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -74,3 +74,4 @@ tasks:
     cmds:
     - envsubst  <operator-deploy.yaml >_operator-deploy.yaml
     - kubectl apply -f _operator-deploy.yaml
+
diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index 75acab7..b5d1a9c 100644
--- a/kaniko-build.yaml
+++ b/kaniko-build.yaml
@@ -14,7 +14,7 @@ spec:
         image: gcr.io/kaniko-project/executor:latest
         args: 
           - --context=git://github.com/${GITHUB_USER}/openserverless-operator
-          - 
--destination=docker-registry.kube-system.svc.cluster.local:5000/apache/openserverless-operator:${TAG}
+          - 
--destination=docker-registry.kube-system.svc.cluster.local:5000/${GITHUB_USER}/openserverless-operator:${TAG}
           - --insecure
           - --insecure-registry=docker-registry
       restartPolicy: Never
\ No newline at end of file
diff --git a/operator-deploy.yaml b/operator-deploy.yaml
index c27e0a8..7a1f2a9 100644
--- a/operator-deploy.yaml
+++ b/operator-deploy.yaml
@@ -6,4 +6,5 @@ metadata:
 spec:
   containers:
   - name: dummy-operator
-    image: ghcr.io/apache/openserverless-operator:$TAG
+    #image: ghcr.io/${GITHUB_USER}/openserverless-operator:$TAG
+    image: 
\ No newline at end of file

Reply via email to