Skip to content

Commit 5f4e8f3

Browse files
committed
feat: add eventrouter-chart
1 parent 9463fe4 commit 5f4e8f3

10 files changed

Lines changed: 109 additions & 11 deletions

File tree

.github/workflows/eventrouter-chart-release-pullrequest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release-pullrequest
1+
name: eventrouter-chart-release-pullrequest
22

33
on:
44
pull_request:

.github/workflows/eventrouter-chart-release-tag.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: release-tag
1+
name: eventrouter-chart-release-tag
22

33
on:
44
push:
5-
tags: ["[0-9]+.[0-9]+.[0-9]+"]
6-
5+
tags:
6+
- 'eventrouter-chart/[0-9]+.[0-9]+.[0-9]+'
77
jobs:
88
package:
99
runs-on: ubuntu-latest

eventrouter-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ appVersion: APP_VERSION
2626
dependencies:
2727
- name: eventrouter-crd
2828
version: CHART_VERSION
29-
repository: file://../crd-chart
29+
repository: file://../eventrouter-crd-chart

eventrouter-chart/templates/deployment.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ spec:
3131
securityContext:
3232
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3333
containers:
34-
- name: {{ .Chart.Name }}
34+
- name: {{ include "eventrouter.fullname" . }}
35+
envFrom:
36+
- configMapRef:
37+
name: {{ include "eventrouter.fullname" . }}
3538
securityContext:
3639
{{- toYaml .Values.securityContext | nindent 12 }}
3740
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3841
imagePullPolicy: {{ .Values.image.pullPolicy }}
39-
args:
40-
- --insecure=true
41-
- --debug=true
42-
- --v=4
4342
resources:
4443
{{- toYaml .Values.resources | nindent 12 }}
4544
{{- with .Values.volumeMounts }}

eventrouter-chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
replicaCount: 1
66

77
image:
8-
repository: ghcr.io/krateoplatformops/eventrouter
8+
repository: ghcr.io/krateoplatformops/eventstack/eventrouter
99
pullPolicy: IfNotPresent
1010
# Overrides the image tag whose default is the chart appVersion.
1111
tag: ""

eventrouter-crd-chart/Chart.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: v2
2+
name: eventrouter-crd
3+
description: Krateo PlatformOps EventRouter CRDs
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: CHART_VERSION
19+
20+
home: https://krateo.io
21+
icon: "https://github.com/krateoplatformops/krateo/blob/main/docs/media/logo.svg"
22+
23+
sources:
24+
- https://github.com/krateoplatformops/eventstack
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.15.0
7+
name: registrations.eventrouter.krateo.io
8+
spec:
9+
group: eventrouter.krateo.io
10+
names:
11+
kind: Registration
12+
listKind: RegistrationList
13+
plural: registrations
14+
singular: registration
15+
scope: Cluster
16+
versions:
17+
- additionalPrinterColumns:
18+
- jsonPath: .metadata.creationTimestamp
19+
name: AGE
20+
type: date
21+
name: v1alpha1
22+
schema:
23+
openAPIV3Schema:
24+
description: A Registration registers a new eventrouter registration.
25+
properties:
26+
apiVersion:
27+
description: |-
28+
APIVersion defines the versioned schema of this representation of an object.
29+
Servers should convert recognized schemas to the latest internal value, and
30+
may reject unrecognized values.
31+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
32+
type: string
33+
kind:
34+
description: |-
35+
Kind is a string value representing the REST resource this object represents.
36+
Servers may infer this from the endpoint the client submits requests to.
37+
Cannot be updated.
38+
In CamelCase.
39+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
40+
type: string
41+
metadata:
42+
type: object
43+
spec:
44+
description: A RegistrationSpec defines the desired state of a Registration.
45+
properties:
46+
endpoint:
47+
type: string
48+
serviceName:
49+
type: string
50+
required:
51+
- endpoint
52+
- serviceName
53+
type: object
54+
required:
55+
- spec
56+
type: object
57+
served: true
58+
storage: true
59+
subresources:
60+
status: {}

eventrouter-crd-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Default values for crd-chart.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.

eventsse-chart/Chart.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ version: CHART_VERSION
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
2424
appVersion: APP_VERSION
25+
26+
home: https://krateo.io
27+
icon: "https://github.com/krateoplatformops/krateo/blob/main/docs/media/logo.svg"
28+
29+
sources:
30+
- https://github.com/krateoplatformops/eventstack

sweeper-chart/Chart.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ version: CHART_VERSION
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
2424
appVersion: APP_VERSION
25+
26+
home: https://krateo.io
27+
icon: "https://github.com/krateoplatformops/krateo/blob/main/docs/media/logo.svg"
28+
29+
sources:
30+
- https://github.com/krateoplatformops/eventstack

0 commit comments

Comments
 (0)