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

Copy backend configurations into resource backends #95

Merged

Conversation

tanguy-ortolo
Copy link

Previously, resource backends received a copy of the default backends, which contains a BackendConfigs, which in turns contains /pointers/ to specific backend configurations (e.g. *backends.EtcdConfig). As a result, resource backends eventually pointed to the default backend configurations.

Now, resource backends receive the result of a Backends.Copy() function, which explicitly copies specific backend configurations from the default backends.

Closes #94

Previously, resource backends received a copy of the default backends,
which contains a BackendConfigs, which in turns contains /pointers/ to
specific backend configurations (e.g. *backends.EtcdConfig). As a
result, resource backends eventually pointed to the default backend
configurations.

Now, resource backends receive the result of a Backends.Copy() function,
which explicitly copies specific backend configurations from the default
backends.
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

Successfully merging this pull request may close these issues.

With default backend config, all resources share the same backend config
2 participants