From 7653e7d32e30d9d0070af5d8069483da04fc1833 Mon Sep 17 00:00:00 2001 From: Ville Saukkonen Date: Fri, 13 Aug 2021 17:39:46 +0300 Subject: [PATCH 1/4] 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 From ac2eaf4192f040948c670df0539223f152c17ee1 Mon Sep 17 00:00:00 2001 From: Ville Saukkonen Date: Sat, 2 Aug 2025 19:30:50 +0300 Subject: [PATCH 2/4] Update README.md Co-authored-by: Andi Titu <45081667+AndyTitu@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b45d6ffb..d731a07f 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ spec: itemPath: "vaults//items/" ``` -To create a list of Kubernetes Secrets from a 1Password items, create a yaml file with the following +To create a list of Kubernetes Secrets from 1Password items, create a yaml file with the following ```yaml apiVersion: onepassword.com/v1 From 516ceb828c89a3c87aa52a4f8a656b7dd2357f64 Mon Sep 17 00:00:00 2001 From: Ville Saukkonen Date: Sat, 2 Aug 2025 19:31:01 +0300 Subject: [PATCH 3/4] Update README.md Co-authored-by: Andi Titu <45081667+AndyTitu@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d731a07f..989eee38 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ apiVersion: onepassword.com/v1 kind: OnePasswordItemList items: - metadata: - name: #this name will also be used for naming the generated kubernetes secret + name: #this name will be used for naming one of the generated kubernetes secrets spec: itemPath: "vaults//items/" - metadata: From f91531933495be0a637e3752d5b6e458a8122849 Mon Sep 17 00:00:00 2001 From: Ville Saukkonen Date: Sat, 2 Aug 2025 19:31:06 +0300 Subject: [PATCH 4/4] Update README.md Co-authored-by: Andi Titu <45081667+AndyTitu@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 989eee38..4228491c 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ items: spec: itemPath: "vaults//items/" - metadata: - name: #this name will also be used for naming the generated kubernetes secret + name: #this name will also be used for naming another of the generated kubernetes secrets spec: itemPath: "vaults//items/" ```