Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions local-setup/example-data/root/orgs/apiexportpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: core.platform-mesh.io/v1alpha1
kind: APIExportPolicy
metadata:
name: orchestrate.platform-mesh.io
spec:
apiExportRef:
name: orchestrate.platform-mesh.io
clusterPath: root:providers:httpbin-provider

allowPathExpressions:
- :root:orgs:*
4 changes: 4 additions & 0 deletions local-setup/example-data/root/orgs/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- apiexportpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ kind: Kustomization
resources:
- apiexport.yaml
- providermetadata.yaml
- contentconfiguration.yaml
- rbac.yaml
- contentconfiguration.yaml
22 changes: 0 additions & 22 deletions local-setup/example-data/root/providers/httpbin-provider/rbac.yaml

This file was deleted.

1 change: 1 addition & 0 deletions local-setup/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ if [ "$EXAMPLE_DATA" = true ]; then
KUBECONFIG=$(pwd)/.secret/kcp/admin.kubeconfig kubectl create-workspace providers --type=root:providers --ignore-existing --server="https://localhost:8443/clusters/root"
KUBECONFIG=$(pwd)/.secret/kcp/admin.kubeconfig kubectl create-workspace httpbin-provider --type=root:provider --ignore-existing --server="https://localhost:8443/clusters/root:providers"
KUBECONFIG=$(pwd)/.secret/kcp/admin.kubeconfig kubectl apply -k $SCRIPT_DIR/../example-data/root/providers/httpbin-provider --server="https://localhost:8443/clusters/root:providers:httpbin-provider"
KUBECONFIG=$(pwd)/.secret/kcp/admin.kubeconfig kubectl apply -k $SCRIPT_DIR/../example-data/root/orgs --server="https://localhost:8443/clusters/root:orgs"

echo -e "${COL}[$(date '+%H:%M:%S')] Waiting for example provider ${COL_RES}"

Expand Down
Loading