You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openserverless.apache.org by ms...@apache.org on 2024/07/13 12:19:17 UTC
(openserverless-operator) branch main updated (307f6b9 -> e8138a4)
This is an automated email from the ASF dual-hosted git repository.
msciabarra pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git
from 307f6b9 parametrized kaniko
new f14390e 0.1-dev.2407121006
new e48863c 0.1-dev.2407121040
new 04feec8 0.1-dev.2407121042
new 07b60e8 0.1-dev.2407121056
new f1e1f79 0.1-dev.2407121101
new 7ada01e 0.1-dev.2407121105
new 78bc798 0.1-dev.2407121123
new 0b89e62 0.1-dev.2407121129
new 545dc55 0.1-dev.2407121343
new 0fef1c3 0.1-dev.2407121345
new 2784dd8 0.1-dev.2407121346
new bf7e52e 0.1-dev.2407121350
new 4905064 0.1-dev.2407121350
new 6043079 0.1-dev.2407121351
new f468fa9 0.1-dev.2407121353
new c5713f3 0.1-dev.2407121353
new 062ceb3 0.1-dev.2407121409
new 0830efa 0.1-dev.2407121415
new 123d474 0.1-dev.2407121416
new 289484f 0.1-dev.2407121421
new 2b89dc9 0.1-dev.2407121422
new d81adc8 0.1-dev.2407121444
new 8cab28e fixed local registry
new 4eeb5bb kaniko build
new e8138a4 operator-deploy
The 25 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
Dockerfile | 1 +
README.md | 46 +++++++++++++++++++++++++++++++++++++
Taskfile.yml | 64 ++++++++++++++++++++++++++++++++++++++++++++--------
kaniko-build.yaml | 20 ++++++++++++++++
kaniko.yaml | 26 ---------------------
operator-deploy.yaml | 9 ++++++++
registries.yaml | 5 ++++
7 files changed, 136 insertions(+), 35 deletions(-)
create mode 100644 kaniko-build.yaml
delete mode 100644 kaniko.yaml
create mode 100644 operator-deploy.yaml
create mode 100644 registries.yaml
(openserverless-operator) 04/25: 0.1-dev.2407121056
Posted by ms...@apache.org.
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 07b60e823a50a74b5c2b717b27718b90c917c7e7
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 11:01:02 2024 +0200
0.1-dev.2407121056
---
Taskfile.yml | 10 +++++-----
kaniko.yaml => kaniko-build.yaml | 14 +-------------
2 files changed, 6 insertions(+), 18 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index f8ab902..477f2ed 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -37,12 +37,12 @@ tasks:
TAG: "{{.TAG}}"
cmds:
- test -n "$GITHUB_USER" || true "did you configure your .env?"
- - envsubst <kaniko.yaml >_kaniko.yaml
- - cat _kaniko.yaml
- - kubectl -n default delete pod/kaniko || true
- - kubectl apply -f _kaniko.yaml
+ - envsubst <kaniko-build.yaml >_kaniko-build.yaml
+ - kubectl -n default delete pod/kaniko-build || true
+ - kubectl apply -f _kaniko-build.yaml
build:
- task: install-registry
- task: tag-commit-push
- - task: kaniko-build
\ No newline at end of file
+ - task: kaniko-build
+ - kubectl -n default logs kaniko-build -f
\ No newline at end of file
diff --git a/kaniko.yaml b/kaniko-build.yaml
similarity index 59%
rename from kaniko.yaml
rename to kaniko-build.yaml
index eeac3f4..e753ed2 100644
--- a/kaniko.yaml
+++ b/kaniko-build.yaml
@@ -1,26 +1,14 @@
apiVersion: v1
kind: Pod
metadata:
- name: kaniko
+ name: kaniko-build
namespace: default
spec:
containers:
- name: kaniko
- #image: busybox
- #command:
- #- sleep
- #- inf
image: gcr.io/kaniko-project/executor:latest
args:
- --context=git://github.com/${GITHUB_USER}/openserverless-operator
- --destination=docker-registry:5000/openserverless/operator:${TAG}
- --insecure
- --insecure-registry=docker-registry
- volumeMounts:
- - name: config-volume
- mountPath: /context
- restartPolicy: Never
- volumes:
- - name: config-volume
- configMap:
- name: dockerfile-configmap
(openserverless-operator) 08/25: 0.1-dev.2407121129
Posted by ms...@apache.org.
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 0b89e62d24024e28c9aa876aa4e93419b0c20555
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 13:43:39 2024 +0200
0.1-dev.2407121129
---
Taskfile.yml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index ee4fa3d..578cab0 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -23,9 +23,13 @@ tasks:
desc: install a local registry
cmds:
- helm repo add twuni https://helm.twun.io
- - helm install docker-registry twuni/docker-registry --namespace default
+ - >
+ helm install docker-registry twuni/docker-registry
+ --namespace default
+ --set service.type=NodePort
+ --set service.nodePort=30050
status:
- - kubectl -n default get po -l app=docker-registry
+ - kubectl -n default get po -l app=docker-registry | grep docker-registry
tag-commit-push:
desc: tag, commit and push to your default upstream repo (see README.md)
(openserverless-operator) 20/25: 0.1-dev.2407121421
Posted by ms...@apache.org.
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 289484f23787aa75d8d620ca9ba7b750be22655a
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 14:22:07 2024 +0200
0.1-dev.2407121421
---
Taskfile.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 5e0b409..8bafb9c 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -15,7 +15,7 @@ tasks:
silent: true
desc: generate a new tag based on the current time
cmds:
- - git tag -d $(git tag)
+ - git tag -d $(git tag) || true
- git tag -f {{.BASETAG}}.$(date +%y%m%d%H%M)
- env PAGER= git tag
(openserverless-operator) 24/25: kaniko build
Posted by ms...@apache.org.
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 <ms...@apache.org>
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
(openserverless-operator) 06/25: 0.1-dev.2407121105
Posted by ms...@apache.org.
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 7ada01eb758fb5853f78b2498a468f4dea25fcc6
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 11:23:35 2024 +0200
0.1-dev.2407121105
---
README.md | 1 +
Taskfile.yml | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/README.md b/README.md
index cabe30b..4f61e6c 100644
--- a/README.md
+++ b/README.md
@@ -32,4 +32,5 @@ 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 37ad32b..ee4fa3d 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -57,3 +57,11 @@ tasks:
- task: tag-commit-push
- task: kaniko-build
- task: kaniko-logs
+
+ deploy:
+ desc: deploy the current operator image
+ env:
+ TAG: "{{.TAG}}"
+ cmds:
+ - envsubst <operator-deploy.yaml >_operator-deploy.yaml
+ - kubectl apply -f _operator-deploy.yaml
(openserverless-operator) 22/25: 0.1-dev.2407121444
Posted by ms...@apache.org.
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 d81adc88b0d1977275cd051e01c4d64921fbb0f9
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 14:45:02 2024 +0200
0.1-dev.2407121444
---
Taskfile.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index a0865bd..a138809 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -33,8 +33,8 @@ tasks:
desc: tag, commit and push to your default upstream repo (see README.md)
cmds:
- task: tag
- - git commit -m "{{.TAG}}" -a
- - git push
+ - git commit -m "{{.TAG}}" -a || true
+ - git push || true
kaniko-build:
desc: build in current kubernetes with Kaniko
(openserverless-operator) 07/25: 0.1-dev.2407121123
Posted by ms...@apache.org.
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 78bc7984efa20218e3d03e98399db1407444b0af
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 11:28:23 2024 +0200
0.1-dev.2407121123
---
kaniko-build.yaml | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index e753ed2..36993d8 100644
--- a/kaniko-build.yaml
+++ b/kaniko-build.yaml
@@ -1,14 +1,17 @@
apiVersion: v1
-kind: Pod
+kind: Job
metadata:
name: kaniko-build
namespace: default
spec:
- containers:
- - name: kaniko
- image: gcr.io/kaniko-project/executor:latest
- args:
- - --context=git://github.com/${GITHUB_USER}/openserverless-operator
- - --destination=docker-registry:5000/openserverless/operator:${TAG}
- - --insecure
- - --insecure-registry=docker-registry
+ template:
+ spec:
+ containers:
+ - name: kaniko
+ image: gcr.io/kaniko-project/executor:latest
+ args:
+ - --context=git://github.com/${GITHUB_USER}/openserverless-operator
+ - --destination=docker-registry:5000/openserverless/operator:${TAG}
+ - --insecure
+ - --insecure-registry=docker-registry
+ restartPolicy: Never
\ No newline at end of file
(openserverless-operator) 11/25: 0.1-dev.2407121346
Posted by ms...@apache.org.
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 2784dd8fa3d07d9ec22520acc6cc5d3856977b44
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 13:49:26 2024 +0200
0.1-dev.2407121346
---
Taskfile.yml | 4 ++--
kaniko-build.yaml | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 2884760..9cbd2a1 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -45,9 +45,9 @@ tasks:
cmds:
- test -n "$GITHUB_USER" || true "did you configure your .env?"
- envsubst <kaniko-build.yaml >_kaniko-build.yaml
- #- kubectl -n default delete pod/kaniko-build || true
+ - kubectl -n default delete job/kaniko-build || true
- kubectl apply -f _kaniko-build.yaml
- - kubectl wait --for=condition=ready pod/kaniko-build -n default --timeout=600s
+ - kubectl wait --for=condition=ready -l app=kaniko-build -n default --timeout=600s
kaniko-logs:
desc: show logs of the build
diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index ddef505..4150614 100644
--- a/kaniko-build.yaml
+++ b/kaniko-build.yaml
@@ -9,6 +9,8 @@ spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
+ label:
+ app: kaniko-build
args:
- --context=git://github.com/${GITHUB_USER}/openserverless-operator
- --destination=docker-registry:5000/openserverless/operator:${TAG}
(openserverless-operator) 01/25: 0.1-dev.2407121006
Posted by ms...@apache.org.
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 f14390e9d9c41a583bde41d91ec8e4d3e1cf7de1
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 10:40:42 2024 +0200
0.1-dev.2407121006
---
README.md | 34 ++++++++++++++++++++++++++++++++++
Taskfile.yml | 8 ++++++++
2 files changed, 42 insertions(+)
diff --git a/README.md b/README.md
index 81160d5..cabe30b 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,35 @@
# Apache OpenServerless Operator
+
+In this readme there are informations for developer, please refer to the [website](https://openserverless.apache.org) for more informations.
+
+
+## Prerequisites
+
+1. Please setup and use a development VM [as described here](https://github.com/apache/openserverless)
+
+2. With VSCode, access to the development VM, open the workspace `openserverless/openserverless.code-orkspace` and then open a terminal with `operator` subproject e enabling the nix enviroment with direnv (the vm provides those).
+
+3. Create a fork of `githbub.com/apache/openserverless-operator`
+
+4. Copy .env.dist in .env and put your github username in it
+
+5. Since the build requires you push your sources in your repo, you need the credentials to access it. The fastest way is to [create a personal token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
+
+6. Now setup a remote to access your repo and set it as your default upstream branch.
+
+```
+git remote add fork https://<GITHUB_USERNAME>:<GITHUB_TOKEN>@github.com/<GITHUB_USERNAME>/openserverless-operator
+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.
+
+
diff --git a/Taskfile.yml b/Taskfile.yml
index e082a4d..cbdf1fb 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -17,8 +17,16 @@ tasks:
- env PAGER= git tag
install-registry:
+ cmds:
- helm repo add twuni https://helm.twun.io
- helm install docker-registry twuni/docker-registry --namespace default
+ status:
+ - kubectl -n default get po -l app=docker-registry
+
+ tag-commit-push:
+ - task tag
+ - git commit -m "{{.TAG}}" -a
+ - git push
build:
env:
(openserverless-operator) 03/25: 0.1-dev.2407121042
Posted by ms...@apache.org.
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 04feec8d48a14bdc1ebd8a65d03db3c635198e71
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 10:56:27 2024 +0200
0.1-dev.2407121042
---
Dockerfile | 1 +
Taskfile.yml | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index bc7ee4f..727b7ce 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,4 @@
FROM ubuntu:22.04
+RUN apt-get update && apt-get -y install curl
RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/bin
CMD sleep inf
diff --git a/Taskfile.yml b/Taskfile.yml
index 400ec43..f8ab902 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -39,5 +39,10 @@ tasks:
- test -n "$GITHUB_USER" || true "did you configure your .env?"
- envsubst <kaniko.yaml >_kaniko.yaml
- cat _kaniko.yaml
- #- kubectl -n default create configmap dockerfile-configmap --from-file=Dockerfile
- #- kubectl apply -f kaniko.yaml
\ No newline at end of file
+ - kubectl -n default delete pod/kaniko || true
+ - kubectl apply -f _kaniko.yaml
+
+ build:
+ - task: install-registry
+ - task: tag-commit-push
+ - task: kaniko-build
\ No newline at end of file
(openserverless-operator) 25/25: operator-deploy
Posted by ms...@apache.org.
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 e8138a4f9689a94f8317ae106c3a9c1b75224785
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 16:50:18 2024 +0200
operator-deploy
---
operator-deploy.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/operator-deploy.yaml b/operator-deploy.yaml
index 7a1f2a9..9d9c459 100644
--- a/operator-deploy.yaml
+++ b/operator-deploy.yaml
@@ -6,5 +6,4 @@ metadata:
spec:
containers:
- name: dummy-operator
- #image: ghcr.io/${GITHUB_USER}/openserverless-operator:$TAG
- image:
\ No newline at end of file
+ image: ghcr.io/$GITHUB_USER/openserverless-operator:$TAG
(openserverless-operator) 19/25: 0.1-dev.2407121416
Posted by ms...@apache.org.
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 123d4748a19879ef8f102dc9ca9c3833e7a87f7e
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 14:16:48 2024 +0200
0.1-dev.2407121416
---
operator-deploy.yaml | 9 +++++++++
registries.yaml | 5 +++++
2 files changed, 14 insertions(+)
diff --git a/operator-deploy.yaml b/operator-deploy.yaml
new file mode 100644
index 0000000..c27e0a8
--- /dev/null
+++ b/operator-deploy.yaml
@@ -0,0 +1,9 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: dummy-operator
+ namespace: default
+spec:
+ containers:
+ - name: dummy-operator
+ image: ghcr.io/apache/openserverless-operator:$TAG
diff --git a/registries.yaml b/registries.yaml
new file mode 100644
index 0000000..ac1fa83
--- /dev/null
+++ b/registries.yaml
@@ -0,0 +1,5 @@
+mirrors:
+ ghcr.io:
+ endpoint:
+ - "http://localhost:30050"
+
(openserverless-operator) 17/25: 0.1-dev.2407121409
Posted by ms...@apache.org.
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 062ceb3531cf91d9bf9cc424fce824b0ca51746f
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 14:15:16 2024 +0200
0.1-dev.2407121409
---
Taskfile.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index d219848..841608c 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -51,7 +51,7 @@ tasks:
- kubectl apply -f _kaniko-build.yaml
- kubectl wait po --for=condition=ready -l app=kaniko-build -n default
- kaniko-logs:
+ build-logs:
desc: show logs of the build
cmds:
- kubectl -n default logs -l app=kaniko-build -f
(openserverless-operator) 09/25: 0.1-dev.2407121343
Posted by ms...@apache.org.
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 545dc55c9fd15cbf7f436eb0bd95849320e24204
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 13:45:59 2024 +0200
0.1-dev.2407121343
---
Taskfile.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 578cab0..2884760 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -45,7 +45,7 @@ tasks:
cmds:
- test -n "$GITHUB_USER" || true "did you configure your .env?"
- envsubst <kaniko-build.yaml >_kaniko-build.yaml
- - kubectl -n default delete pod/kaniko-build || true
+ #- kubectl -n default delete pod/kaniko-build || true
- kubectl apply -f _kaniko-build.yaml
- kubectl wait --for=condition=ready pod/kaniko-build -n default --timeout=600s
(openserverless-operator) 23/25: fixed local registry
Posted by ms...@apache.org.
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 8cab28eebc6f649713d4c627e3eb53269063a05f
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 16:23:22 2024 +0200
fixed local registry
---
Taskfile.yml | 15 +++++++++++----
registries.yaml | 2 +-
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index a138809..90f8cd9 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -2,7 +2,7 @@ version: 3
vars:
BASETAG: 0.1-dev
TAG:
- sh: git describe --tags --abbrev=0 2>/dev/null || echo latest
+
dotenv:
- .env
@@ -25,7 +25,12 @@ tasks:
- sudo cp registries.yaml /etc/rancher/k3s/registries.yaml
- sudo systemctl restart k3s
- helm repo add twuni https://helm.twun.io
- - helm install docker-registry twuni/docker-registry --namespace kube-system
+ - >
+ helm install docker-registry twuni/docker-registry
+ --namespace kube-system
+ --set image.tag=2.8.3
+ --set service.type=NodePort
+ --set service.nodePort=30050
status:
- kubectl -n kube-system get po -l app=docker-registry | grep docker-registry
@@ -39,7 +44,8 @@ tasks:
kaniko-build:
desc: build in current kubernetes with Kaniko
env:
- TAG: "{{.TAG}}"
+ TAG:
+ sh: git describe --tags --abbrev=0 2>/dev/null || echo latest
cmds:
- test -n "$GITHUB_USER" || true "did you configure your .env?"
- envsubst <kaniko-build.yaml >_kaniko-build.yaml
@@ -63,7 +69,8 @@ tasks:
deploy:
desc: deploy the current operator image
env:
- TAG: "{{.TAG}}"
+ TAG:
+ sh: git describe --tags --abbrev=0 2>/dev/null || echo latest
cmds:
- envsubst <operator-deploy.yaml >_operator-deploy.yaml
- kubectl apply -f _operator-deploy.yaml
diff --git a/registries.yaml b/registries.yaml
index c61a0f2..390bda0 100644
--- a/registries.yaml
+++ b/registries.yaml
@@ -1,5 +1,5 @@
mirrors:
ghcr.io:
endpoint:
- - "http://docker-registry.kube-system.svc.cluster.local:5000"
+ - "http://127.0.0.1:30050"
(openserverless-operator) 21/25: 0.1-dev.2407121422
Posted by ms...@apache.org.
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 2b89dc9a255e2450ceff9b9328a91d075a9486bc
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 14:35:29 2024 +0200
0.1-dev.2407121422
---
Taskfile.yml | 8 ++------
kaniko-build.yaml | 2 +-
registries.yaml | 2 +-
3 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 8bafb9c..a0865bd 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -25,13 +25,9 @@ tasks:
- sudo cp registries.yaml /etc/rancher/k3s/registries.yaml
- sudo systemctl restart k3s
- helm repo add twuni https://helm.twun.io
- - >
- helm install docker-registry twuni/docker-registry
- --namespace default
- --set service.type=NodePort
- --set service.nodePort=30050
+ - helm install docker-registry twuni/docker-registry --namespace kube-system
status:
- - kubectl -n default get po -l app=docker-registry | grep docker-registry
+ - kubectl -n kube-system get po -l app=docker-registry | grep docker-registry
tag-commit-push:
desc: tag, commit and push to your default upstream repo (see README.md)
diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index 846e77e..75acab7 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:5000/apache/openserverless-operator:${TAG}
+ - --destination=docker-registry.kube-system.svc.cluster.local:5000/apache/openserverless-operator:${TAG}
- --insecure
- --insecure-registry=docker-registry
restartPolicy: Never
\ No newline at end of file
diff --git a/registries.yaml b/registries.yaml
index ac1fa83..c61a0f2 100644
--- a/registries.yaml
+++ b/registries.yaml
@@ -1,5 +1,5 @@
mirrors:
ghcr.io:
endpoint:
- - "http://localhost:30050"
+ - "http://docker-registry.kube-system.svc.cluster.local:5000"
(openserverless-operator) 12/25: 0.1-dev.2407121350
Posted by ms...@apache.org.
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 bf7e52e5f1b4f602e6a5cb251335da488873bb75
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 13:50:27 2024 +0200
0.1-dev.2407121350
---
kaniko-build.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index 4150614..6ee4f82 100644
--- a/kaniko-build.yaml
+++ b/kaniko-build.yaml
@@ -9,7 +9,7 @@ spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
- label:
+ labels:
app: kaniko-build
args:
- --context=git://github.com/${GITHUB_USER}/openserverless-operator
(openserverless-operator) 05/25: 0.1-dev.2407121101
Posted by ms...@apache.org.
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 f1e1f79b3fac2b4c90f762b6700751dac85142eb
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 11:05:56 2024 +0200
0.1-dev.2407121101
---
Taskfile.yml | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 477f2ed..37ad32b 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -28,11 +28,14 @@ tasks:
- kubectl -n default get po -l app=docker-registry
tag-commit-push:
- - task: tag
- - git commit -m "{{.TAG}}" -a
- - git push
+ desc: tag, commit and push to your default upstream repo (see README.md)
+ cmds:
+ - task: tag
+ - git commit -m "{{.TAG}}" -a
+ - git push
kaniko-build:
+ desc: build in current kubernetes with Kaniko
env:
TAG: "{{.TAG}}"
cmds:
@@ -40,9 +43,17 @@ tasks:
- envsubst <kaniko-build.yaml >_kaniko-build.yaml
- kubectl -n default delete pod/kaniko-build || true
- kubectl apply -f _kaniko-build.yaml
+ - kubectl wait --for=condition=ready pod/kaniko-build -n default --timeout=600s
+
+ kaniko-logs:
+ desc: show logs of the build
+ cmds:
+ - kubectl -n default logs kaniko-build -f
build:
+ desc: build the operator image
+ cmds:
- task: install-registry
- task: tag-commit-push
- task: kaniko-build
- - kubectl -n default logs kaniko-build -f
\ No newline at end of file
+ - task: kaniko-logs
(openserverless-operator) 02/25: 0.1-dev.2407121040
Posted by ms...@apache.org.
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 e48863ce03b529577311eb4afb17930eaa74f258
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 10:42:33 2024 +0200
0.1-dev.2407121040
---
Taskfile.yml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index cbdf1fb..400ec43 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -9,14 +9,18 @@ dotenv:
tasks:
+ default: task -l
+
tag:
silent: true
+ desc: generate a new tag based on the current time
cmds:
- git tag -d $(git tag)
- git tag -f {{.BASETAG}}.$(date +%y%m%d%H%M)
- env PAGER= git tag
install-registry:
+ desc: install a local registry
cmds:
- helm repo add twuni https://helm.twun.io
- helm install docker-registry twuni/docker-registry --namespace default
@@ -24,11 +28,11 @@ tasks:
- kubectl -n default get po -l app=docker-registry
tag-commit-push:
- - task tag
+ - task: tag
- git commit -m "{{.TAG}}" -a
- git push
- build:
+ kaniko-build:
env:
TAG: "{{.TAG}}"
cmds:
(openserverless-operator) 16/25: 0.1-dev.2407121353
Posted by ms...@apache.org.
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 c5713f3279a45984f1c458f0767008667ccc0d8b
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 14:09:12 2024 +0200
0.1-dev.2407121353
---
Taskfile.yml | 2 ++
kaniko-build.yaml | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 06c1b48..d219848 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -22,6 +22,8 @@ tasks:
install-registry:
desc: install a local registry
cmds:
+ - sudo cp registries.yaml /etc/rancher/k3s/registries.yaml
+ - sudo systemctl restart k3s
- helm repo add twuni https://helm.twun.io
- >
helm install docker-registry twuni/docker-registry
diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index e5064ae..846e77e 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:5000/openserverless/operator:${TAG}
+ - --destination=docker-registry:5000/apache/openserverless-operator:${TAG}
- --insecure
- --insecure-registry=docker-registry
restartPolicy: Never
\ No newline at end of file
(openserverless-operator) 14/25: 0.1-dev.2407121351
Posted by ms...@apache.org.
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 6043079e76283d3cfea39d8ca7ebcb932177aa3c
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 13:53:04 2024 +0200
0.1-dev.2407121351
---
Taskfile.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 9cbd2a1..12ed8ab 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -47,7 +47,7 @@ tasks:
- envsubst <kaniko-build.yaml >_kaniko-build.yaml
- kubectl -n default delete job/kaniko-build || true
- kubectl apply -f _kaniko-build.yaml
- - kubectl wait --for=condition=ready -l app=kaniko-build -n default --timeout=600s
+ - kubectl wait po --for=condition=ready -l app=kaniko-build -n default
kaniko-logs:
desc: show logs of the build
(openserverless-operator) 18/25: 0.1-dev.2407121415
Posted by ms...@apache.org.
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 0830efa1d2372da7fdf2c4f1e40ddc45dac76e0d
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 14:15:40 2024 +0200
0.1-dev.2407121415
---
Taskfile.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 841608c..5e0b409 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -52,7 +52,7 @@ tasks:
- kubectl wait po --for=condition=ready -l app=kaniko-build -n default
build-logs:
- desc: show logs of the build
+ desc: show logs of the latest build
cmds:
- kubectl -n default logs -l app=kaniko-build -f
@@ -62,7 +62,7 @@ tasks:
- task: install-registry
- task: tag-commit-push
- task: kaniko-build
- - task: kaniko-logs
+ - task: build-logs
deploy:
desc: deploy the current operator image
(openserverless-operator) 13/25: 0.1-dev.2407121350
Posted by ms...@apache.org.
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 4905064c6bfd9900d71812924c11f238a97741d6
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 13:51:17 2024 +0200
0.1-dev.2407121350
---
kaniko-build.yaml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index 6ee4f82..e5064ae 100644
--- a/kaniko-build.yaml
+++ b/kaniko-build.yaml
@@ -5,12 +5,13 @@ metadata:
namespace: default
spec:
template:
+ metadata:
+ labels:
+ app: kaniko-build
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
- labels:
- app: kaniko-build
args:
- --context=git://github.com/${GITHUB_USER}/openserverless-operator
- --destination=docker-registry:5000/openserverless/operator:${TAG}
(openserverless-operator) 15/25: 0.1-dev.2407121353
Posted by ms...@apache.org.
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 f468fa99f1005165c4b5587541d39cdd31a86525
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 13:53:56 2024 +0200
0.1-dev.2407121353
---
Taskfile.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Taskfile.yml b/Taskfile.yml
index 12ed8ab..06c1b48 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -52,7 +52,7 @@ tasks:
kaniko-logs:
desc: show logs of the build
cmds:
- - kubectl -n default logs kaniko-build -f
+ - kubectl -n default logs -l app=kaniko-build -f
build:
desc: build the operator image
(openserverless-operator) 10/25: 0.1-dev.2407121345
Posted by ms...@apache.org.
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 0fef1c371c5baec5eb597c634a87a07754b5d000
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 13:46:28 2024 +0200
0.1-dev.2407121345
---
kaniko-build.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index 36993d8..ddef505 100644
--- a/kaniko-build.yaml
+++ b/kaniko-build.yaml
@@ -1,4 +1,4 @@
-apiVersion: v1
+apiVersion: batch/v1
kind: Job
metadata:
name: kaniko-build