# IMPORTANT NOTE
#
# This chart inherits from our common library chart. You can check the default values/options here:
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
#

image:
  # -- image repository
  repository: tomsquest/docker-radicale
  # -- image tag
  # @default -- chart.appVersion
  tag:
  # -- image pull policy
  pullPolicy: IfNotPresent

# -- environment variables. See more environment variables in the [radicale documentation](https://radicale.org/master.html#configuration).
# @default -- See below
env:
  # -- Set the container timezone
  TZ: UTC
  # -- Set the location of the configuration file
  RADICALE_CONFIG: /config/config

# -- Configures service settings for the chart.
# @default -- See values.yaml
service:
  main:
    ports:
      http:
        port: 5232

ingress:
  # -- Enable and configure ingress settings for the chart under this key.
  # @default -- See values.yaml
  main:
    enabled: false

# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence:
  data:
    enabled: false

configmap:
  config:
    # -- Define inline radicale configuration as a ConfigMap.
    enabled: false
    # -- Radicale configuration. See [image documentation](https://github.com/tomsquest/docker-radicale#custom-configuration) for more information.
    # @default -- See values.yaml
    data:
      config.cfg: |
        # Config file for Radicale - A simple calendar server

        [server]
        hosts = 0.0.0.0:5232

        [storage]
        filesystem_folder = /data/collections
