apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: code-server-cloudflared-secret
  namespace: code-server
  labels:
    helm.sh/chart: cloudflared-2.1.4
    app.kubernetes.io/instance: code-server
    app.kubernetes.io/part-of: code-server
    app.kubernetes.io/version: "2.1.4"
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: code-server-cloudflared-secret
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: vault
  data:
    - secretKey: cf-tunnel-token
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /cloudflare/tunnels/code-server
        metadataPolicy: None
        property: token
