-
Notifications
You must be signed in to change notification settings - Fork 406
use ClusterWorkspaceShard.VirtualWorkspaceURL #1670
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
Conversation
requires #1669 |
/retest |
cad1fc3
to
1c44f88
Compare
/assign @sttts |
pkg/apis/tenancy/v1alpha1/types.go
Outdated
@@ -496,6 +496,17 @@ type ClusterWorkspaceShardSpec struct { | |||
// +kubebuilder:Required | |||
// +required | |||
ExternalURL string `json:"externalURL"` | |||
|
|||
// VirtualWorkspaceURL is the address of the virtual workspace server associated with this shard. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camlCase
1c44f88
to
e05cedf
Compare
@@ -3,6 +3,7 @@ kind: ClusterWorkspaceShard | |||
metadata: | |||
name: SHARD_NAME | |||
spec: | |||
virtualWorkspaceURL: SHARD_VIRTUAL_WORKSPACE_URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is backward compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be
@@ -133,6 +133,10 @@ func (o *clusterWorkspaceShard) Admit(_ context.Context, a admission.Attributes, | |||
} | |||
} | |||
|
|||
if cws.Spec.VirtualWorkspaceURL == "" { | |||
cws.Spec.VirtualWorkspaceURL = cws.Spec.BaseURL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is where a default value is applied.
/retest |
e05cedf
to
fd52ce7
Compare
@@ -32,6 +31,7 @@ import ( | |||
|
|||
"github.com/kcp-dev/kcp/pkg/admission/helpers" | |||
tenancyv1alpha1 "github.com/kcp-dev/kcp/pkg/apis/tenancy/v1alpha1" | |||
"github.com/kcp-dev/logicalcluster/v2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct order? is openshift-imports happy?
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
when set points to an external URL address of a virtual workspace server associated with as shard. Defaults to shard's base address.
fd52ce7
to
62a5107
Compare
New changes are detected. LGTM label has been removed. |
import not happy, please re-tag |
Summary
this PR:
shard-virtual-workspace-url
flag.when set points to an external URL address of a virtual workspace server
associated with as shard.
Related issue(s)
Fixes #