Skip to content
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

ci: update Core Operator chart #276

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/core-crd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: core-crd
description: A Helm chart for Kubernetes
type: application
version: 3.2.1
appVersion: "v3.2.1"
version: 3.3.3
appVersion: "v3.3.3"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion charts/core-crd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ images:
fluentBit:
registry: ghcr.io
repository: calyptia/core/calyptia-fluent-bit
tag: 24.7.4
tag: 24.9.1
pullSecrets: []
ingestCheck:
registry: ghcr.io
Expand Down
4 changes: 2 additions & 2 deletions charts/core-instance/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Calyptia Core Instance chart
home: https://calyptia.com/products/core/
icon: https://storage.googleapis.com/calyptia_public_resources_bucket/logo-darkmode.svg
type: application
version: 3.2.1
appVersion: "v3.2.1"
version: 3.3.3
appVersion: "v3.3.3"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
22 changes: 22 additions & 0 deletions charts/core-instance/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ metadata:
{{- end }}
labels:
app.kubernetes.io/instance: {{ .Values.coreInstance }}
app.kubernetes.io/part-of: calyptia
calyptia.core: core-instance
spec:
replicas: {{ default 1 .Values.replicas }}
selector:
Expand All @@ -23,6 +25,7 @@ spec:
{{- end }}
labels:
app.kubernetes.io/part-of: calyptia
calyptia.core: core-instance
spec:
serviceAccount: {{ template "instance.serviceAccountName" . }}
containers:
Expand Down Expand Up @@ -80,6 +83,13 @@ spec:
{{- if .Values.fromCloud.resources }}
resources: {{- toYaml .Values.fromCloud.resources | nindent 12 }}
{{- end }}
volumeMounts:
{{- if .Values.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.fromCloud.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.fromCloud.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
- env:
- name: CORE_INSTANCE
value: {{ default .Release.Name .Values.coreInstance | quote }}
Expand Down Expand Up @@ -121,6 +131,13 @@ spec:
ports:
- containerPort: {{ .Values.metricsPort | int }}
name: metrics
volumeMounts:
{{- if .Values.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.toCloud.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.toCloud.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.calyptiaTolerations }}
tolerations:
{{- $tolerations := .Values.calyptiaTolerations | split "," }}
Expand All @@ -136,4 +153,9 @@ spec:
{{- end }}
{{- end }}
{{- end }}
volumes:
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
restartPolicy: {{ default "Always" .Values.restartPolicy }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/core-instance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ images:
fromCloud:
registry: ghcr.io
repository: calyptia/core-operator/sync-from-cloud
tag: 3.2.1
tag: 3.3.3
pullSecrets: []
toCloud:
registry: ghcr.io
repository: calyptia/core-operator/sync-to-cloud
tag: 3.2.1
tag: 3.3.3
pullSecrets: []
hotReload:
registry: ghcr.io
Expand Down
4 changes: 2 additions & 2 deletions charts/core-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Calyptia Core Operator chart
home: https://calyptia.com/products/core/
icon: https://storage.googleapis.com/calyptia_public_resources_bucket/logo-darkmode.svg
type: application
version: 3.2.1
appVersion: "v3.2.1"
version: 3.3.3
appVersion: "v3.3.3"
maintainers:
- name: Calyptia
email: [email protected]
Expand Down
36 changes: 22 additions & 14 deletions charts/core-operator/templates/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,28 @@ spec:
- /manager
image: {{ template "operator.image" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | quote }}
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
volumeMounts:
{{- if .Values.extraVolumeMounts }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.startupProbe }}
startupProbe: {{- toYaml .Values.startupProbe | nindent 12 }}
{{- end }}
{{- if .Values.readinessProbe }}
readinessProbe: {{- toYaml .Values.readinessProbe | nindent 12 }}
{{- end }}
{{- if .Values.livenessProbe }}
livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }}
{{- end }}
name: manager
ports:
- containerPort: 8443
name: https
- containerPort: 8081
name: http
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand All @@ -72,4 +74,10 @@ spec:
serviceAccount: {{ template "operator.serviceAccountName" . }}
{{- include "operator.imagePullSecrets" . | nindent 6 }}
terminationGracePeriodSeconds: 10
volumes:
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
restartPolicy: {{ default "Always" .Values.restartPolicy }}

{{- end }}
15 changes: 14 additions & 1 deletion charts/core-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ images:
operator:
registry: ghcr.io
repository: calyptia/core-operator
tag: 3.2.1
tag: 3.3.3
pullSecrets: []
hotReload:
registry: ghcr.io
Expand Down Expand Up @@ -64,3 +64,16 @@ resources:
requests:
cpu: 10m
memory: 64Mi
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
restartPolicy: Always