1Password / connect-helm-charts

Official 1Password Helm Charts
https://developer.1password.com
MIT License
90 stars 73 forks source link

Expose connect.host to be able to override Connect host #160

Closed volodymyrZotov closed 1 year ago

volodymyrZotov commented 1 year ago

Resolves #148

This PR provides an ability to use Connect deployed in the other namespace than the operator. Therefore, it also gives the ability to use a single Connect instance with multiple operators.

Instructions below demonstrate how to set up a single Connect instance in the default namespace and 2 operator instances, one in test1 namespace and the second in test2 namespace. Each of the operators watches for its own namespace (aka operator1 watches for namespace test1 and operator2 watches for namespace test2). Also, each operator uses a different Connect token saved in the Secret (onepassword-token1 and onepassword-token2).

Deploy Connect to the default namespace

helm install connect 1password/connect --set-file connect.credentials=1password-credentials.json -n default

Prepare namespace test1 and deploy Operator

Prepare namespace test2 and deploy Operator

Create OnepasswordItems

Note: the same scenario will work if deploy all the Operators in the single namespace aka operators

volodymyrZotov commented 1 year ago

@jillianwilson FYI, autoformatting was applied to the README.md that's why it has a lot of changes. The only entry I added there is connect.host.