apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: codeserver-password-secret
  namespace: code-server
  labels:
    app.kubernetes.io/name: codeserver-password-secret
    app.kubernetes.io/instance: code-server
    app.kubernetes.io/part-of: code-server
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: vault
  data:
    - secretKey: PASSWORD
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /cl01tl/code-server/auth
        metadataPolicy: None
        property: PASSWORD
    - secretKey: SUDO_PASSWORD
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /cl01tl/code-server/auth
        metadataPolicy: None
        property: SUDO_PASSWORD
