Skip to content

Commit

Permalink
feat: reject event if type is not upgrade-event
Browse files Browse the repository at this point in the history
Signed-off-by: Zufar Dhiyaullhaq <[email protected]>
  • Loading branch information
zufardhiyaulhaq committed Jan 26, 2025
1 parent fd41ae0 commit 9ee0db2
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 9 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/client_binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "go: build client binary"

on:
push:
tags: [ 'v*.*.*' ]

permissions:
contents: read

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Go Release Binaries Normal Volume Size
uses: wangyoucao577/[email protected]
with:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.22.2.linux-amd64.tar.gz"
project_path: client
binary_name: istio-upgrade-consumer-client
asset_name: "istio-upgrade-consumer-client-${{ matrix.goos }}-${{ matrix.goarch }}"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Consumer for Istio Upgrade tooling to receive events related to Istio upgrade

![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) [![made with Go](https://img.shields.io/badge/made%20with-Go-brightgreen)](http://golang.org) [![Github main branch build](https://img.shields.io/github/workflow/status/gopaytech/istio-upgrade-consumer/Main)](https://github.com/gopaytech/istio-upgrade-consumer/actions/workflows/main.yml) [![GitHub issues](https://img.shields.io/github/issues/gopaytech/istio-upgrade-consumer)](https://github.com/gopaytech/istio-upgrade-consumer/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/gopaytech/istio-upgrade-consumer)](https://github.com/gopaytech/istio-upgrade-consumer/pulls)[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/istio-upgrade-consumer)](https://artifacthub.io/packages/search?repo=istio-upgrade-consumer)
![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.1](https://img.shields.io/badge/AppVersion-1.0.1-informational?style=flat-square) [![made with Go](https://img.shields.io/badge/made%20with-Go-brightgreen)](http://golang.org) [![Github main branch build](https://img.shields.io/github/workflow/status/gopaytech/istio-upgrade-consumer/Main)](https://github.com/gopaytech/istio-upgrade-consumer/actions/workflows/main.yml) [![GitHub issues](https://img.shields.io/github/issues/gopaytech/istio-upgrade-consumer)](https://github.com/gopaytech/istio-upgrade-consumer/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/gopaytech/istio-upgrade-consumer)](https://github.com/gopaytech/istio-upgrade-consumer/pulls)[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/istio-upgrade-consumer)](https://artifacthub.io/packages/search?repo=istio-upgrade-consumer)

## Installing

Expand Down Expand Up @@ -30,7 +30,7 @@ helm install my-istio-upgrade-consumer istio-upgrade-consumer/istio-upgrade-cons
| configuration.timeLocation | string | `"Asia/Jakarta"` | |
| deployment.image | string | `"ghcr.io/gopaytech/istio-upgrade-consumer"` | |
| deployment.replicas | int | `2` | |
| deployment.tag | string | `"master"` | |
| deployment.tag | string | `"v1.0.1"` | |
| podLabels | object | `{}` | |
| resources.limits.cpu | string | `"1024m"` | |
| resources.limits.memory | string | `"1024Mi"` | |
Expand Down
4 changes: 2 additions & 2 deletions charts/istio-upgrade-consumer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
apiVersion: v2
name: istio-upgrade-consumer
description: Consumer for Istio Upgrade tooling to receive events related to Istio upgrade
version: 1.0.0
appVersion: 1.0.0
version: 1.0.1
appVersion: 1.0.1
type: application
home: https://github.com/gopaytech/istio-upgrade-consumer

Expand Down
4 changes: 2 additions & 2 deletions charts/istio-upgrade-consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Consumer for Istio Upgrade tooling to receive events related to Istio upgrade

![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) [![made with Go](https://img.shields.io/badge/made%20with-Go-brightgreen)](http://golang.org) [![Github main branch build](https://img.shields.io/github/workflow/status/gopaytech/istio-upgrade-consumer/Main)](https://github.com/gopaytech/istio-upgrade-consumer/actions/workflows/main.yml) [![GitHub issues](https://img.shields.io/github/issues/gopaytech/istio-upgrade-consumer)](https://github.com/gopaytech/istio-upgrade-consumer/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/gopaytech/istio-upgrade-consumer)](https://github.com/gopaytech/istio-upgrade-consumer/pulls)[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/istio-upgrade-consumer)](https://artifacthub.io/packages/search?repo=istio-upgrade-consumer)
![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.1](https://img.shields.io/badge/AppVersion-1.0.1-informational?style=flat-square) [![made with Go](https://img.shields.io/badge/made%20with-Go-brightgreen)](http://golang.org) [![Github main branch build](https://img.shields.io/github/workflow/status/gopaytech/istio-upgrade-consumer/Main)](https://github.com/gopaytech/istio-upgrade-consumer/actions/workflows/main.yml) [![GitHub issues](https://img.shields.io/github/issues/gopaytech/istio-upgrade-consumer)](https://github.com/gopaytech/istio-upgrade-consumer/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/gopaytech/istio-upgrade-consumer)](https://github.com/gopaytech/istio-upgrade-consumer/pulls)[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/istio-upgrade-consumer)](https://artifacthub.io/packages/search?repo=istio-upgrade-consumer)

## Installing

Expand Down Expand Up @@ -30,7 +30,7 @@ helm install my-istio-upgrade-consumer istio-upgrade-consumer/istio-upgrade-cons
| configuration.timeLocation | string | `"Asia/Jakarta"` | |
| deployment.image | string | `"ghcr.io/gopaytech/istio-upgrade-consumer"` | |
| deployment.replicas | int | `2` | |
| deployment.tag | string | `"master"` | |
| deployment.tag | string | `"v1.0.1"` | |
| podLabels | object | `{}` | |
| resources.limits.cpu | string | `"1024m"` | |
| resources.limits.memory | string | `"1024Mi"` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/istio-upgrade-consumer/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
deployment:
image: "ghcr.io/gopaytech/istio-upgrade-consumer"
tag: "v1.0.0"
tag: "v1.0.1"
replicas: 2

resources:
Expand Down
20 changes: 18 additions & 2 deletions charts/releases/index.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
apiVersion: v1
entries:
istio-upgrade-consumer:
- apiVersion: v2
appVersion: 1.0.1
created: "2025-01-26T23:06:03.718824+07:00"
description: Consumer for Istio Upgrade tooling to receive events related to Istio
upgrade
digest: c97d7c0fed01d0acb563e5e7145df20d3cbf523e376a345649351c556469287e
home: https://github.com/gopaytech/istio-upgrade-consumer
maintainers:
- email: [email protected]
name: Zufar Dhiyaulhaq
url: https://zufardhiyaulhaq.com
name: istio-upgrade-consumer
type: application
urls:
- istio-upgrade-consumer-1.0.1.tgz
version: 1.0.1
- apiVersion: v2
appVersion: 1.0.0
created: "2024-10-04T14:52:42.656931+07:00"
created: "2025-01-26T23:06:03.71858+07:00"
description: Consumer for Istio Upgrade tooling to receive events related to Istio
upgrade
digest: 3f79924079765c60836a50e498a7f2de944621e6c4af3d59997e6707288689ee
Expand All @@ -17,4 +33,4 @@ entries:
urls:
- istio-upgrade-consumer-1.0.0.tgz
version: 1.0.0
generated: "2024-10-04T14:52:42.656308+07:00"
generated: "2025-01-26T23:06:03.717076+07:00"
Binary file added charts/releases/istio-upgrade-consumer-1.0.1.tgz
Binary file not shown.

0 comments on commit 9ee0db2

Please sign in to comment.