Skip to content

Commit

Permalink
Introduce the workspace-url annotation
Browse files Browse the repository at this point in the history
Signed-off-by: David Festal <[email protected]>
  • Loading branch information
davidfestal committed Apr 6, 2023
1 parent 57dad44 commit 4bc494e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sdk/apis/workload/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,15 @@ const (
// and further work should be done to define such (up)syncing strategies at a more appropriate level
// (SyncTarget, KCP namespace, KCP workspace ?).
ExperimentalUpsyncDerivedResourcesAnnotationKey = "experimental.workload.kcp.io/upsync-derived-resources"

// InternalWorkspaceURLAnnotationKey is an annotation dynamically added on resources exposed
// by the Syncer Virtual Workspace to be synced by the Syncer.
// It contains the external URL of the workspace the resource is part of.
//
// The Syncer doesn't have this information and needs it to correctly point some created downstream
// resources back to the right KCP workspace.
//
// internal.workload.kcp.io/workspace-url
//
InternalWorkspaceURLAnnotationKey = "internal.workload.kcp.io/workspace-url"
)

0 comments on commit 4bc494e

Please sign in to comment.