---
global:
  domain: argo.services.yolokube.de
configs:
  cm:
    create: false
  params:
    create: true
    server.insecure: true
  rbac:
    create: true
    policy.csv: |
      g, yolokube-general, role:admin
server:
  ingress:
    enabled: true
    annotations:
      kubernetes.io/tls-acme: "true"
    tls: true
repoServer:
  volumes:
    - name: custom-tools
      emptyDir: {}
    - name: sops-key
      secret:
        secretName: sops-age
  initContainers:
    - name: install-ksops
      image: viaductoss/ksops:v4.3.2
      command: ["/bin/sh", "-c"]
      args:
        - echo "Installing KSOPS...";
          mv ksops /custom-tools/;
          mv kustomize /custom-tools/;
          echo "Done.";
      volumeMounts:
        - mountPath: /custom-tools
          name: custom-tools
  volumeMounts:
    - mountPath: /usr/local/bin/kustomize
      name: custom-tools
      subPath: kustomize
    - mountPath: /usr/local/bin/ksops
      name: custom-tools
      subPath: ksops
    - mountPath: /.config/sops/age
      name: sops-key
  env:
    - name: XDG_CONFIG_HOME
      value: /.config
    - name: SOPS_AGE_KEY_FILE
      value: /.config/sops/age/keys.txt