Skip to main content
Feb 7, 2025 5:03 AM UTC
Question

Trouble getting document items in Kubernetes with 1P Connect Operator

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!

4 replies

txmooseAuthor
Feb 8, 2025 12:38 AM UTC

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
1Password Employee
Feb 10, 2025 6:04 PM UTC

Hey txmoose!

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

txmooseAuthor
Feb 14, 2025 3:02 PM UTC

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
1Password Employee
Feb 14, 2025 3:52 PM UTC

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