apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: operator-oauth
  namespace: tailscale-operator
  labels:
    app.kubernetes.io/name: operator-oauth
    app.kubernetes.io/instance: tailscale-operator
    app.kubernetes.io/part-of: tailscale-operator
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: vault
  data:
    - secretKey: client_id
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /tailscale/k8s-operator
        metadataPolicy: None
        property: clientId
    - secretKey: client_secret
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /tailscale/k8s-operator
        metadataPolicy: None
        property: clientSecret
