Skip to main content
February 7, 2025
Question

Trouble getting document items in Kubernetes with 1P Connect Operator

  • February 7, 2025
  • 2 replies
  • 216 views

Hey everyone, I'm trying to get a document out of 1P and into a k8s secret with the Connect Operator, version 1.8.1. I can get Login items but not Document items, even though there seems to be a discussion about this exact topic stating that Documents are supported as of version 1.3.0. Does anyone else have experience with this?

---
apiVersion: onepassword.com/v1
kind: OnePasswordItem
metadata:
  name: config-file-dot-yaml
  namespace: default
spec:
  itemPath: "vaults/dev/items/config-file.yaml"

This is the OnePasswordItem I have. The Document config-file.yaml is in the vault dev, and kubectl describe secret config-file-dot-yaml returns an event of "No items found with identifier 'config-file.yaml' "

 

Is there any examples out there of getting the document? Thanks!

2 replies

txmooseAuthor
February 8, 2025

So I put things down and came back to it today. It was working when I came back to it. I think my fight is that there seems to be some considerable lag syncing or indexing or something. Is there any documentation about reasonably how long I should expect a sync/index to take between creating a new entry in my dev vault and when 1P-Connect Server/Operator can see the item?

Scott_1P
1Password Employee
February 10, 2025

Hey txmoose!

Does setting the polling interval env var on the K8s operator (default is 600 seconds) improve things at all for you?

txmooseAuthor
February 14, 2025

Hey, I guess I fully glossed over that lever to pull in the values file. Thanks for pointing it out. I think that helps!

Scott_1P
1Password Employee
February 14, 2025

Awesome! Glad that might ease some of the friction. Report back how things go if you're so inclined! :)