Skip to content

Commit de28fcb

Browse files
authored
v0.9.0 (#59)
* Add initial fs-events support
1 parent 4b6aeb2 commit de28fcb

File tree

16 files changed

+734
-11
lines changed

16 files changed

+734
-11
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ There are other optional variables but these are only used for development of th
290290

291291
## Changelog
292292

293+
v0.9.0:
294+
295+
- Add initial support for FS-Events Server to handle Fpolicy events.
296+
293297
v0.8.1:
294298

295299
- Minor fixes

charts/event-distributor/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.8.0
18+
version: v0.9.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/event-distributor/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env:
3030
# This sets the smb-listener container image
3131
dockerRegistry: "us-docker.pkg.dev/gcnv-ai-dev/genai-toolkit/"
3232
image:
33-
tag: "v0.8.3-rc"
33+
tag: ""
3434
name: event-distributor
3535
pullPolicy: IfNotPresent
3636

charts/fs-events-server/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

charts/fs-events-server/Chart.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v2
2+
name: fs-events-server
3+
description: fs-events-server helm chart
4+
# A chart can be either an 'application' or a 'library' chart.
5+
#
6+
# Application charts are a collection of templates that can be packaged into versioned archives
7+
# to be deployed.
8+
#
9+
# Library charts provide useful utilities or functions for the chart developer. They're included as
10+
# a dependency of application charts to inject those utilities and functions into the rendering
11+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
12+
type: application
13+
# This is the chart version. This version number should be incremented each time you make changes
14+
# to the chart and its templates, including the app version.
15+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16+
version: v0.9.0
17+
# This is the version number of the application being deployed. This version number should be
18+
# incremented each time you make changes to the application. Versions are not expected to
19+
# follow Semantic Versioning. They should reflect the version the application is using.
20+
# It is recommended to use it with quotes.
21+
appVersion: "1"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "fs-events-server.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "fs-events-server.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "fs-events-server.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "fs-events-server.labels" -}}
37+
helm.sh/chart: {{ include "fs-events-server.chart" . }}
38+
{{ include "fs-events-server.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "fs-events-server.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "fs-events-server.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "fs-events-server.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "fs-events-server.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: fs-events-config
5+
data:
6+
config.yaml: |
7+
{{- toYaml .Values.config | nindent 4 }}
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
apiVersion: apps/v1
2+
kind: StatefulSet
3+
metadata:
4+
name: {{ include "fs-events-server.fullname" . }}
5+
labels:
6+
{{- include "fs-events-server.labels" . | nindent 4 }}
7+
spec:
8+
replicas: {{ .Values.replicaCount }}
9+
selector:
10+
matchLabels:
11+
{{- include "fs-events-server.selectorLabels" . | nindent 6 }}
12+
template:
13+
metadata:
14+
{{- with .Values.podAnnotations }}
15+
annotations:
16+
{{- toYaml . | nindent 8 }}
17+
{{- end }}
18+
labels:
19+
{{- include "fs-events-server.labels" . | nindent 8 }}
20+
{{- with .Values.podLabels }}
21+
{{- toYaml . | nindent 8 }}
22+
{{- end }}
23+
spec:
24+
{{- with .Values.imagePullSecrets }}
25+
imagePullSecrets:
26+
{{- toYaml . | nindent 8 }}
27+
{{- end }}
28+
serviceAccountName: {{ include "fs-events-server.serviceAccountName" . }}
29+
securityContext:
30+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
31+
containers:
32+
- name: {{ .Chart.Name }}
33+
securityContext:
34+
{{- toYaml .Values.securityContext | nindent 12 }}
35+
image: {{ .Values.dockerRegistry }}{{ .Values.image.name }}:{{ default .Chart.Version .Values.image.tag }}
36+
imagePullPolicy: {{ .Values.image.pullPolicy }}
37+
env:
38+
{{- if .Values.azure.aqsConnectionStringSecretName }}
39+
- name: AZURE_STORAGE_CONNECTION_STRING
40+
valueFrom:
41+
secretKeyRef:
42+
name: {{ .Values.azure.aqsConnectionStringSecretName }}
43+
key: {{ .Values.azure.aqsConnectionStringSecretKey }}
44+
{{- else if .Values.azure.aqsConnectionString }}
45+
- name: AZURE_STORAGE_CONNECTION_STRING
46+
value: {{ .Values.azure.aqsConnectionString }}
47+
{{- end }}
48+
{{- if .Values.aws.region }}
49+
- name: AWS_REGION
50+
value: {{ .Values.aws.region }}
51+
{{- end }}
52+
{{- if .Values.aws.accessKeyId }}
53+
- name: AWS_ACCESS_KEY_ID
54+
value: {{ .Values.aws.accessKeyId }}
55+
{{- end }}
56+
{{- if .Values.aws.secretAccessKey }}
57+
- name: AWS_SECRET_ACCESS_KEY
58+
value: {{ .Values.aws.secretAccessKey }}
59+
{{- end }}
60+
{{- if .Values.aws.sessionToken }}
61+
- name: AWS_SESSION_TOKEN
62+
value: {{ .Values.aws.sessionToken }}
63+
{{- end }}
64+
{{- if .Values.nats.url }}
65+
- name: NATS_URL
66+
value: {{ .Values.nats.url }}
67+
{{- end }}
68+
{{- if .Values.nats.url }}
69+
- name: NATS_SUBJECT
70+
value: {{ .Values.nats.subject }}
71+
{{- end }}
72+
command: [ "/server" ]
73+
args:
74+
- "-p"
75+
- "{{ .Values.service.port }}"
76+
- "--config"
77+
- "/app/config.yaml"
78+
ports:
79+
- name: fses-tcp
80+
containerPort: {{ .Values.service.port }}
81+
protocol: TCP
82+
- name: hm-tcp
83+
containerPort: 2112
84+
protocol: TCP
85+
livenessProbe:
86+
{{- toYaml .Values.livenessProbe | nindent 12 }}
87+
readinessProbe:
88+
{{- toYaml .Values.readinessProbe | nindent 12 }}
89+
resources:
90+
{{- toYaml .Values.resources | nindent 12 }}
91+
{{- with .Values.volumeMounts }}
92+
volumeMounts:
93+
{{- toYaml . | nindent 12 }}
94+
{{- end }}
95+
volumes:
96+
- name: fs-events-config-volume
97+
configMap:
98+
name: fs-events-config
99+
{{- with .Values.nodeSelector }}
100+
nodeSelector:
101+
{{- toYaml . | nindent 8 }}
102+
{{- end }}
103+
{{- with .Values.affinity }}
104+
affinity:
105+
{{- toYaml . | nindent 8 }}
106+
{{- end }}
107+
{{- with .Values.tolerations }}
108+
tolerations:
109+
{{- toYaml . | nindent 8 }}
110+
{{- end }}

0 commit comments

Comments
 (0)