apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
  name: {{ include "studio-api.fullname" . }}
  labels:
    {{- include "studio-api.labels" . | nindent 4 }}
  annotations:
    "helm.sh/hook": pre-install,pre-upgrade
    "helm.sh/hook-weight": "1"
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: aws-store
  target:
    name: {{ include "studio-api.fullname" . }}
    creationPolicy: Owner
  dataFrom:
    - key: studioapi-c79db22
