From f48f7b997c014da7398b1f426a4613be1a523e03 Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Sat, 14 Feb 2026 12:21:52 +0900 Subject: [PATCH 1/7] feat: Initial ctrlc-sync helm chart --- charts/ctrlc-sync/.helmignore | 23 ++++ charts/ctrlc-sync/Chart.yaml | 11 ++ charts/ctrlc-sync/templates/_env.tpl | 46 ++++++++ charts/ctrlc-sync/templates/_helpers.tpl | 75 ++++++++++++ .../templates/clusterrolebinding.yaml | 16 +++ charts/ctrlc-sync/templates/clusterroles.yaml | 15 +++ charts/ctrlc-sync/templates/cronjob.yaml | 94 +++++++++++++++ charts/ctrlc-sync/templates/secret.yaml | 10 ++ .../ctrlc-sync/templates/serviceaccount.yaml | 13 ++ charts/ctrlc-sync/values.yaml | 111 ++++++++++++++++++ 10 files changed, 414 insertions(+) create mode 100644 charts/ctrlc-sync/.helmignore create mode 100644 charts/ctrlc-sync/Chart.yaml create mode 100644 charts/ctrlc-sync/templates/_env.tpl create mode 100644 charts/ctrlc-sync/templates/_helpers.tpl create mode 100644 charts/ctrlc-sync/templates/clusterrolebinding.yaml create mode 100644 charts/ctrlc-sync/templates/clusterroles.yaml create mode 100644 charts/ctrlc-sync/templates/cronjob.yaml create mode 100644 charts/ctrlc-sync/templates/secret.yaml create mode 100644 charts/ctrlc-sync/templates/serviceaccount.yaml create mode 100644 charts/ctrlc-sync/values.yaml diff --git a/charts/ctrlc-sync/.helmignore b/charts/ctrlc-sync/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/ctrlc-sync/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/ctrlc-sync/Chart.yaml b/charts/ctrlc-sync/Chart.yaml new file mode 100644 index 0000000..9b999a8 --- /dev/null +++ b/charts/ctrlc-sync/Chart.yaml @@ -0,0 +1,11 @@ +apiVersion: v2 +name: ctrlc-sync +description: A Helm chart for ctrlc sync jobs in Kubernetes +type: application +version: 0.1.0 +appVersion: "v0.16.2" + +maintainers: + - name: ctrlplane + email: support@ctrlplane.com + url: https://ctrlplane.dev diff --git a/charts/ctrlc-sync/templates/_env.tpl b/charts/ctrlc-sync/templates/_env.tpl new file mode 100644 index 0000000..1d54ac5 --- /dev/null +++ b/charts/ctrlc-sync/templates/_env.tpl @@ -0,0 +1,46 @@ +{{- define "ctrlc-sync.envs" -}} +{{- if kindIs "map" .Values.ctrlc.apiKey -}} +- name: CTRLPLANE_API_KEY +{{- toYaml .Values.ctrlc.apiKey | nindent 2 }} +{{- else -}} +- name: CTRLPLANE_API_KEY + valueFrom: + secretKeyRef: + name: "{{ include "ctrlc-sync.secretname" . }}" + key: "apiKey" +{{- end }} + +{{- if kindIs "map" .Values.ctrlc.workspaceID }} +- name: CTRLPLANE_WORKSPACE +{{- toYaml .Values.ctrlc.workspaceID | nindent 2 }} +{{- else }} +- name: CTRLPLANE_WORKSPACE + value: "{{ .Values.ctrlc.workspaceID }}" +{{- end }} + +{{- if kindIs "map" .Values.ctrlc.apiURL }} +- name: CTRLPLANE_URL +{{- toYaml .Values.ctrlc.apiURL | nindent 2 }} +{{- else }} +- name: CTRLPLANE_URL + value: "{{ .Values.ctrlc.apiURL }}" +{{- end }} + +{{- if kindIs "map" .Values.ctrlc.identifier }} +- name: CTRLPLANE_CLUSTER_IDENTIFIER +{{- toYaml .Values.ctrlc.identifier | nindent 2 }} +{{- else }} +- name: CTRLPLANE_CLUSTER_IDENTIFIER + value: "{{ .Values.ctrlc.identifier }}" +{{- end }} + +{{- if kindIs "map" .Values.ctrlc.logLevel }} +- name: CTRLPLANE_LOG_LEVEL +{{- toYaml .Values.ctrlc.logLevel | nindent 2 }} +{{- else }} +- name: CTRLPLANE_LOG_LEVEL + value: "{{ .Values.ctrlc.logLevel }}" +{{- end }} + +{{- end }} + diff --git a/charts/ctrlc-sync/templates/_helpers.tpl b/charts/ctrlc-sync/templates/_helpers.tpl new file mode 100644 index 0000000..8a7826d --- /dev/null +++ b/charts/ctrlc-sync/templates/_helpers.tpl @@ -0,0 +1,75 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "ctrlc-sync.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "ctrlc-sync.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "ctrlc-sync.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{- define "ctrlc-sync.secretname" -}} +{{- printf "%s-secret" (include "ctrlc-sync.fullname" .) | trunc 63 | trimSuffix "-" }} +{{- end }} + + +{{/* +Common labels +*/}} +{{- define "ctrlc-sync.labels" -}} +helm.sh/chart: {{ include "ctrlc-sync.chart" . }} +{{ include "ctrlc-sync.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "ctrlc-sync.selectorLabels" -}} +app.kubernetes.io/name: {{ include "ctrlc-sync.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "ctrlc-sync.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "ctrlc-sync.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{- define "ctrlc-sync.clusterRole.k8s" -}} +{{- printf "%s-k8s-sync-role" (include "ctrlc-sync.fullname" .) | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{- define "ctrlc-sync.clusterRoleBinding.k8s" -}} +{{- printf "%s-k8s-sync-rolebinding" (include "ctrlc-sync.fullname" .) | trunc 63 | trimSuffix "-" }} +{{- end }} diff --git a/charts/ctrlc-sync/templates/clusterrolebinding.yaml b/charts/ctrlc-sync/templates/clusterrolebinding.yaml new file mode 100644 index 0000000..2769a55 --- /dev/null +++ b/charts/ctrlc-sync/templates/clusterrolebinding.yaml @@ -0,0 +1,16 @@ +{{- if .Values.rbac.enabled }} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "ctrlc-sync.clusterRoleBinding.k8s" . }} + labels: + {{- include "ctrlc-sync.labels" . | nindent 4 }} +subjects: +- kind: ServiceAccount + name: {{ include "ctrlc-sync.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} +roleRef: + kind: ClusterRole + name: {{ include "ctrlc-sync.clusterRole.k8s" . }} + apiGroup: rbac.authorization.k8s.io +{{- end }} diff --git a/charts/ctrlc-sync/templates/clusterroles.yaml b/charts/ctrlc-sync/templates/clusterroles.yaml new file mode 100644 index 0000000..9b1aa7f --- /dev/null +++ b/charts/ctrlc-sync/templates/clusterroles.yaml @@ -0,0 +1,15 @@ +{{- if .Values.rbac.enabled -}} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "ctrlc-sync.clusterRole.k8s" . }} + labels: + {{- include "ctrlc-sync.labels" . | nindent 4 }} +rules: +- apiGroups: ["apps"] + resources: ["statefulsets", "deployments"] + verbs: ["get", "list", "watch"] +- apiGroups: [""] + resources: ["namespaces"] + verbs: ["get", "list", "watch"] +{{- end }} diff --git a/charts/ctrlc-sync/templates/cronjob.yaml b/charts/ctrlc-sync/templates/cronjob.yaml new file mode 100644 index 0000000..661e6f8 --- /dev/null +++ b/charts/ctrlc-sync/templates/cronjob.yaml @@ -0,0 +1,94 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: {{ include "ctrlc-sync.fullname" . }} + labels: + {{- include "ctrlc-sync.labels" . | nindent 4 }} +spec: + schedule: "{{ .Values.cron.schedule }}" + {{- if .Values.cron.timeZone }} + timeZone: "{{ .Values.cron.timeZone }}" + {{- end }} + concurrencyPolicy: "{{ .Values.cron.concurrencyPolicy }}" + {{- if .Values.cron.startingDeadlineSeconds }} + startingDeadlineSeconds: {{ .Values.cron.startingDeadlineSeconds }} + {{- end }} + successfulJobsHistoryLimit: {{ .Values.cron.successfulJobsHistoryLimit }} + failedJobsHistoryLimit: {{ .Values.cron.failedJobsHistoryLimit }} + jobTemplate: + metadata: + {{- with .Values.jobAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "ctrlc-sync.labels" . | nindent 8 }} + {{- with .Values.jobLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + backoffLimit: {{ .Values.job.backoffLimit }} + {{- if .Values.job.activeDeadlineSeconds }} + activeDeadlineSeconds: {{ .Values.job.activeDeadlineSeconds }} + {{- end }} + {{- if .Values.job.ttlSecondsAfterFinished }} + ttlSecondsAfterFinished: {{ .Values.job.ttlSecondsAfterFinished }} + {{- end }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 12 }} + {{- end }} + labels: + {{- include "ctrlc-sync.labels" . | nindent 12 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 12 }} + {{- end }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 12 }} + {{- end }} + serviceAccountName: {{ include "ctrlc-sync.serviceAccountName" . }} + {{- with .Values.podSecurityContext }} + securityContext: + {{- toYaml . | nindent 12 }} + {{- end }} + containers: + - name: {{ .Chart.Name }} + {{- with .Values.securityContext }} + securityContext: + {{- toYaml . | nindent 16 }} + {{- end }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + command: ["ctrlc"] + args: ["sync", "kubernetes"] + env: + {{- include "ctrlc-sync.envs" . | nindent 16 }} + {{- with .Values.resources }} + resources: + {{- toYaml . | nindent 16 }} + {{- end }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 16 }} + {{- end }} + {{- with .Values.volumes }} + volumes: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 12 }} + {{- end }} + diff --git a/charts/ctrlc-sync/templates/secret.yaml b/charts/ctrlc-sync/templates/secret.yaml new file mode 100644 index 0000000..12c79bc --- /dev/null +++ b/charts/ctrlc-sync/templates/secret.yaml @@ -0,0 +1,10 @@ +{{- if not (kindIs "map" .Values.ctrlc.apiKey ) }} +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "ctrlc-sync.secretname" . }} + labels: + {{- include "ctrlc-sync.labels" . | nindent 4 }} +data: + apiKey: {{ .Values.ctrlc.apiKey | b64enc }} +{{- end }} diff --git a/charts/ctrlc-sync/templates/serviceaccount.yaml b/charts/ctrlc-sync/templates/serviceaccount.yaml new file mode 100644 index 0000000..261d2a1 --- /dev/null +++ b/charts/ctrlc-sync/templates/serviceaccount.yaml @@ -0,0 +1,13 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "ctrlc-sync.serviceAccountName" . }} + labels: + {{- include "ctrlc-sync.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.automount }} +{{- end }} diff --git a/charts/ctrlc-sync/values.yaml b/charts/ctrlc-sync/values.yaml new file mode 100644 index 0000000..f86de1c --- /dev/null +++ b/charts/ctrlc-sync/values.yaml @@ -0,0 +1,111 @@ +ctrlc: + target: "kubernetes" + # All of following values under the ctrlc config from this point + # can be provided directly as strings or as valueFrom + # reference -> https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#envfromsource-v1-core + # # for example: + # apiKey: + # valueFrom: + # secretKeyRef: + # name: ctrlplane-api-key + # key: api-key + identifier: "" + name: "" + workspaceID: "" + apiURL: "" + apiKey: "" + logLevel: "info" + +cron: + schedule: "*/1 * * * *" + # timeZone: "" + concurrencyPolicy: "Forbid" + # startingDeadlineSeconds: 300 + successfulJobsHistoryLimit: 3 + failedJobsHistoryLimit: 1 + +job: + backoffLimit: 6 + # activeDeadlineSeconds: 300 + # ttlSecondsAfterFinished: 0 + +rbac: + enabled: true + +# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ +image: + repository: ctrlplane/cli + # This sets the pull policy for images. + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: "" + +# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ +imagePullSecrets: [] +# This is to override the chart name. +nameOverride: "" +fullnameOverride: "" + +# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/ +serviceAccount: + # Specifies whether a service account should be created + create: true + # Automatically mount a ServiceAccount's API credentials? + automount: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +jobAnnotations: {} +jobLabels: {} + +# This is for setting Kubernetes Annotations to a Pod. +# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ +podAnnotations: {} +# This is for setting Kubernetes Labels to a Pod. +# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +podLabels: {} + +podSecurityContext: {} + # fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +# Additional volumes on the output Deployment definition. +volumes: [] +# - name: foo +# secret: +# secretName: mysecret +# optional: false + +# Additional volumeMounts on the output Deployment definition. +volumeMounts: [] +# - name: foo +# mountPath: "/etc/foo" +# readOnly: true + +nodeSelector: {} + +tolerations: [] + +affinity: {} From a280f96ff87274381f9c8a1f00ceded6eac641c7 Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Sat, 14 Feb 2026 12:37:18 +0900 Subject: [PATCH 2/7] update reference link --- charts/ctrlc-sync/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/ctrlc-sync/values.yaml b/charts/ctrlc-sync/values.yaml index f86de1c..fa534ea 100644 --- a/charts/ctrlc-sync/values.yaml +++ b/charts/ctrlc-sync/values.yaml @@ -2,7 +2,7 @@ ctrlc: target: "kubernetes" # All of following values under the ctrlc config from this point # can be provided directly as strings or as valueFrom - # reference -> https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#envfromsource-v1-core + # reference -> https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#envvarsource-v1-core # # for example: # apiKey: # valueFrom: From 17458ac76a0235495fa9a75558b45678b3c94f9a Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Sat, 14 Feb 2026 12:39:15 +0900 Subject: [PATCH 3/7] restart policy --- charts/ctrlc-sync/templates/cronjob.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/ctrlc-sync/templates/cronjob.yaml b/charts/ctrlc-sync/templates/cronjob.yaml index 661e6f8..649087e 100644 --- a/charts/ctrlc-sync/templates/cronjob.yaml +++ b/charts/ctrlc-sync/templates/cronjob.yaml @@ -45,6 +45,7 @@ spec: {{- with .Values.podLabels }} {{- toYaml . | nindent 12 }} {{- end }} + restartPolicy: OnFailure spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: From c79fd8b59877f625160e5f479fe15cdb84f7e67e Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Sat, 14 Feb 2026 13:24:48 +0900 Subject: [PATCH 4/7] correct spot --- charts/ctrlc-sync/templates/cronjob.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/ctrlc-sync/templates/cronjob.yaml b/charts/ctrlc-sync/templates/cronjob.yaml index 649087e..1d0f7e5 100644 --- a/charts/ctrlc-sync/templates/cronjob.yaml +++ b/charts/ctrlc-sync/templates/cronjob.yaml @@ -45,7 +45,6 @@ spec: {{- with .Values.podLabels }} {{- toYaml . | nindent 12 }} {{- end }} - restartPolicy: OnFailure spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: @@ -56,6 +55,7 @@ spec: securityContext: {{- toYaml . | nindent 12 }} {{- end }} + restartPolicy: OnFailure containers: - name: {{ .Chart.Name }} {{- with .Values.securityContext }} From 9b6471409477fed32c8edc68ad0f54d149438a67 Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Sat, 14 Feb 2026 13:26:50 +0900 Subject: [PATCH 5/7] nil check for int values --- charts/ctrlc-sync/templates/cronjob.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/ctrlc-sync/templates/cronjob.yaml b/charts/ctrlc-sync/templates/cronjob.yaml index 1d0f7e5..f1d2a4e 100644 --- a/charts/ctrlc-sync/templates/cronjob.yaml +++ b/charts/ctrlc-sync/templates/cronjob.yaml @@ -10,7 +10,7 @@ spec: timeZone: "{{ .Values.cron.timeZone }}" {{- end }} concurrencyPolicy: "{{ .Values.cron.concurrencyPolicy }}" - {{- if .Values.cron.startingDeadlineSeconds }} + {{- if ne .Values.cron.startingDeadlineSeconds nil }} startingDeadlineSeconds: {{ .Values.cron.startingDeadlineSeconds }} {{- end }} successfulJobsHistoryLimit: {{ .Values.cron.successfulJobsHistoryLimit }} @@ -28,10 +28,10 @@ spec: {{- end }} spec: backoffLimit: {{ .Values.job.backoffLimit }} - {{- if .Values.job.activeDeadlineSeconds }} + {{- if ne .Values.job.activeDeadlineSeconds nil }} activeDeadlineSeconds: {{ .Values.job.activeDeadlineSeconds }} {{- end }} - {{- if .Values.job.ttlSecondsAfterFinished }} + {{- if ne .Values.job.ttlSecondsAfterFinished nil }} ttlSecondsAfterFinished: {{ .Values.job.ttlSecondsAfterFinished }} {{- end }} template: From b389556afc0486fd76a1bfeb0e13d131095b9465 Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Sat, 14 Feb 2026 13:31:06 +0900 Subject: [PATCH 6/7] remove some default wording --- charts/ctrlc-sync/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/ctrlc-sync/values.yaml b/charts/ctrlc-sync/values.yaml index fa534ea..48d4056 100644 --- a/charts/ctrlc-sync/values.yaml +++ b/charts/ctrlc-sync/values.yaml @@ -91,14 +91,14 @@ resources: {} # cpu: 100m # memory: 128Mi -# Additional volumes on the output Deployment definition. +# Additional volumes on the output definition. volumes: [] # - name: foo # secret: # secretName: mysecret # optional: false -# Additional volumeMounts on the output Deployment definition. +# Additional volumeMounts on the output definition. volumeMounts: [] # - name: foo # mountPath: "/etc/foo" From 2742efb1dec4ff5aac7ecdb6c957a5667823d748 Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Sat, 14 Feb 2026 13:43:07 +0900 Subject: [PATCH 7/7] secure defaults --- charts/ctrlc-sync/values.yaml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/charts/ctrlc-sync/values.yaml b/charts/ctrlc-sync/values.yaml index 48d4056..d364f10 100644 --- a/charts/ctrlc-sync/values.yaml +++ b/charts/ctrlc-sync/values.yaml @@ -68,16 +68,19 @@ podAnnotations: {} # For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ podLabels: {} -podSecurityContext: {} - # fsGroup: 2000 - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 +podSecurityContext: + fsGroup: 2000 + seccompProfile: + type: RuntimeDefault + +securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + runAsUser: 1000 + runAsNonRoot: true + capabilities: + drop: + - ALL resources: {} # We usually recommend not to specify default resources and to leave this as a conscious