| 12345678910111213141516171819202122232425 |
- ---
- apiVersion: external-secrets.io/v1alpha1
- kind: PushSecret
- metadata:
- name: pushsecret-example # Customisable
- spec:
- deletionPolicy: Delete
- refreshInterval: 1h
- secretStoreRefs:
- - name: onepassword
- kind: SecretStore
- selector:
- secret:
- name: source-secret # Source Kubernetes secret
- data:
- - match:
- secretKey: source-key # Source Kubernetes secret key to be pushed
- remoteRef:
- remoteKey: 1pw-secret-name # 1Password item/secret name
- property: password # (Optional) 1Password field type, default password
- metadata:
- apiVersion: kubernetes.external-secrets.io/v1alpha1
- kind: PushSecretMetadata
- spec:
- tags: ["tag1", "tag2"] # Optional metadata to be pushed with the secret
|