-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next Gen Chart #132
+2,001
−909
Merged
Next Gen Chart #132
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ee95a77
init mess
Vad1mo d0fab5f
completed deployment.yaml
Vad1mo dfcdfbd
progress
Vad1mo 2cd5187
fix
Vad1mo 0a2a2a0
fix
Vad1mo dc638a4
happy path is working
Vad1mo 0dbe9a3
chore: cleanup
Vad1mo 7892338
update next
Vad1mo 9cd577a
update readme
Vad1mo 5f8f509
working on webhook
Vad1mo 384b1c5
update readme
Vad1mo 7731dd6
Update README.md
Vad1mo 525b352
Merge branch 'main' into next
Vad1mo 1577533
make linter happy
Vad1mo 4e25bc5
Merge branch 'next' of github.com:8gears/n8n-helm-chart into next
Vad1mo 6e1fff5
chore: make linter happy
Vad1mo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
dependencies: | ||
- name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 18.6.1 | ||
digest: sha256:679512a5d6167cd529b9b6d861a6605f62683c3497b8f920fc344dd00bf0ba82 | ||
generated: "2024-06-30T21:39:40.024252056+02:00" | ||
- name: valkey | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 2.2.3 | ||
digest: sha256:3bed83ffaec482e8e31eae77f966ecbd95258b6124ced0824d825805dc23e197 | ||
generated: "2025-01-18T14:00:37.663128+01:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- if .Values.webhook.config }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: webhook-config-{{ include "n8n.fullname" . }} | ||
labels: | ||
{{- include "n8n.labels" . | nindent 4 }} | ||
data: | ||
{{- include "toEnvVars" (dict "values" .Values.webhook.config "prefix" "") | nindent 2 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{{- if .Values.config }} | ||
{{- if .Values.main.config }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "n8n.fullname" . }} | ||
name: app-config-{{ include "n8n.fullname" . }} | ||
labels: | ||
Vad1mo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{{- include "n8n.labels" . | nindent 4 }} | ||
data: | ||
config.json: | | ||
{{ .Values.config | toPrettyJson | indent 4 }} | ||
|
||
{{- include "toEnvVars" (dict "values" .Values.main.config "prefix" "") | nindent 2 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{{- if .Values.webhook.enabled }} | ||
{{- /* Validate Redis configuration */}} | ||
{{- include "n8n.validateRedis" . }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "n8n.fullname" . }}-webhook | ||
labels: | ||
{{- include "n8n.labels" . | nindent 4 }} | ||
spec: | ||
{{- if not .Values.webhook.autoscaling.enabled }} | ||
replicas: {{ .Values.webhook.replicaCount }} | ||
{{- end }} | ||
strategy: | ||
type: {{ .Values.webhook.deploymentStrategy.type }} | ||
{{- if eq .Values.webhook.deploymentStrategy.type "RollingUpdate" }} | ||
rollingUpdate: | ||
maxSurge: {{ default "25%" .Values.webhook.deploymentStrategy.maxSurge }} | ||
maxUnavailable: {{ default "25%" .Values.webhook.deploymentStrategy.maxUnavailable }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "n8n.selectorLabels" . | nindent 6 }} | ||
app.kubernetes.io/type: webhook | ||
template: | ||
metadata: | ||
annotations: | ||
checksum/config: {{ print .Values.webhook .Values.main | sha256sum }} | ||
{{- with .Values.webhook.podAnnotations }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: | ||
{{- include "n8n.selectorLabels" . | nindent 8 }} | ||
app.kubernetes.io/type: webhook | ||
{{- if .Values.webhook.podLabels }} | ||
{{ toYaml .Values.webhook.podLabels | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
serviceAccountName: {{ include "n8n.serviceAccountName" . }} | ||
securityContext: | ||
{{- toYaml .Values.webhook.podSecurityContext | nindent 8 }} | ||
{{- if .Values.webhook.initContainers }} | ||
initContainers: | ||
{{ tpl (toYaml .Values.webhook.initContainers) . | nindent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: {{ .Chart.Name }}-webhook | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
{{- if .Values.webhook.command }} | ||
command: | ||
{{- toYaml .Values.webhook.command | nindent 12 }} | ||
{{- else }} | ||
command: ["n8n"] | ||
{{- end }} | ||
{{- if .Values.webhook.commandArgs }} | ||
args: | ||
{{- toYaml .Values.webhook.commandArgs | nindent 12 }} | ||
{{- else }} | ||
args: | ||
- "webhook" | ||
{{- end }} | ||
ports: | ||
- name: http | ||
containerPort: {{ get .Values.webhook.config "port" | default 5678 }} | ||
protocol: TCP | ||
{{- with .Values.webhook.livenessProbe }} | ||
livenessProbe: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
{{- with .Values.webhook.readinessProbe }} | ||
readinessProbe: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
envFrom: | ||
{{- if .Values.main.config }} | ||
- configMapRef: | ||
name: app-config-{{ include "n8n.fullname" . }} | ||
{{- end }} | ||
{{- if .Values.main.secret }} | ||
- secretRef: | ||
name: app-secret-{{ include "n8n.fullname" . }} | ||
{{- end }} | ||
{{- if .Values.webhook.config }} | ||
- configMapRef: | ||
name: webhook-config-{{ include "n8n.fullname" . }} | ||
{{- end }} | ||
{{- if .Values.webhook.secret }} | ||
- secretRef: | ||
name: webhook-secret-{{ include "n8n.fullname" . }} | ||
{{- end }} | ||
|
||
env: {{ not (empty .Values.webhook.extraEnv) | ternary nil "[]" }} | ||
{{- range $key, $value := .Values.webhook.extraEnv }} | ||
- name: {{ $key }} | ||
{{- toYaml $value | nindent 14 }} | ||
{{- end }} | ||
lifecycle: | ||
{{- toYaml .Values.webhook.lifecycle | nindent 12 }} | ||
securityContext: | ||
{{- toYaml .Values.webhook.securityContext | nindent 12 }} | ||
resources: | ||
{{- toYaml .Values.webhook.resources | nindent 12 }} | ||
volumeMounts: | ||
- name: data | ||
mountPath: /home/node/.n8n | ||
{{- with .Values.webhook.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.webhook.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.webhook.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
volumes: | ||
- name: "data" | ||
{{ include "n8n.pvc" . }} | ||
{{- end }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
The verification confirms both issues and reveals more concerns:
redis.enabled
condition is misleading and should bevalkey.enabled
🔗 Analysis chain
The Redis to Valkey migration has several issues:
redis.enabled
should be renamed tovalkey.enabled
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 2117
Script:
Length of output: 2656