From 7653e7d32e30d9d0070af5d8069483da04fc1833 Mon Sep 17 00:00:00 2001 From: Ville Saukkonen Date: Fri, 13 Aug 2021 17:39:46 +0300 Subject: [PATCH] Add a secret list example --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a2ec464c..b45d6ffb 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ kubectl apply -f deploy/operator.yaml ## Usage -To create a Kubernetes Secret from a 1Password item, create a yaml file with the following +To create a single Kubernetes Secret from a 1Password item, create a yaml file with the following ```yaml apiVersion: onepassword.com/v1 @@ -109,6 +109,22 @@ spec: itemPath: "vaults//items/" ``` +To create a list of Kubernetes Secrets from a 1Password items, create a yaml file with the following + +```yaml +apiVersion: onepassword.com/v1 +kind: OnePasswordItemList +items: + - metadata: + name: #this name will also be used for naming the generated kubernetes secret + spec: + itemPath: "vaults//items/" + - metadata: + name: #this name will also be used for naming the generated kubernetes secret + spec: + itemPath: "vaults//items/" +``` + Deploy the OnePasswordItem to Kubernetes: ```bash