Multiple items inside a secret resource

rodrigomrodrigom
Community Member

Hello,

Is it possible to create 1 k8s secret resource with multiple items from the same vault? I have tried to add 2 items from the annotations but it always overwrites it. For example:

annotations = {
  "operator.1password.io/item-path" = "vaults/TestVault/items/test1"
  "operator.1password.io/item-path" = "vaults/TestVault/items/test2"
  "operator.1password.io/item-name" = "Test1pass"
}

Where test1 is a set of creds different than test2.

Another question would be, I currently have sets of creds inside secrets without following the "username" and "password" fields. However, whenever I create one from 1password, it grabs those fields and creates the data inside the k8s secret. What if instead of "username" and "password" I want to have something different in the secret? Perhaps I should add the creds in 1password with custom fields somehow?

Thanks!


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file