Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension to copy Provisioned Service Secret resource from one namespace to another #213

Open
baijum opened this issue Mar 3, 2022 · 2 comments

Comments

@baijum
Copy link
Contributor

baijum commented Mar 3, 2022

The spec recommends keeping the provisioned service and the application in the same namespace.

In the Provisioned Service section, it is written like this:

The Secret MUST be in the same namespace as the resource.

Later in the 2nd paragraph of Service Binding section:

Restricting service binding to resources within the same namespace is strongly RECOMMENDED

The Provisioned Service Syncer synchronizes Provisioned Service Secret resources across namespace. You can create the ProvisionedServiceSyncer resource in the same namespace as where the application is going to run. The ProvisionedServiceSyncer custom resource will be a Provisioned Service-able resource that you can use in the ServiceBinding configuration.

Schema

apiVersion: extensions.servicebinding.io/v1beta1
kind: ProvisionedServiceSyncer
metadata:
  name: # string
  namespace: # string, optional, default: current namespace
spec: # Provisioned Service resource ObjectReference-like
  apiVersion: #string
  kind: #string
  name: #string
  namespace: #string
status:
  binding: # LocalObjectReference, optional
    name: # string
  conditions: # []metav1.Condition containing at least one entry for `Ready`
  observedGeneration: # int64

Example Resource

apiVersion: extensions.servicebinding.io/v1beta1
kind: ProvisionedServiceSyncer
metadata:
  name: postgres-instance
  namespace: default
spec:
  apiVersion: postgres-operator.crunchydata.com/v1beta1
  kind: PostgresCluster
  name: hippo
  namespace: prod-postgres

The extension also should define RBAC to allow copying resources from one namespace to another.

@baijum baijum mentioned this issue Mar 3, 2022
@baijum baijum changed the title Extension to copy Secret resource from one namespace to another Extension to copy Provisioned Service resource from one namespace to another Mar 3, 2022
@baijum baijum changed the title Extension to copy Provisioned Service resource from one namespace to another Extension to copy Provisioned Service Secret resource from one namespace to another Mar 3, 2022
@scothis
Copy link
Contributor

scothis commented Mar 17, 2022

We should define different api groups for extensions vs core resources.

@baijum
Copy link
Contributor Author

baijum commented Jul 16, 2022

We should define different api groups for extensions vs core resources.

I have updated the API group to extensions.servicebinding.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants