Skip to content

Commit dca5fbe

Browse files
committed
ad new enableClusterPaths field to PublishedResources
On-behalf-of: @SAP [email protected]
1 parent 9edf625 commit dca5fbe

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

deploy/crd/kcp.io/syncagent.kcp.io_publishedresources.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ spec:
4747
PublishedResourceSpec describes the desired resource publication from a service
4848
cluster to kcp.
4949
properties:
50+
enableClusterPaths:
51+
description: |-
52+
EnableClusterPaths toggles whether the Sync Agent will not just store the kcp
53+
cluster name as a label on each locally synced object, but also the full cluster
54+
path. This is optional because it requires additional requests to kcp and
55+
should only be used if the cluster path is of interest on the
56+
service cluster side.
57+
type: boolean
5058
filter:
5159
description: |-
5260
If specified, the filter will be applied to the resources in a workspace

sdk/apis/syncagent/v1alpha1/published_resource.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ type PublishedResourceSpec struct {
6868
// many different kcp workspaces.
6969
Naming *ResourceNaming `json:"naming,omitempty"`
7070

71+
// EnableClusterPaths toggles whether the Sync Agent will not just store the kcp
72+
// cluster name as a label on each locally synced object, but also the full cluster
73+
// path. This is optional because it requires additional requests to kcp and
74+
// should only be used if the cluster path is of interest on the
75+
// service cluster side.
76+
EnableClusterPaths bool `json:"enableClusterPaths,omitempty"`
77+
7178
// Projection is used to change the GVK of a published resource within kcp.
7279
// This can be used to hide implementation details and provide a customized API
7380
// experience to the user.

sdk/applyconfiguration/syncagent/v1alpha1/publishedresourcespec.go

Lines changed: 14 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)