Skip to content

Instantly share code, notes, and snippets.

@asayah
Last active September 8, 2023 01:20
Show Gist options
  • Save asayah/b91f1de77e0c356733cac5b8a46ac89e to your computer and use it in GitHub Desktop.
Save asayah/b91f1de77e0c356733cac5b8a46ac89e to your computer and use it in GitHub Desktop.
workspacesettings
kubectl --context "$mgmt_context" apply -f - <<EOF
---
apiVersion: admin.gloo.solo.io/v2
kind: WorkspaceSettings
metadata:
name: bookinfo
namespace: bookinfo
spec:
exportTo: []
options:
serviceIsolation:
enabled: true
exportTo:
- workspaces:
- name: "client"
resources:
- kind: SERVICE
name: productpage
---
apiVersion: admin.gloo.solo.io/v2
kind: WorkspaceSettings
metadata:
name: client
namespace: client
spec:
exportTo: []
options:
serviceIsolation:
enabled: true
importFrom:
- workspaces:
- name: bookinfo
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment