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

Deck creates only one workspace and put all services and routes inside it #506

Closed
mkopeyka opened this issue Oct 14, 2021 · 2 comments
Closed

Comments

@mkopeyka
Copy link

mkopeyka commented Oct 14, 2021

I use decK v1.8.2 (b538f70) and kong-ee:v1.5.0.1-alpine

I created 3 test workspaces via kong ui and added 1 service and 1 route to each of them. After that I created a dump with key --all-workspaces so deck created 3 files (one per workspace).
auth.yaml.txt
nondeck.yaml.txt
unifiedlogin.yaml.txt

ls -la deck/config/
total 20
drwxr-xr-x 2 maxim maxim 4096 жов 15 00:20 .
drwxr-xr-x 3 maxim maxim 4096 жов 11 16:27 ..
-rwxr-xr-x 1 maxim maxim  496 жов 15 00:07 auth.yaml
-rwxr-xr-x 1 maxim maxim  496 жов 15 00:18 nondeck.yaml
-rwxr-xr-x 1 maxim maxim  498 жов 15 00:18 unifiedlogin.yaml

I deleted old database to test decK on fresh empty DB. I expected this command will create 3 new workspaces

deck sync --state deck/config --kong-addr http://localhost:8001 --select-tag deck

But it creates only first workspace and adds all services and routes to this workspace

creating workspace auth
creating service ul-service
creating service non-deck-service
creating service auth-service
creating route auth-route
creating route non-deck-route
creating route ul-route
Summary:
  Created: 6
  Updated: 0
  Deleted: 0
@mkopeyka
Copy link
Author

I think it would be better to show error message (or warning at least) in case yaml files contain different workspace names.

@GGabriele
Copy link
Collaborator

Now deck explicitly fail when attempting to sync in such conditions: #576

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