1# This file has been modified by Chainguard, Inc.
3# Copyright Chainguard, Inc. All Rights Reserved.
4# Chainguard, Inc. modifications are subject to the license
5# available at: https://www.chainguard.dev/legal/software-license-agreement
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
10## @section Global parameters
11## Global Docker image parameters
12## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
16## @param global.imageRegistry Global Docker image registry
17## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18## @param global.imagePullSecrets [array] Global Docker registry secret names as an array
25 ## - myRegistryKeySecretName
28 ## Security parameters
31 ## @param global.security.allowInsecureImages Allows skipping image verification
32 allowInsecureImages: false
33 ## Compatibility adaptations for Kubernetes platforms
36 ## Compatibility adaptations for Openshift
39 ## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
41 adaptSecurityContext: auto
43## @section Common parameters
46## @param kubeVersion Override Kubernetes version
49## @param nameOverride String to partially override common.names.fullname
52## @param fullnameOverride String to fully override common.names.fullname
55## @param namespaceOverride String to fully override common.names.namespace
58## @param commonLabels [object] Labels to add to all deployed objects
61## @param commonAnnotations [object] Annotations to add to all deployed objects
64## @param clusterDomain Kubernetes cluster domain name
66clusterDomain: cluster.local
67## @param extraDeploy [array] Array of extra objects to deploy with the release
70## @section Sealed Secrets Parameters
73## Iamguarded Sealed Secrets image
74## ref: https://hub.docker.com/r/iamguarded/redis/tags/
75## @param image.registry [default: REGISTRY_NAME] Sealed Secrets image registry
76## @param image.repository [default: REPOSITORY_NAME/sealed-secrets] Sealed Secrets image repository
77## @skip image.tag Sealed Secrets image tag (immutable tags are recommended)
78## @param image.digest Sealed Secrets image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
79## @param image.pullPolicy Sealed Secrets image pull policy
80## @param image.pullSecrets [array] Sealed Secrets image pull secrets
81## @param image.debug Enable Sealed Secrets image debug mode
85 repository: chainguard-private/sealed-secrets-controller-iamguarded
87 digest: sha256:32d49d07baec8ac2b54ef6886eb7d84def362c114ab5bfbfdf8592ad2e475548
88 ## Specify a imagePullPolicy
89 ## ref: http://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
91 pullPolicy: IfNotPresent
92 ## Optionally specify an array of imagePullSecrets.
93 ## Secrets must be manually created in the namespace.
94 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
97 ## - myRegistryKeySecretName
103## @param command [array] Override default container command (useful when using custom images)
106## @param commandArgs [array] Additional args (doesn't override the default ones)
109## @param args [array] Override default container args (useful when using custom images)
112## @param revisionHistoryLimit Number of old history to retain to allow rollback (If not set, default Kubernetes value is set to 10)
114revisionHistoryLimit: ""
115## @param createController Specifies whether the Sealed Secrets controller should be created
117createController: true
118## @param secretName The name of an existing TLS secret containing the key used to encrypt secrets
121## @param updateStatus Specifies whether the Sealed Secrets controller should update the status subresource
124## @param skipRecreate Specifies whether the Sealed Secrets controller should skip recreating removed secrets
125## Setting it to true allows to optionally restore backward compatibility in low priviledge
126## environments when old versions of the controller did not require watch permissions on secrets
127## for secret re-creation.
130## @param keyRenewPeriod Specifies key renewal period. Default 30 days. e.g keyRenewPeriod: "720h30m"
133## @param rateLimit Number of allowed sustained request per second for verify endpoint
136## @param rateLimitBurst Number of requests allowed to exceed the rate limit per second for verify endpoint
139## @param additionalNamespaces List of namespaces used to manage the Sealed Secrets
141additionalNamespaces: []
142## @param privateKeyAnnotations Map of annotations to be set on the sealing keypairs
144privateKeyAnnotations: {}
145## @param privateKeyLabels Map of labels to be set on the sealing keypairs
148## @param logInfoStdout Specifies whether the Sealed Secrets controller will log info to stdout
151## @param containerPorts.http Controller HTTP container port to open
152## @param containerPorts.metrics Controller metrics container port
157## Sealed Secret resource requests and limits
158## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
159## @param resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if resources is set (resources is recommended for production).
160## More information: https://github.com/iamguarded/charts/blob/main/iamguarded/common/templates/_resources.tpl#L15
162resourcesPreset: "nano"
163## @param resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
174## Configure extra options for Sealed Secret containers' liveness, readiness and startup probes
175## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
176## @param livenessProbe.enabled Enable livenessProbe on Sealed Secret containers
177## @param livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
178## @param livenessProbe.periodSeconds Period seconds for livenessProbe
179## @param livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
180## @param livenessProbe.failureThreshold Failure threshold for livenessProbe
181## @param livenessProbe.successThreshold Success threshold for livenessProbe
185 initialDelaySeconds: 5
190## @param readinessProbe.enabled Enable readinessProbe on Sealed Secret containers
191## @param readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
192## @param readinessProbe.periodSeconds Period seconds for readinessProbe
193## @param readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
194## @param readinessProbe.failureThreshold Failure threshold for readinessProbe
195## @param readinessProbe.successThreshold Success threshold for readinessProbe
199 initialDelaySeconds: 5
204## @param startupProbe.enabled Enable startupProbe on Sealed Secret containers
205## @param startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
206## @param startupProbe.periodSeconds Period seconds for startupProbe
207## @param startupProbe.timeoutSeconds Timeout seconds for startupProbe
208## @param startupProbe.failureThreshold Failure threshold for startupProbe
209## @param startupProbe.successThreshold Success threshold for startupProbe
213 initialDelaySeconds: 10
218## @param customLivenessProbe [object] Custom livenessProbe that overrides the default one
220customLivenessProbe: {}
221## @param customReadinessProbe [object] Custom readinessProbe that overrides the default one
223customReadinessProbe: {}
224## @param customStartupProbe [object] Custom startupProbe that overrides the default one
226customStartupProbe: {}
227## Configure Pods Security Context
228## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
229## @param podSecurityContext.enabled Enabled Sealed Secret pods' Security Context
230## @param podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
231## @param podSecurityContext.sysctls Set kernel settings using the sysctl interface
232## @param podSecurityContext.supplementalGroups Set filesystem extra groups
233## @param podSecurityContext.fsGroup Set Sealed Secret pod's Security Context fsGroup
237 fsGroupChangePolicy: Always
239 supplementalGroups: []
241## Configure Container Security Context
242## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
243## @param containerSecurityContext.enabled Enabled Sealed Secret containers' Security Context
244## @param containerSecurityContext.allowPrivilegeEscalation Whether the Sealed Secret container can escalate privileges
245## @param containerSecurityContext.capabilities.drop Which privileges to drop in the Sealed Secret container
246## @param containerSecurityContext.readOnlyRootFilesystem Whether the Sealed Secret container has a read-only root filesystem
247## @param containerSecurityContext.runAsNonRoot Indicates that the Sealed Secret container must run as a non-root user
248## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
249## @param containerSecurityContext.runAsUser Set Sealed Secret containers' Security Context runAsUser
250## @param containerSecurityContext.runAsGroup Set Sealed Secret containers' Security Context runAsGroup
251## @param containerSecurityContext.seccompProfile.type Set Sealed Secret container's Security Context seccompProfile type
253containerSecurityContext:
255 allowPrivilegeEscalation: false
258 readOnlyRootFilesystem: true
265## @param automountServiceAccountToken Mount Service Account token in pod
267automountServiceAccountToken: true
268## @param hostAliases [array] Sealed Secret pods host aliases
269## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
272## @param podLabels [object] Extra labels for Sealed Secret pods
273## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
276## @param podAnnotations [object] Annotations for Sealed Secret pods
277## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
280## @param podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
281## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
284## @param podAntiAffinityPreset Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
285## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
287podAntiAffinityPreset: soft
288## Node affinity preset
289## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
292 ## @param nodeAffinityPreset.type Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
295 ## @param nodeAffinityPreset.key Node label key to match. Ignored if `affinity` is set
298 ## @param nodeAffinityPreset.values [array] Node label values to match. Ignored if `affinity` is set
305## @param affinity [object] Affinity for Sealed Secret pods assignment
306## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
307## NOTE: `podAffinityPreset`, `podAntiAffinityPreset`, and `nodeAffinityPreset` will be ignored when it's set
310## @param nodeSelector [object] Node labels for Sealed Secret pods assignment
311## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
314## @param tolerations [array] Tolerations for Sealed Secret pods assignment
315## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
318## @param updateStrategy.type Sealed Secret statefulset strategy type
319## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
323 ## Can be set to RollingUpdate or OnDelete
326## @param priorityClassName Sealed Secret pods' priorityClassName
329## @param topologySpreadConstraints Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
330## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
332topologySpreadConstraints: []
333## @param schedulerName Name of the k8s scheduler (other than default) for Sealed Secret pods
334## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
337## @param terminationGracePeriodSeconds Seconds the pod needs to terminate gracefully
338## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
340terminationGracePeriodSeconds: ""
341## @param lifecycleHooks [object] for the Sealed Secret container(s) to automate configuration before or after startup
344## @param extraEnvVars Array with extra environment variables to add to Sealed Secret nodes
351## @param extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Sealed Secret nodes
354## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for Sealed Secret nodes
356extraEnvVarsSecret: ""
357## @param extraVolumes [array] Optionally specify extra list of additional volumes for the Sealed Secret pod(s)
360## @param extraVolumeMounts [array] Optionally specify extra list of additional volumeMounts for the Sealed Secret container(s)
363## @param sidecars [object] Add additional sidecar containers to the Sealed Secret pod(s)
366## - name: your-image-name
368## imagePullPolicy: Always
371## containerPort: 1234
374## @param initContainers [object] Add additional init containers to the Sealed Secret pod(s)
375## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
378## - name: your-image-name
380## imagePullPolicy: Always
381## command: ['sh', '-c', 'echo "hello world"']
384## @section Traffic Exposure Parameters
387## Sealed Secret service parameters
390 ## @param service.type Sealed Secret service type
394 ## @param service.ports.http Sealed Secret service HTTP port number
397 ## @param service.ports.name Sealed Secret service HTTP port name
400 ## @param service.nodePorts.http Node port for HTTP
401 ## Specify the nodePort value for the LoadBalancer and NodePort service types
402 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
403 ## NOTE: choose port between <30000-32767>
407 ## @param service.clusterIP Sealed Secret service Cluster IP
412 ## @param service.loadBalancerIP Sealed Secret service Load Balancer IP
413 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer
416 ## @param service.loadBalancerClass Sealed Secret service Load Balancer Class
417 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#load-balancer-class
419 loadBalancerClass: ""
420 ## @param service.loadBalancerSourceRanges [array] Sealed Secret service Load Balancer sources
421 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
423 ## loadBalancerSourceRanges:
426 loadBalancerSourceRanges: []
427 ## @param service.externalTrafficPolicy Sealed Secret service external traffic policy
428 ## ref: http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
430 externalTrafficPolicy: Cluster
431 ## @param service.annotations [object] Additional custom annotations for Sealed Secret service
434 ## @param service.extraPorts Extra ports to expose in Sealed Secret service (normally used with the `sidecars` value)
437 ## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin
438 ## Values: ClientIP or None
439 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/
441 sessionAffinity: None
442 ## @param service.sessionAffinityConfig Additional settings for the sessionAffinity
443 ## sessionAffinityConfig:
445 ## timeoutSeconds: 300
447 sessionAffinityConfig: {}
448## Sealed Secret ingress parameters
449## ref: http://kubernetes.io/docs/concepts/services-networking/ingress/
452 ## @param ingress.enabled Enable ingress record generation for Sealed Secret
455 ## @param ingress.pathType Ingress path type
457 pathType: ImplementationSpecific
458 ## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
461 ## @param ingress.ingressClassName IngressClass that will be be used to implement the Ingress
462 ## This is supported in Kubernetes 1.18+ and required if you have more than one IngressClass marked as the default for your cluster.
463 ## ref: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/
466 ## @param ingress.hostname Default host for the ingress record
468 hostname: sealed-secrets.local
469 ## @param ingress.path Default path for the ingress record
470 ## NOTE: You may need to set this to '/*' in order to use this with ALB ingress controllers
473 ## @param ingress.annotations [object] Additional custom annotations for the ingress record
474 ## NOTE: If `ingress.certManager=true`, annotation `kubernetes.io/tls-acme: "true"` will automatically be added
477 ## @param ingress.tls Enable TLS configuration for the host defined at `ingress.hostname` parameter
478 ## TLS certificates will be retrieved from a TLS secret with name: `{{- printf "%s-tls" .Values.ingress.hostname }}`
480 ## - Use the `ingress.secrets` parameter to create this TLS secret
481 ## - Relay on cert-manager to create it by setting `ingress.certManager=true`
482 ## - Relay on Helm to create self-signed certificates by setting `ingress.selfSigned=true`
485 ## @param ingress.selfSigned Create a TLS secret for this ingress record using self-signed certificates generated by Helm
488 ## @param ingress.extraHosts [array] An array with additional hostname(s) to be covered with the ingress record
491 ## - name: sealed-secrets.local
495 ## @param ingress.extraPaths [array] An array with additional arbitrary paths that may need to be added to the ingress under the main host
500 ## serviceName: ssl-redirect
501 ## servicePort: use-annotation
504 ## @param ingress.extraTls [array] TLS configuration for additional hostname(s) to be covered with this ingress record
505 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
509 ## - sealed-secrets.local
510 ## secretName: sealed-secrets.local-tls
513 ## @param ingress.secrets [array] Custom TLS certificates as secrets
514 ## NOTE: 'key' and 'certificate' are expected in PEM format
515 ## NOTE: 'name' should line up with a 'secretName' set further up
516 ## If it is not set and you're using cert-manager, this is unneeded, as it will create a secret for you with valid certificates
517 ## If it is not set and you're NOT using cert-manager either, self-signed certificates will be created valid for 365 days
518 ## It is also possible to create and manage the certificates outside of this helm chart
519 ## Please see README.md for more information
522 ## - name: sealed-secrets.local-tls
524 ## -----BEGIN RSA PRIVATE KEY-----
526 ## -----END RSA PRIVATE KEY-----
528 ## -----BEGIN CERTIFICATE-----
530 ## -----END CERTIFICATE-----
533 ## @param ingress.extraRules Additional rules to be covered with this ingress record
534 ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-rules
537 ## - host: sealed-secrets.local
542 ## name: sealed-secrets
547## @section Other Parameters
553 ## @param rbac.create Specifies whether RBAC resources should be created
556 ## @param rbac.pspEnabled PodSecurityPolicy
559 ## @param rbac.clusterRole Specifies whether the Cluster Role resource should be created. If both rbac.clusterRole and rbac.namespacedRoles are set to false no RBAC will be created.
562 ## @param rbac.clusterRoleName Specifies the name for the Cluster Role resource
565 ## @param rbac.namespacedRoles Specifies whether the namespaced Roles should be created (in each of the specified additionalNamespaces). If both rbac.clusterRole and rbac.namespacedRoles are set to false no RBAC will be created.
567 namespacedRoles: false
568 ## @param rbac.namespacedRolesName Specifies the name for the namesapced Role resource
570 namespacedRolesName: ""
571 ## @param rbac.unsealer.rules Custom RBAC rules to set for unsealer ClusterRole
572 ## @param rbac.keyAdmin.rules Custom RBAC rules to set for key-admin role
573 ## @param rbac.serviceProxier.rules Custom RBAC rules to set for service-proxier role
590 ## @param rbac.labels Extra labels to be added to RBAC resources
593## ServiceAccount configuration
596 ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
599 ## @param serviceAccount.name The name of the ServiceAccount to use.
600 ## If not set and create is true, a name is generated using the common.names.fullname template
603 ## @param serviceAccount.annotations Additional Service Account annotations (evaluated as a template)
606 ## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
608 automountServiceAccountToken: false
610## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
613 ## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created
616 ## @param networkPolicy.allowExternal Don't require client label for connections
617 ## When set to false, only pods with the correct client label will have network access to the port the controller is
618 ## listening on. When true, the controller accept connections from any source (with the correct destination port).
621## Pod Disruption Budget configuration
622## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
623## @param pdb.create Enable a Pod Disruption Budget creation
624## @param pdb.minAvailable Minimum number/percentage of pods that should remain scheduled
625## @param pdb.maxUnavailable Maximum number/percentage of pods that may be made unavailable. Defaults to `1` if both `pdb.minAvailable` and `pdb.maxUnavailable` are empty.
631## @section Metrics parameters
634 ## @param metrics.enabled Sealed Secrets toggle metrics service definition
637 ## @param metrics.service.type Sealed Secrets metrics service type
640 ## @param metrics.service.ports.metrics Sealed Secrets metrics service port
644 ## @param metrics.service.externalTrafficPolicy Sealed Secrets metrics service external traffic policy
645 ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
647 externalTrafficPolicy: Cluster
648 ## @param metrics.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
651 ## @param metrics.service.loadBalancerIP Sealed Secrets metrics service Load Balancer IP
652 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
655 ## @param metrics.service.loadBalancerSourceRanges Sealed Secrets metrics service Load Balancer sources
656 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
658 ## loadBalancerSourceRanges:
661 loadBalancerSourceRanges: []
662 ## @param metrics.service.annotations Additional custom annotations for Sealed Secrets metrics service
665 ## Prometheus Service Monitor
666 ## ref: https://github.com/coreos/prometheus-operator
667 ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
670 ## @param metrics.serviceMonitor.enabled Specify if a ServiceMonitor will be deployed for Prometheus Operator
673 ## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
677 ## @param metrics.serviceMonitor.port.number Port number for the serviceMonitor
679 ## @param metrics.serviceMonitor.port.name Port name for the serviceMonitor
681 ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
684 ## @param metrics.serviceMonitor.annotations Additional ServiceMonitor annotations (evaluated as a template)
687 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in Prometheus
690 ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
693 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped.
694 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
699 ## @param metrics.serviceMonitor.scrapeTimeout Timeout after which the scrape is ended
700 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
702 ## scrapeTimeout: 10s
705 ## @param metrics.serviceMonitor.metricRelabelings Specify additional relabeling of metrics
707 metricRelabelings: []
708 ## @param metrics.serviceMonitor.relabelings Specify general relabeling
711 ## @param metrics.serviceMonitor.selector Prometheus instance selector labels
712 ## ref: https://github.com/iamguarded/charts/tree/main/iamguarded/prometheus-operator#prometheus-configuration
714 ## prometheus: my-prometheus