apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
  creationTimestamp: '2021-11-16T21:59:33Z'
  generation: 1
  name: test-healthy
  namespace: argocd
  resourceVersion: '136487331'
  selfLink: /apis/external-secrets.io/v1alpha1/namespaces/argocd/externalsecrets/test-healthy
  uid: 1e754a7e-0781-4d57-932d-4651d5b19586
spec:
  data:
    - remoteRef:
        key: secret/sa/example
        property: api.address
      secretKey: url
    - remoteRef:
        key: secret/sa/example
        property: ca.crt
      secretKey: ca
    - remoteRef:
        key: secret/sa/example
        property: token
      secretKey: token
  refreshInterval: 0
  refreshPolicy: OnChange
  secretStoreRef:
    kind: SecretStore
    name: example
  target:
    creationPolicy: Owner
    template:
      data:
        config: |
          {
            "bearerToken": "{{ .token | base64decode | toString }}",
            "tlsClientConfig": {
              "insecure": false,
              "caData": "{{ .ca | toString }}"
            }
          }
        name: cluster-test
        server: '{{ .url | toString }}'
      metadata:
        labels:
          argocd.argoproj.io/secret-type: cluster
status:
  conditions:
    - lastTransitionTime: '2021-11-16T21:59:34Z'
      message: Secret was synced
      reason: SecretSynced
      status: 'True'
      type: Ready
  refreshTime: '2021-11-29T18:32:24Z'
  syncedResourceVersion: 1-519a61da0dc68b2575b4f8efada70e42
